Class ElytraAllowEvent
java.lang.Object
net.vitacraft.serverlibraries.api.event.events.entities.ElytraAllowEvent
- All Implemented Interfaces:
Event
Called when an entity is allowed to use an elytra.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.entity.LivingEntity
boolean
void
setCancelled
(boolean cancelled)
-
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 interfaceEvent
-
setCancelled
public void setCancelled(boolean cancelled) - Specified by:
setCancelled
in interfaceEvent
-