Class MovementParkour
java.lang.Object
com.zenith.feature.pathfinder.movement.Movement
com.zenith.feature.pathfinder.movement.movements.MovementParkour
- 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 -
Method Summary
Modifier and TypeMethodDescriptiondoublecalculateCost(CalculationContext context) static voidcost(CalculationContext context, int x, int y, int z, Direction dir, MutableMoveResult res) static MovementParkourcost(CalculationContext context, BlockPos src, Direction direction) booleansafeToCancel(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, prepared, recalculateCost, reset, resetBlockCache, safeToCancel, toBreak, toPlace, toWalkInto, update
-
Method Details
-
cost
-
cost
public static void cost(CalculationContext context, int x, int y, int z, Direction dir, MutableMoveResult res) -
calculateCost
- Specified by:
calculateCostin classMovement
-
calculateValidPositions
- Specified by:
calculateValidPositionsin classMovement
-
safeToCancel
- Overrides:
safeToCancelin classMovement
-
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
-
toString
-