Interface Hitbox.Builder
- Enclosing interface:
- Hitbox
public static interface Hitbox.Builder
The builder for the hitbox
-
Method Summary
Modifier and TypeMethodDescription@NonNull Hitboxbuild()Builds this hitbox, defaulting toVector3f.ZEROif any one vector was not provided.max(@NonNull org.cloudburstmc.math.vector.Vector3f max) Sets the max corner of the hitboxmin(@NonNull org.cloudburstmc.math.vector.Vector3f min) Sets the min corner of the hitboxpivot(@NonNull org.cloudburstmc.math.vector.Vector3f pivot) Sets the pivot of the hitbox
-
Method Details
-
min
Sets the min corner of the hitbox- Parameters:
min- the vector of the corner- Returns:
- this builder
-
max
Sets the max corner of the hitbox- Parameters:
max- the vector of the corner- Returns:
- this builder
-
pivot
Sets the pivot of the hitbox- Parameters:
pivot- the pivot vector- Returns:
- this builder
-
build
@NonNull Hitbox build()Builds this hitbox, defaulting toVector3f.ZEROif any one vector was not provided.- Returns:
- a new hitbox
-