Interface Hitbox
public interface Hitbox
Represents an entity hitbox.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic Hitbox.Builderbuilder()@NonNull org.cloudburstmc.math.vector.Vector3fmax()The max "corner" of the hitbox@NonNull org.cloudburstmc.math.vector.Vector3fmin()The min "corner" of the hitbox@NonNull org.cloudburstmc.math.vector.Vector3fpivot()The pivot of the hitbox
-
Field Details
-
EMPTY
Represents an empty / disabled hitbox.
-
-
Method Details
-
min
@NonNull org.cloudburstmc.math.vector.Vector3f min()The min "corner" of the hitbox- Returns:
- the vector of the corner
-
max
@NonNull org.cloudburstmc.math.vector.Vector3f max()The max "corner" of the hitbox- Returns:
- the vector of the corner
-
pivot
@NonNull org.cloudburstmc.math.vector.Vector3f pivot()The pivot of the hitbox- Returns:
- the pivot
-
builder
-