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.
Bukkit has added EntityTransformEvent, you should start using that
Fired when an entity transforms into another entity

If the event is cancelled, the entity will not transform

  • Constructor Details

  • Method Details

    • getTransformed

      @Deprecated public Entity getTransformed()
      The entity after it has transformed
      Returns:
      Transformed entity
    • getReason

      Returns:
      The reason for the transformation
    • getHandlers

      public HandlerList getHandlers()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getHandlers in class Event
    • getHandlerList

      public static HandlerList getHandlerList()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • 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 interface Cancellable
      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 interface Cancellable
      Parameters:
      cancel - true if you wish to cancel this event