Class InteractionHitbox
-
- All Implemented Interfaces:
public final class InteractionHitbox
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
InteractionHitbox.Companion
-
Constructor Summary
Constructors Constructor Description InteractionHitbox(Object hitboxObject)
InteractionHitbox(String hitboxString)
InteractionHitbox(Vector offset, Float width, Float height)
-
Method Summary
-
-
Method Detail
-
getOffset
final Vector getOffset()
-
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)
-
-
-
-