java.lang.Object
net.vitacraft.serverlibraries.api.event.events.entities.ElytraCustomEvent
All Implemented Interfaces:
Event

public class ElytraCustomEvent extends Object implements Event
Called when an entity is about to tick the elytra.
  • Constructor Details

    • ElytraCustomEvent

      public ElytraCustomEvent(net.minecraft.entity.LivingEntity entity, boolean tickElytra)
  • Method Details

    • getEntity

      public net.minecraft.entity.LivingEntity getEntity()
      Returns:
      the entity that is trying to tick the elytra
    • getTickElytra

      public boolean getTickElytra()
      Returns:
      whether the entity should tick the elytra
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface Event
    • setCancelled

      public void setCancelled(boolean cancelled)
      Specified by:
      setCancelled in interface Event