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

public class ElytraAllowEvent extends Object implements Event
Called when an entity is allowed to use an elytra.
  • Constructor Details

    • ElytraAllowEvent

      public ElytraAllowEvent(net.minecraft.entity.LivingEntity entity)
  • Method Details

    • getEntity

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

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

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