Interface Hitbox
@Experimental
public interface Hitbox
Represents an entity hitbox, with min/max representing absolute coordinates
- Since:
- 2.11.0
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Hitbox.Builderbuilder()Creates a new builder for a hitboxorg.cloudburstmc.math.vector.Vector3fmax()The max "corner" of the hitbox as a position in the worldorg.cloudburstmc.math.vector.Vector3fmin()The min "corner" of the hitbox as a position in the worldorg.cloudburstmc.math.vector.Vector3fpivot()The pivot of the hitbox
-
Method Details
-
min
@Experimental org.cloudburstmc.math.vector.Vector3f min()The min "corner" of the hitbox as a position in the world- Returns:
- the vector of the corner
- Since:
- 2.11.0
-
max
@Experimental org.cloudburstmc.math.vector.Vector3f max()The max "corner" of the hitbox as a position in the world- Returns:
- the vector of the corner
- Since:
- 2.11.0
-
pivot
@Experimental org.cloudburstmc.math.vector.Vector3f pivot()The pivot of the hitbox- Returns:
- the pivot
- Since:
- 2.11.0
-
builder
Creates a new builder for a hitbox- Returns:
- a new builder
- Since:
- 2.11.0
-