Class ShulkerHitbox
-
- All Implemented Interfaces:
public final class ShulkerHitbox
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classShulkerHitbox.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 VectorgetOffset()final DoublegetScale()final DoublegetLength()final BlockFacegetDirection()final BooleangetVisible()final Vectoroffset(Float angle)Offset rotated around the baseEntity's yaw final Vector3fdirection(Float angle)final BoundingBoxboundingBox(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)
-
-
-
-