类 EntityTransformEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.entity.EntityEvent
org.bukkit.event.entity.EntityTransformEvent
- 所有已实现的接口:
- Cancellable
- 直接已知子类:
- PigZapEvent
当实体将转化/蜕变为其它实体时触发本事件.
- 
嵌套类概要嵌套类从类继承的嵌套类/接口 org.bukkit.event.EventEvent.Result
- 
字段概要从类继承的字段 org.bukkit.event.entity.EntityEvententity
- 
构造器概要构造器构造器说明EntityTransformEvent(@NotNull Entity original, @NotNull List<Entity> convertedList, @NotNull EntityTransformEvent.TransformReason transformReason) 
- 
方法概要修饰符和类型方法说明static @NotNull HandlerList获取原实体将转变成的实体.获取原实体将转变成的实体.获取发生此次转化的原因.boolean获取这个事件是否被取消.一个被取消的事件不会在服务器里执行,但是仍然会传递事件到其他插件.voidsetCancelled(boolean cancel) 取消这个事件.从类继承的方法 org.bukkit.event.entity.EntityEventgetEntity, getEntityType从类继承的方法 org.bukkit.event.EventgetEventName, isAsynchronous
- 
构造器详细资料- 
EntityTransformEvent
 
- 
- 
方法详细资料- 
getTransformedEntity获取原实体将转变成的实体. 将返回实体转化列表中的第一个实体.原文: Gets the entity that the original entity was transformed to. This returns the first entity in the transformed entity list. - 返回:
- 转变成的实体
- 另请参阅:
 
- 
getTransformedEntities获取原实体将转变成的实体.原文: Gets the entities that the original entity was transformed to. - 返回:
- 实体转化列表
 
- 
getTransformReason获取发生此次转化的原因.原文: Gets the reason for the conversion that has occurred. - 返回:
- 发生此次转化的原因
 
- 
isCancelledpublic boolean isCancelled()从接口复制的说明: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 - 指定者:
- isCancelled在接口中- Cancellable
- 返回:
- 如果事件已经被取消,则为true
 
- 
setCancelledpublic void setCancelled(boolean cancel) 从接口复制的说明: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. - 指定者:
- setCancelled在接口中- Cancellable
- 参数:
- cancel- 如果你想取消这个事件,则为true
 
- 
getHandlers- 指定者:
- getHandlers在类中- Event
 
- 
getHandlerList
 
-