Interface Hitbox.Builder
- Enclosing interface:
Hitbox
public static interface Hitbox.Builder
The builder for the hitbox
- Since:
- 2.11.0
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds this hitbox, defaulting toVector3f.ZEROif any one vector was not provided.max(org.cloudburstmc.math.vector.Vector3f max) Sets the max corner of the hitboxmin(org.cloudburstmc.math.vector.Vector3f min) Sets the min corner of the hitboxpivot(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
- Since:
- 2.11.0
-
max
Sets the max corner of the hitbox- Parameters:
max- the vector of the corner- Returns:
- this builder
- Since:
- 2.11.0
-
pivot
Sets the pivot of the hitbox- Parameters:
pivot- the pivot vector- Returns:
- this builder
- Since:
- 2.11.0
-
build
Hitbox build()Builds this hitbox, defaulting toVector3f.ZEROif any one vector was not provided.- Returns:
- a new hitbox
- Since:
- 2.11.0
-