Class SlidingDoorMovementBehaviour
java.lang.Object
com.simibubi.create.content.decoration.slidingDoor.SlidingDoorMovementBehaviour
- 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 TypeMethodDescriptionprotected net.minecraft.core.DirectiongetDoorFacing(MovementContext context) protected DoorControlBehaviourgetElevatorDoorControl(ElevatorContraption ec, MovementContext context) protected DoorControlBehaviourbooleanprotected booleanshouldOpen(MovementContext context) protected booleanshouldOpenAt(DoorControlBehaviour controller, MovementContext context) protected booleanshouldUpdate(MovementContext context, boolean shouldOpen) voidtick(MovementContext context) protected voidtickOpen(MovementContext context, boolean currentlyOpen) Methods 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, cancelStall, createVisual, disableBlockEntityRendering, dropItem, getActiveAreaOffset, isActive, onDisabledByControls, onSpeedChanged, renderInContraption, startMoving, stopMoving, visitNewPosition, writeExtraData
-
Constructor Details
-
SlidingDoorMovementBehaviour
public SlidingDoorMovementBehaviour()
-
-
Method Details
-
mustTickWhileDisabled
public boolean mustTickWhileDisabled()- Specified by:
mustTickWhileDisabledin interfaceMovementBehaviour
-
tick
- Specified by:
tickin interfaceMovementBehaviour
-
tickOpen
-
shouldUpdate
-
shouldOpen
-
shouldOpenAt
-
getElevatorDoorControl
protected DoorControlBehaviour getElevatorDoorControl(ElevatorContraption ec, MovementContext context) -
getTrainStationDoorControl
protected DoorControlBehaviour getTrainStationDoorControl(CarriageContraptionEntity cce, MovementContext context) -
getDoorFacing
-