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(forRemoval=true)
@ScheduledForRemoval(inVersion="1.21")
public class EntityTransformedEvent
extends EntityEvent
implements Cancellable
Deprecated, for removal: This API element is subject to removal in a future version.
Fired when an entity transforms into another entity
If the event is cancelled, the entity will not transform
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Deprecated, for removal: This API element is subject to removal in a future version.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
(@NotNull Entity entity, @NotNull Entity transformed, @NotNull EntityTransformedEvent.TransformedReason reason) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull HandlerList
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.The entity after it has transformedboolean
Deprecated, for removal: This API element is subject to removal in a future version.Gets the cancellation state of this event.void
setCancelled
(boolean cancel) Deprecated, for removal: This API element is subject to removal in a future version.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
-
Method Details
-
getTransformed
Deprecated, for removal: This API element is subject to removal in a future version.The entity after it has transformed- Returns:
- Transformed entity
-
getReason
Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- The reason for the transformation
-
isCancelled
public boolean isCancelled()Deprecated, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.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
-
getHandlers
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getHandlers
in classEvent
-
getHandlerList
Deprecated, for removal: This API element is subject to removal in a future version.
-
EntityTransformEvent
, you should start using that