CauldronLevelChangeEvent
CauldronLevelChangeEvent
=> org.bukkit.event.Event
=> org.bukkit.event.block.BlockEvent
=> org.bukkit.event.block.CauldronLevelChangeEvent
译注:无文档。当炼药锅内液面高度变化时触发。
方法声明: public Entity getEntity()
方法签名: ()Lorg/bukkit/entity/Entity;
Get entity which did this. May be null.@return acting entity该方法用于获取导致液面高度变化的实体。返回值可能为null
。@return 导致液面高度变化的实体。
方法声明: public ChangeReason getReason()
方法签名: ()Lorg/bukkit/event/block/CauldronLevelChangeEvent/ChangeReason;
译注:无文档。该方法用于获取导致液面高度变化的原因。
方法声明: public BlockState getNewState()
方法签名: ()Lorg/bukkit/block/BlockState;
Gets the new state of the cauldron.@return The block state of the block that will be changed该方法用于获取涉事炼药锅的新块状态。@return 涉事炼药锅的新块状态。
方法声明: public int getOldLevel()
方法签名: ()I
Gets the old level of the cauldron.@return old level@see #getBlock()@deprecated not all cauldron contents are Levelled@deprecated 该方法已过时。炼药锅可以容纳的部分液体的液面高度无法用数字表示。
方法声明: public int getNewLevel()
方法签名: ()I
Gets the new level of the cauldron.@return new level@see #getNewState()@deprecated not all cauldron contents are Levelled@deprecated 该方法已过时。炼药锅可以容纳的部分液体的液面高度无法用数字表示。
方法声明: public void setNewLevel(int newLevel)
方法签名: (I)V
Sets the new level of the cauldron.@param newLevel new level@see #getNewState()@deprecated not all cauldron contents are Levelled@deprecated 该方法已过时。炼药锅可以容纳的部分液体的液面高度无法用数字表示。
方法声明: public boolean isCancelled()
方法签名: ()Z
方法声明: public void setCancelled(boolean cancelled)
方法签名: (Z)V
方法声明: public HandlerList getHandlers()
方法签名: ()Lorg/bukkit/event/HandlerList;
方法声明: public static HandlerList getHandlerList()
方法签名: ()Lorg/bukkit/event/HandlerList;
译注:无文档。该类系用于确定液面高度变化原因的枚举。
Player emptying the cauldron by filling their bucket.玩家用炼药锅中已有的液体把手中的空桶装满。
Player filling the cauldron by emptying their bucket.玩家把手中桶内已有的液体倒入空炼药锅。
Player emptying the cauldron by filling their bottle.玩家用炼药锅中已有的液体把手中的空玻璃瓶装满。
Player filling the cauldron by emptying their bottle.玩家把手中玻璃瓶内已有的液体倒入空炼药锅。
Player cleaning their banner.玩家用炼药锅内的水清洗旗帜。
Player cleaning their armor.玩家用炼药锅内的水清洗染色的皮革盔甲。
Player cleaning a shulker box.玩家用炼药锅内的水清洗染色的潜影盒。
Entity being extinguished.身上着火的实体用炼药锅内的水灭火。
Evaporating due to biome dryness.生物群系干燥程度太高,炼药锅内液体蒸发。
Filling due to natural fluid sources, eg rain or dripstone.炼药锅被自然产生的液体所填充,比如雨滴或滴水石锥的水滴。
Unknown.未知原因。
Last modified 1mo ago