- Enclosing class:
PlayerBlockBreakEvents
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
void
afterBlockBreak(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 after a block is successfully broken.
-
Method Details
-
afterBlockBreak
void afterBlockBreak(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 after a block is successfully broken.
- Parameters:
world
- the world where the block was broken
player
- the player who broke the block
pos
- the position where the block was broken
state
- the block state before the block was broken
blockEntity
- the block entity of the broken block, can be null