Class PistonMovingBlockEntity
java.lang.Object
com.zenith.feature.player.tickable.block_entity.TickableBlockEntity
com.zenith.feature.player.tickable.block_entity.piston.PistonMovingBlockEntity
-
Field Summary
FieldsFields inherited from class TickableBlockEntity
blockPos -
Constructor Summary
ConstructorsConstructorDescriptionPistonMovingBlockEntity(BlockPos pos, BlockState movedState, Direction direction, boolean extending, boolean isSourcePiston) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanbooleanisValidBlock(Block block) block entity should be removed when the block at its position changesvoidtick()Methods inherited from class TickableBlockEntity
getBlockPos, isRemoved, setRemoved
-
Field Details
-
TICK_MOVEMENT
public static final double TICK_MOVEMENT- See Also:
-
-
Constructor Details
-
PistonMovingBlockEntity
public PistonMovingBlockEntity(BlockPos pos, BlockState movedState, Direction direction, boolean extending, boolean isSourcePiston)
-
-
Method Details
-
isValidBlock
Description copied from class:TickableBlockEntityblock entity should be removed when the block at its position changes- Specified by:
isValidBlockin classTickableBlockEntity
-
getMovementDirection
-
finalTick
public void finalTick() -
tick
public void tick()- Specified by:
tickin classTickableBlockEntity
-
getCollisionBoxes
-
getMovedState
-
getDirection
-
isExtending
public boolean isExtending() -
isSourcePiston
public boolean isSourcePiston()
-