public class BlockBreakingMovementBehaviour extends MovementBehaviour
| Constructor and Description |
|---|
BlockBreakingMovementBehaviour() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBreak(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos breakingPos,
net.minecraft.block.BlockState state) |
void |
damageEntities(MovementContext context,
net.minecraft.util.math.BlockPos pos,
net.minecraft.world.World world) |
protected net.minecraft.util.DamageSource |
getDamageSource() |
protected void |
onBlockBroken(MovementContext context,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState brokenState) |
protected boolean |
shouldDestroyStartBlock(net.minecraft.block.BlockState stateToBreak) |
void |
startMoving(MovementContext context) |
void |
stopMoving(MovementContext context) |
protected boolean |
throwsEntities() |
void |
tick(MovementContext context) |
void |
tickBreaker(MovementContext context) |
void |
visitNewPosition(MovementContext context,
net.minecraft.util.math.BlockPos pos) |
createInstance, dropItem, getActiveAreaOffset, hasSpecialInstancedRendering, isActive, onSpeedChanged, renderAsNormalTileEntity, renderInContraption, writeExtraDatapublic void startMoving(MovementContext context)
startMoving in class MovementBehaviourpublic void visitNewPosition(MovementContext context, net.minecraft.util.math.BlockPos pos)
visitNewPosition in class MovementBehaviourpublic void damageEntities(MovementContext context, net.minecraft.util.math.BlockPos pos, net.minecraft.world.World world)
protected net.minecraft.util.DamageSource getDamageSource()
protected boolean throwsEntities()
public void stopMoving(MovementContext context)
stopMoving in class MovementBehaviourpublic void tick(MovementContext context)
tick in class MovementBehaviourpublic void tickBreaker(MovementContext context)
protected boolean shouldDestroyStartBlock(net.minecraft.block.BlockState stateToBreak)
public boolean canBreak(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos breakingPos,
net.minecraft.block.BlockState state)
protected void onBlockBroken(MovementContext context, net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState brokenState)