Class 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()
  • Field Details

  • Constructor Details

    • BonemealEvent

      public BonemealEvent(@NotNull @NotNull Player player, @NotNull @NotNull Level level, @NotNull @NotNull BlockPos pos, @NotNull @NotNull BlockState block, @NotNull @NotNull ItemStack stack)
  • Method Details

    • getLevel

      public Level getLevel()
    • getPos

      public BlockPos getPos()
    • getBlock

      public BlockState getBlock()
    • getStack

      @NotNull public @NotNull ItemStack getStack()