EntityPlaceEvent
EntityPlaceEvent
=> org.bukkit.event.Event
=> org.bukkit.event.entity.EntityEvent
=> org.bukkit.event.entity.EntityPlaceEvent
Triggered when a entity is created in the world by a player "placing" an itemon a block.Note that this event is currently only fired for four specific placements:armor stands, boats, minecarts, and end crystals.当玩家对准方块“放置”物品堆,生成实体时触发。目前本事件仅在玩家放置如下四种特定实体时触发:盔甲架、船、矿车和末影水晶。
方法声明: public Player getPlayer()
方法签名: ()Lorg/bukkit/entity/Player;
Returns the player placing the entity@return the player placing the entity该方法用于获取放置涉事实体的玩家。@return 放置涉事实体的玩家。
方法声明: public Block getBlock()
方法签名: ()Lorg/bukkit/block/Block;
Returns the block that the entity was placed on@return the block that the entity was placed on该方法用于获取放置涉事实体时所依凭的方块。@return 放置涉事实体时所依凭的方块。
方法声明: public BlockFace getBlockFace()
方法签名: ()Lorg/bukkit/block/BlockFace;
Returns the face of the block that the entity was placed on@return the face of the block that the entity was placed on该方法用于获取放置涉事实体时所依凭的方块面。@return 放置涉事实体时所依凭的方块面。
方法声明: public boolean isCancelled()
方法签名: ()Z
方法声明: public void setCancelled(boolean cancel)
方法签名: (Z)V
方法声明: public HandlerList getHandlers()
方法签名: ()Lorg/bukkit/event/HandlerList;
方法声明: public static HandlerList getHandlerList()
方法签名: ()Lorg/bukkit/event/HandlerList;
Last modified 1mo ago