Class EntityTransformedEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.entity.EntityEvent
com.destroystokyo.paper.event.entity.EntityTransformedEvent
- All Implemented Interfaces:
Cancellable
Deprecated.
Fired when an entity transforms into another entity
If the event is cancelled, the entity will not transform
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Deprecated.Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Field Summary
Fields inherited from class org.bukkit.event.entity.EntityEvent
entity
-
Constructor Summary
ConstructorDescriptionEntityTransformedEvent(Entity entity, Entity transformed, EntityTransformedEvent.TransformedReason reason)
Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerList
Deprecated.Deprecated.Deprecated.Deprecated.boolean
Deprecated.Gets the cancellation state of this event.void
setCancelled(boolean cancel)
Deprecated.Sets the cancellation state of this event.Methods inherited from class org.bukkit.event.entity.EntityEvent
getEntity, getEntityType
Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
EntityTransformedEvent
public EntityTransformedEvent(Entity entity, Entity transformed, EntityTransformedEvent.TransformedReason reason)Deprecated.
-
-
Method Details
-
getTransformed
Deprecated.The entity after it has transformed- Returns:
- Transformed entity
-
getReason
Deprecated.- Returns:
- The reason for the transformation
-
getHandlers
Deprecated.- Specified by:
getHandlers
in classEvent
-
getHandlerList
Deprecated. -
isCancelled
public boolean isCancelled()Deprecated.Description copied from interface:Cancellable
Gets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins- Specified by:
isCancelled
in interfaceCancellable
- Returns:
- true if this event is cancelled
-
setCancelled
public void setCancelled(boolean cancel)Deprecated.Description copied from interface:Cancellable
Sets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins.- Specified by:
setCancelled
in interfaceCancellable
- Parameters:
cancel
- true if you wish to cancel this event
-
EntityTransformEvent
, you should start using that