Class MovementPillar
java.lang.Object
com.zenith.feature.pathfinder.movement.Movement
com.zenith.feature.pathfinder.movement.movements.MovementPillar
- All Implemented Interfaces:
IMovement
-
Field Summary
Fields inherited from class Movement
ctx, dest, HORIZONTALS_BUT_ALSO_DOWN_____SO_EVERY_DIRECTION_EXCEPT_UP, positionsToBreak, positionToPlace, src, toBreakCached, toPlaceCached, toWalkIntoCached -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublecalculateCost(CalculationContext context) static doublecost(CalculationContext context, int x, int y, int z) static BlockPosgetAgainst(BlockPos vine) protected booleanprepared(MovementState state) toString()updateState(MovementState state) Calculate latest movement state.Methods inherited from class Movement
calculatedWhileLoaded, checkLoadedChunk, getCost, getCost, getDest, getDirection, getSrc, getValidPositions, override, playerInValidPosition, recalculateCost, reset, resetBlockCache, safeToCancel, safeToCancel, toBreak, toPlace, toWalkInto, update
-
Constructor Details
-
MovementPillar
-
-
Method Details
-
calculateCost
- Specified by:
calculateCostin classMovement
-
calculateValidPositions
- Specified by:
calculateValidPositionsin classMovement
-
cost
-
getAgainst
-
updateState
Description copied from class:MovementCalculate latest movement state. Gets called once a tick.- Overrides:
updateStatein classMovement- Parameters:
state- The current state- Returns:
- The new state
-
prepared
-
toString
-