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 SummaryNested ClassesModifier and TypeClassDescriptionstatic enumDeprecated, for removal: This API element is subject to removal in a future version.Nested classes/interfaces inherited from class org.bukkit.event.EventEvent.Result
- 
Field SummaryFields inherited from class org.bukkit.event.entity.EntityEvententity
- 
Constructor SummaryConstructorsConstructorDescriptionEntityTransformedEvent(Entity entity, Entity transformed, EntityTransformedEvent.TransformedReason reason) Deprecated, for removal: This API element is subject to removal in a future version.
- 
Method SummaryModifier and TypeMethodDescriptionstatic HandlerListDeprecated, 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.Deprecated.booleanDeprecated, for removal: This API element is subject to removal in a future version.Gets the cancellation state of this event.voidsetCancelled(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.EntityEventgetEntity, getEntityTypeMethods inherited from class org.bukkit.event.EventcallEvent, getEventName, isAsynchronous
- 
Constructor Details- 
EntityTransformedEventpublic EntityTransformedEvent(Entity entity, Entity transformed, EntityTransformedEvent.TransformedReason reason) Deprecated, for removal: This API element is subject to removal in a future version.
 
- 
- 
Method Details- 
getTransformedDeprecated.The entity after it has transformed- Returns:
- Transformed entity
 
- 
getReasonDeprecated.- Returns:
- The reason for the transformation
 
- 
getHandlersDeprecated, for removal: This API element is subject to removal in a future version.- Specified by:
- getHandlersin class- Event
 
- 
getHandlerListDeprecated, for removal: This API element is subject to removal in a future version.
- 
isCancelledpublic boolean isCancelled()Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:CancellableGets 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:
- isCancelledin interface- Cancellable
- Returns:
- true if this event is cancelled
 
- 
setCancelledpublic void setCancelled(boolean cancel) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:CancellableSets 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:
- setCancelledin interface- Cancellable
- Parameters:
- cancel- true if you wish to cancel this event
 
 
- 
EntityTransformEvent, you should start using that