Cancellable@Deprecated public class EntityTransformedEvent extends EntityEvent implements Cancellable
EntityTransformEvent, you should start using thatIf the event is cancelled, the entity will not transform
| Modifier and Type | Class | Description |
|---|---|---|
static class |
EntityTransformedEvent.TransformedReason |
Deprecated.
|
Event.Resultentity| Constructor | Description |
|---|---|
EntityTransformedEvent(Entity entity,
Entity transformed,
EntityTransformedEvent.TransformedReason reason) |
Deprecated.
|
| Modifier and Type | Method | 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, getEntityTypecallEvent, getEventName, isAsynchronouspublic EntityTransformedEvent(Entity entity, Entity transformed, EntityTransformedEvent.TransformedReason reason)
@Deprecated public Entity getTransformed()
@Deprecated public EntityTransformedEvent.TransformedReason getReason()
public HandlerList getHandlers()
getHandlers in class Eventpublic static HandlerList getHandlerList()
public boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface Cancellablecancel - true if you wish to cancel this eventCopyright © 2020. All rights reserved.