public static class TumblestoneBlockEvent.PreBlockDestroy extends TumblestoneBlockEvent
TumblestoneBlockEvent.PostBlockBroke, TumblestoneBlockEvent.PostBlockDestroy, TumblestoneBlockEvent.PostCooldownEnd, TumblestoneBlockEvent.PostGrow, TumblestoneBlockEvent.PreBlockBroke, TumblestoneBlockEvent.PreBlockDestroy, TumblestoneBlockEvent.PreCooldownEnd, TumblestoneBlockEvent.PreGrow
Constructor and Description |
---|
PreBlockDestroy(net.minecraft.world.World level,
net.minecraft.block.BlockState state,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.item.ItemStack item)
Constructor taking player and all block details
|
Modifier and Type | Method and Description |
---|---|
net.minecraft.item.ItemStack |
getItem()
The main hand item
|
net.minecraft.entity.player.PlayerEntity |
getPlayer()
Gets the player entity
|
getPos, getState, getWorld
public PreBlockDestroy(net.minecraft.world.World level, net.minecraft.block.BlockState state, net.minecraft.util.math.BlockPos pos, net.minecraft.entity.player.PlayerEntity player, net.minecraft.item.ItemStack item)
state
- The state of the blockpos
- The position of the blockplayer
- The playeritem
- The item in their MAIN_HAND