ScaffoldMovementPlanner

Types

Link copied to clipboard
data class SupportReference(val blockPos: BlockPos, val offsetX: Double, val offsetZ: Double)

Functions

Link copied to clipboard

When using scaffold the player wants to follow the line and the scaffold should support them in doing so. This function estimates the line the player is trying to move on while preserving the player's offset on the current support block until placed block history can provide a stable line.

Link copied to clipboard
fun reset()
Link copied to clipboard
fun trackPlacedBlock(target: BlockPos)

Remembers the last placed blocks and removes old ones.