FallingPlayer

class FallingPlayer(player: LocalPlayer, var x: Double, var y: Double, var z: Double, motionX: Double, motionY: Double, motionZ: Double, yRot: Float)

Constructors

Link copied to clipboard
constructor(player: LocalPlayer, x: Double, y: Double, z: Double, motionX: Double, motionY: Double, motionZ: Double, yRot: Float)

Types

Link copied to clipboard
class CollisionResult(val pos: BlockPos?, val tick: Int, val positionBeforeMovement: Vec3)

positionBeforeMovement matches the position from which Minecraft 26.2 performs item use before the movement step represented by tick.

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
var x: Double
Link copied to clipboard
var y: Double
Link copied to clipboard
var z: Double

Functions

Link copied to clipboard
Link copied to clipboard
fun willStartTickInBlockBeforeCollision(targetPos: BlockPos, ticks: Int, forceDescending: Boolean = false): Boolean

Checks whether a future movement tick starts with the player's feet in targetPos before landing. This matches the block-position lookup in Minecraft 26.2 {@code LivingEntity.onClimbable()}.