Interface PlayerEvent.BreakBlock

Enclosing interface:
PlayerEvent

public static interface PlayerEvent.BreakBlock
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.InteractionResult
    breakBlock(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.server.level.ServerPlayer player, @Nullable IntValue xp)
    Deprecated variant of BlockEvent.BREAK.
  • Method Details

    • breakBlock

      net.minecraft.world.InteractionResult breakBlock(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.server.level.ServerPlayer player, @Nullable @Nullable IntValue xp)
      Deprecated variant of BlockEvent.BREAK. Defers to the proper event.