public class HitBox
extends java.lang.Object
Constructor and Description |
---|
HitBox(StorageHitbox hitbox)
Hitbox constructor
|
Modifier and Type | Method and Description |
---|---|
java.util.HashMap<java.lang.Integer,java.util.HashMap<org.bukkit.util.Vector,HitBoxSide>> |
getOffsetsBasedOnRotation()
A map of hitbox points based on vehicle rotation
|
java.util.HashMap<org.bukkit.util.Vector,HitBoxSide> |
getPointOffsets(java.lang.Integer rotation)
Get the offset map based on rotation
|
boolean |
isReady()
Is this data done loading async and ready to use
|
public HitBox(StorageHitbox hitbox)
This calculate all point offsets async
hitbox
- the StorageHitbox (Sizes)public java.util.HashMap<org.bukkit.util.Vector,HitBoxSide> getPointOffsets(java.lang.Integer rotation)
rotation
- yaw intpublic java.util.HashMap<java.lang.Integer,java.util.HashMap<org.bukkit.util.Vector,HitBoxSide>> getOffsetsBasedOnRotation()
Key: yaw int Value: A map of offset vectors and a side
public boolean isReady()