Contents
Class CylinderShape
java.lang.Object
com.hypixel.hytale.builtin.triggervolumes.shape.TriggerVolumeShape
com.hypixel.hytale.builtin.triggervolumes.shape.CylinderShape
-
Field Summary
FieldsFields inherited from class TriggerVolumeShape
BASE_CODEC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(org.joml.Vector3d origin, org.joml.Vector3d testPoint) Returns whether the world-spacetestPointlies inside this origin-relative shape.copy()doubleRadius used when this shape must be represented generically for display.org.joml.Vector3ddoubledoubleMaximum distance from the volume origin to any point in this shape, including offsets.doublevoidgetWorldAABB(org.joml.Vector3d origin, org.joml.Vector3d outMin, org.joml.Vector3d outMax) voidrotateInPlace(float yawRadians) Bakes a yaw rotation into the stored shape data during paste/worldgen conversion so runtime containment checks can stay axis-aligned to the stored shape representation.Methods inherited from class TriggerVolumeShape
registerBuiltinShapes
-
Field Details
-
CODEC
-
-
Constructor Details
-
CylinderShape
public CylinderShape() -
CylinderShape
public CylinderShape(@Nonnull org.joml.Vector3d center, double radius, double height)
-
-
Method Details
-
contains
public boolean contains(@Nonnull org.joml.Vector3d origin, @Nonnull org.joml.Vector3d testPoint) Description copied from class:TriggerVolumeShapeReturns whether the world-spacetestPointlies inside this origin-relative shape.- Specified by:
containsin classTriggerVolumeShape
-
getBoundingRadius
public double getBoundingRadius()Description copied from class:TriggerVolumeShapeRadius used when this shape must be represented generically for display. This may be smaller thanTriggerVolumeShape.getMaxDistanceFromOrigin()for shapes offset from their origin.- Specified by:
getBoundingRadiusin classTriggerVolumeShape
-
getMaxDistanceFromOrigin
public double getMaxDistanceFromOrigin()Description copied from class:TriggerVolumeShapeMaximum distance from the volume origin to any point in this shape, including offsets. The spatial index uses this as the conservative query radius before exact shape tests.- Specified by:
getMaxDistanceFromOriginin classTriggerVolumeShape
-
getWorldAABB
public void getWorldAABB(@Nonnull org.joml.Vector3d origin, @Nonnull org.joml.Vector3d outMin, @Nonnull org.joml.Vector3d outMax) - Specified by:
getWorldAABBin classTriggerVolumeShape
-
rotateInPlace
public void rotateInPlace(float yawRadians) Description copied from class:TriggerVolumeShapeBakes a yaw rotation into the stored shape data during paste/worldgen conversion so runtime containment checks can stay axis-aligned to the stored shape representation.- Specified by:
rotateInPlacein classTriggerVolumeShape
-
copy
- Specified by:
copyin classTriggerVolumeShape
-
getCenter
@Nonnull public org.joml.Vector3d getCenter() -
getRadius
public double getRadius() -
getHeight
public double getHeight()
-