Class ShulkerHitbox
-
- All Implemented Interfaces:
public final class ShulkerHitbox
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
ShulkerHitbox.Companion
-
Constructor Summary
Constructors Constructor Description ShulkerHitbox(String hitboxString)
ShulkerHitbox(Vector offset, Double scale, Double length, BlockFace direction, Boolean visible)
-
Method Summary
Modifier and Type Method Description final Vector
getOffset()
final Double
getScale()
final Double
getLength()
final BlockFace
getDirection()
final Boolean
getVisible()
final Vector
offset(Float angle)
Offset rotated around the baseEntity's yaw final Vector3f
direction(Float angle)
final BoundingBox
boundingBox(Location center)
-
-
Method Detail
-
getOffset
final Vector getOffset()
-
getDirection
final BlockFace getDirection()
-
getVisible
final Boolean getVisible()
-
offset
final Vector offset(Float angle)
Offset rotated around the baseEntity's yaw
- Parameters:
angle
- Yaw of baseEntity- Returns:
Rotated offset vector
-
boundingBox
final BoundingBox boundingBox(Location center)
-
-
-
-