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