BrewEvent
BrewEvent
=> org.bukkit.event.Event
=> org.bukkit.event.block.BlockEvent
=> org.bukkit.event.inventory.BrewEvent
Called when the brewing of the contents inside the Brewing Stand iscomplete.当酿造台内的药水炼制完成时触发。
方法声明: public BrewerInventory getContents()
方法签名: ()Lorg/bukkit/inventory/BrewerInventory;
Gets the contents of the Brewing Stand.Note: The brewer inventory still holds the items found prior tothe finalization of the brewing process, e.g. the plain water bottles.@return the contents该方法用于获取酿造台物品栏内的物品。注意,本事件触发时,酿造台物品栏内仍然存放着酿造完成以前的物品堆,比如无药水效果的水瓶等。@return 酿造台物品栏内的物品。译注:所谓“酿造台物品栏”,指通过本事件的getBlock()
方法获得酿造台方块对象,再通过其BlockState
得到的酿造台物品栏。该物品栏内存放的是酿造前的物品,如水瓶等。通过本方法可以获得酿造后的结果,如药水等。