Contents
Class BlockHit
java.lang.Object
com.hypixel.hytale.server.npc.movement.controllers.BlockHit
Snapshot of a block that the rail passed through due to
RailStepConfig.ignoredBlockFilter.
Instances are pooled by RailStepResult and reused across ticks. The contained vectors
are stable references owned by this instance; callers must copy them if they need to retain the
data past the next RailStepResult.reset().
-
Field Summary
FieldsModifier and TypeFieldDescriptionintInternal block type id (may beAssetMapWithIndexes.NOT_FOUND).intintintfinal org.joml.Vector3dPoint on the block surface where the entity's swept box first touched it.final org.joml.Vector3dBlock collision normal, pointing outward from the block toward the entity.doubleScale along the requested delta in [0, 1]. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidassign(int blockX, int blockY, int blockZ, int blockTypeId, org.joml.Vector3dc collisionPoint, org.joml.Vector3dc normal, double t)
-
Field Details
-
blockX
public int blockX -
blockY
public int blockY -
blockZ
public int blockZ -
blockTypeId
public int blockTypeIdInternal block type id (may beAssetMapWithIndexes.NOT_FOUND). -
collisionPoint
@Nonnull public final org.joml.Vector3d collisionPointPoint on the block surface where the entity's swept box first touched it. -
normal
@Nonnull public final org.joml.Vector3d normalBlock collision normal, pointing outward from the block toward the entity. -
t
public double tScale along the requested delta in [0, 1].
-
-
Constructor Details
-
BlockHit
public BlockHit()
-
-
Method Details
-
assign
public void assign(int blockX, int blockY, int blockZ, int blockTypeId, @Nonnull org.joml.Vector3dc collisionPoint, @Nonnull org.joml.Vector3dc normal, double t)
-