Class SawMovementBehaviour
java.lang.Object
com.simibubi.create.content.kinetics.base.BlockBreakingMovementBehaviour
com.simibubi.create.content.kinetics.saw.SawMovementBehaviour
- All Implemented Interfaces:
MovementBehaviour
-
Field Summary
Fields inherited from interface com.simibubi.create.api.behaviour.movement.MovementBehaviour
REGISTRY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanBreak(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos breakingPos, net.minecraft.world.level.block.state.BlockState state) @Nullable ActorVisualcreateVisual(dev.engine_room.flywheel.api.visualization.VisualizationContext visualizationContext, VirtualRenderWorld simulationWorld, MovementContext movementContext) booleanvoiddropItemFromCutTree(MovementContext context, net.minecraft.core.BlockPos pos, net.minecraft.world.item.ItemStack stack) net.minecraft.world.phys.Vec3getActiveAreaOffset(MovementContext context) protected net.minecraft.world.damagesource.DamageSourcegetDamageSource(net.minecraft.world.level.Level level) booleanisActive(MovementContext context) protected voidonBlockBroken(MovementContext context, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState brokenState) voidrenderInContraption(MovementContext context, VirtualRenderWorld renderWorld, ContraptionMatrices matrices, net.minecraft.client.renderer.MultiBufferSource buffer) protected booleanshouldDestroyStartBlock(net.minecraft.world.level.block.state.BlockState stateToBreak) voidvisitNewPosition(MovementContext context, net.minecraft.core.BlockPos pos) Methods inherited from class com.simibubi.create.content.kinetics.base.BlockBreakingMovementBehaviour
cancelStall, damageEntities, destroyBlock, getBlockBreakingSpeed, startMoving, stopMoving, throwEntity, throwsEntities, tick, tickBreakerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.simibubi.create.api.behaviour.movement.MovementBehaviour
canBeDisabledVia, dropItem, mustTickWhileDisabled, onDisabledByControls, onSpeedChanged, writeExtraData
-
Constructor Details
-
SawMovementBehaviour
public SawMovementBehaviour()
-
-
Method Details
-
isActive
-
getActiveAreaOffset
-
visitNewPosition
- Specified by:
visitNewPositionin interfaceMovementBehaviour- Overrides:
visitNewPositionin classBlockBreakingMovementBehaviour
-
canBreak
public boolean canBreak(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos breakingPos, net.minecraft.world.level.block.state.BlockState state) - Overrides:
canBreakin classBlockBreakingMovementBehaviour
-
onBlockBroken
protected void onBlockBroken(MovementContext context, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState brokenState) - Overrides:
onBlockBrokenin classBlockBreakingMovementBehaviour
-
dropItemFromCutTree
public void dropItemFromCutTree(MovementContext context, net.minecraft.core.BlockPos pos, net.minecraft.world.item.ItemStack stack) -
disableBlockEntityRendering
public boolean disableBlockEntityRendering() -
createVisual
@Nullable public @Nullable ActorVisual createVisual(dev.engine_room.flywheel.api.visualization.VisualizationContext visualizationContext, VirtualRenderWorld simulationWorld, MovementContext movementContext) -
renderInContraption
public void renderInContraption(MovementContext context, VirtualRenderWorld renderWorld, ContraptionMatrices matrices, net.minecraft.client.renderer.MultiBufferSource buffer) -
shouldDestroyStartBlock
protected boolean shouldDestroyStartBlock(net.minecraft.world.level.block.state.BlockState stateToBreak) - Overrides:
shouldDestroyStartBlockin classBlockBreakingMovementBehaviour
-
getDamageSource
protected net.minecraft.world.damagesource.DamageSource getDamageSource(net.minecraft.world.level.Level level) - Overrides:
getDamageSourcein classBlockBreakingMovementBehaviour
-