@FunctionalInterface public static interface PlayerBlockBreakEvents.Canceled
| Modifier and Type | Method and Description |
|---|---|
void |
onBlockBreakCanceled(net.minecraft.world.World world,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState state,
net.minecraft.block.entity.BlockEntity blockEntity)
Called when a block break has been canceled.
|
void onBlockBreakCanceled(net.minecraft.world.World world,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState state,
net.minecraft.block.entity.BlockEntity blockEntity)
world - the world where the block was going to be brokenplayer - the player who was going to break the blockpos - the position where the block was going to be brokenstate - the block state of the block that was going to be brokenblockEntity - the block entity of the block that was going to be broken, can be null