Package-level declarations
Types
Link copied to clipboard
Link copied to clipboard
abstract class BaseYawTargetPositionFactory(config: PositionFactoryConfiguration, yawTolerance: Float = 5.0f) : FaceTargetPositionFactory
Link copied to clipboard
class BlockOffsetOptions(val offsetsToInvestigate: List<Vec3i>, val priorityComparator: Comparator<BlockPos>)
Contains information about offsets (to the target pos) which should be investigated.
Link copied to clipboard
data class BlockPlacementTarget(val interactedBlockPos: BlockPos, val placedBlock: BlockPos, val direction: Direction, val minPlacementY: Double, val rotation: Rotation)
Link copied to clipboard
class BlockPlacementTargetFindingOptions(val offsetOptions: BlockOffsetOptions, val faceHandlingOptions: FaceHandlingOptions, val stackToPlaceWith: ItemStack, val playerLocationOnPlacement: PlayerLocationOnPlacement)
Parameters used when generating a targeting plan for a block placement.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class BlockTargetPlan(val blockPosToInteractWith: BlockPos, val interactionDirection: Direction)
A draft of a block placement
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class EdgePointTargetPositionFactory(val config: PositionFactoryConfiguration) : FaceTargetPositionFactory
Link copied to clipboard
class FaceHandlingOptions(val facePositionFactory: FaceTargetPositionFactory, val considerFacingAwayFaces: Boolean = false)
Decides how scaffold processes the faces of the considered target blocks.
Link copied to clipboard
Link copied to clipboard
class NearestRotationTargetPositionFactory(val config: PositionFactoryConfiguration) : FaceTargetPositionFactory
Always targets the point with the nearest rotation angle to the current rotation angle
Link copied to clipboard
class PlacementPlan(val targetPos: BlockPos, val placementTarget: BlockPlacementTarget, val hotbarItemSlot: HotbarItemSlot)
Link copied to clipboard
Contains information about where the player will be on placement.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class StabilizedRotationTargetPositionFactory(val config: PositionFactoryConfiguration, optimalLine: Line?) : FaceTargetPositionFactory
Always targets the point with the nearest rotation angle to the current rotation angle. If you have questions, you have to ask @superblaubeere27 because I am too stupid to explain this without a picture.
Functions
Link copied to clipboard
fun findBestBlockPlacementTarget(pos: BlockPos, options: BlockPlacementTargetFindingOptions): BlockPlacementTarget?