Class BlockBreakingMovementBehaviour

java.lang.Object
com.simibubi.create.content.contraptions.components.actors.BlockBreakingMovementBehaviour
All Implemented Interfaces:
MovementBehaviour
Direct Known Subclasses:
DrillMovementBehaviour, PloughMovementBehaviour, SawMovementBehaviour

public class BlockBreakingMovementBehaviour extends Object implements MovementBehaviour
  • Constructor Details

    • BlockBreakingMovementBehaviour

      public BlockBreakingMovementBehaviour()
  • Method Details

    • startMoving

      public void startMoving(MovementContext context)
      Specified by:
      startMoving in interface MovementBehaviour
    • visitNewPosition

      public void visitNewPosition(MovementContext context, net.minecraft.core.BlockPos pos)
      Specified by:
      visitNewPosition in interface MovementBehaviour
    • damageEntities

      public void damageEntities(MovementContext context, net.minecraft.core.BlockPos pos, net.minecraft.world.level.Level world)
    • throwEntity

      protected void throwEntity(MovementContext context, net.minecraft.world.entity.Entity entity)
    • getDamageSource

      protected net.minecraft.world.damagesource.DamageSource getDamageSource()
    • throwsEntities

      protected boolean throwsEntities()
    • cancelStall

      public void cancelStall(MovementContext context)
      Specified by:
      cancelStall in interface MovementBehaviour
    • stopMoving

      public void stopMoving(MovementContext context)
      Specified by:
      stopMoving in interface MovementBehaviour
    • tick

      public void tick(MovementContext context)
      Specified by:
      tick in interface MovementBehaviour
    • tickBreaker

      public void tickBreaker(MovementContext context)
    • shouldDestroyStartBlock

      protected boolean shouldDestroyStartBlock(net.minecraft.world.level.block.state.BlockState stateToBreak)
    • canBreak

      public boolean canBreak(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos breakingPos, net.minecraft.world.level.block.state.BlockState state)
    • onBlockBroken

      protected void onBlockBroken(MovementContext context, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState brokenState)