EntityTransformEvent
, you should start using that@Deprecated public class EntityTransformedEvent extends EntityEvent implements Cancellable
If the event is cancelled, the entity will not transform
Modifier and Type | Class and Description |
---|---|
static class |
EntityTransformedEvent.TransformedReason
Deprecated.
|
Event.Result
entity
Constructor and Description |
---|
EntityTransformedEvent(Entity entity,
Entity transformed,
EntityTransformedEvent.TransformedReason reason)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static HandlerList |
getHandlerList()
Deprecated.
|
HandlerList |
getHandlers()
Deprecated.
|
EntityTransformedEvent.TransformedReason |
getReason()
Deprecated.
|
Entity |
getTransformed()
Deprecated.
|
boolean |
isCancelled()
Deprecated.
Gets the cancellation state of this event.
|
void |
setCancelled(boolean cancel)
Deprecated.
Sets the cancellation state of this event.
|
getEntity, getEntityType
callEvent, getEventName, isAsynchronous
public EntityTransformedEvent(Entity entity, Entity transformed, EntityTransformedEvent.TransformedReason reason)
@Deprecated public Entity getTransformed()
EntityTransformEvent.getTransformedEntity()
@Deprecated public EntityTransformedEvent.TransformedReason getReason()
EntityTransformEvent.getTransformReason()
public HandlerList getHandlers()
getHandlers
in class Event
public static HandlerList getHandlerList()
public boolean isCancelled()
Cancellable
isCancelled
in interface Cancellable
public void setCancelled(boolean cancel)
Cancellable
setCancelled
in interface Cancellable
cancel
- true if you wish to cancel this eventCopyright © 2021. All rights reserved.