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

      @NotNull public @NotNull Entity 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 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
    • getHandlers

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

      @NotNull public static @NotNull HandlerList getHandlerList()
      Deprecated, for removal: This API element is subject to removal in a future version.