HitboxCuboid

@Serializable
data class HitboxCuboid(val minX: Double, val minY: Double, val minZ: Double, val width: Double, val height: Double)

An interaction hitbox for an entity-backed block model. Coordinates are relative to the block's position. The hitbox has a square base and an independent height.

Constructors

Link copied to clipboard
constructor(minX: Double, minY: Double, minZ: Double, width: Double, height: Double)

Properties

Link copied to clipboard

The x-coordinate of the hitbox's center relative to the block's position.

Link copied to clipboard

The y-coordinate of the hitbox's center relative to the block's position.

Link copied to clipboard

The z-coordinate of the hitbox's center relative to the block's position.

Link copied to clipboard

The length of the hitbox along the y axis. Must be positive and representable as a float.

Link copied to clipboard

The maximum x-coordinate relative to the block's position.

Link copied to clipboard

The maximum y-coordinate relative to the block's position.

Link copied to clipboard

The maximum z-coordinate relative to the block's position.

Link copied to clipboard

The minimum x-coordinate relative to the block's position.

Link copied to clipboard

The minimum y-coordinate relative to the block's position.

Link copied to clipboard

The minimum z-coordinate relative to the block's position.

Link copied to clipboard

The length of the hitbox along the x and z axes. Must be positive and representable as a float.