classpublicPriority 3
BlockBoundingBoxes
com.hypixel.hytale.server.core.asset.type.blockhitbox.BlockBoundingBoxes
12
Methods
12
Public Methods
6
Fields
2
Constructors
Constants
AssetBuilderCodec<String, BlockBoundingBoxes>CODEC= AssetBuilderCodec.builder(
BlockBoundingBoxes.class,
BlockBoundingBoxes::new,
...
StringDEFAULT= "Full"
intDEFAULT_ID= 0
Hitbox[]EMPTY_HITBOXES= new Hitbox[0]
intROTATIONS= Rotation.VALUES.length * Rotation.VALUES.length * Rotation.VALUES.length
BlockBoundingBoxesUNIT_BOX= new BlockBoundingBoxes("Full", 0.0, 1.0)
ValidatorCache<String>VALIDATOR_CACHE= new ValidatorCache<>(new AssetKeyValidator<>(BlockBoundingBoxes::getAssetStore))
Constructors
public
BlockBoundingBoxes()public
BlockBoundingBoxes(String id, double min, double max)Methods
Public Methods (12)
public
boolean containsPosition(double x, double y, double z)public
BlockBoundingBoxes.RotatedVariantBoxes get(Rotation yaw, Rotation pitch, Rotation roll)public
BlockBoundingBoxes.RotatedVariantBoxes get(int index)publicstatic
IndexedLookupTableAssetMap<String, BlockBoundingBoxes> getAssetMap()publicstatic
AssetStore<String, BlockBoundingBoxes, IndexedLookupTableAssetMap<String, BlockBoundingBoxes>> getAssetStore()public
Box getBoundingBox()@Nonnull
public
Box[] getDetailBoxes()@Nonnull
public
String getId()public
boolean hasDetailBoxes()public
boolean protrudesUnitBox()public
Hitbox[] toPacket()public
String toString()@Nonnull@Override
Fields
Protected Fields (4)
protected
Box[] baseDetailBoxesprotected
AssetExtraInfo.Data dataprotected
String idprotected
transient boolean protrudesUnitBoxPrivate/Package Fields (2)
private
AssetStore<String, BlockBoundingBoxes, IndexedLookupTableAssetMap<String, BlockBoundingBoxes>> ASSET_STOREprivate
transient BlockBoundingBoxes.RotatedVariantBoxes[] variants