类 BonemealEvent


public class BonemealEvent extends PlayerEvent
This event is called when a player attempts to use Bonemeal on a block. It can be canceled to completely prevent any further processing. You can also set the result to ALLOW to mark the event as processed and use up a bonemeal from the stack but do no further processing. setResult(ALLOW) is the same as the old setHandled()
  • 字段详细资料

  • 构造器详细资料

    • BonemealEvent

      public BonemealEvent(@NotNull @NotNull Player player, @NotNull @NotNull Level level, @NotNull @NotNull BlockPos pos, @NotNull @NotNull BlockState block, @NotNull @NotNull ItemStack stack)
  • 方法详细资料

    • getLevel

      public Level getLevel()
    • getPos

      public BlockPos getPos()
    • getBlock

      public BlockState getBlock()
    • getStack

      @NotNull public @NotNull ItemStack getStack()