Package org.geysermc.geyser.impl.entity
Class HitboxImpl
java.lang.Object
org.geysermc.geyser.impl.entity.HitboxImpl
- All Implemented Interfaces:
org.geysermc.geyser.api.entity.data.types.Hitbox
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHitboxImpl(org.cloudburstmc.math.vector.Vector3f min, org.cloudburstmc.math.vector.Vector3f max, org.cloudburstmc.math.vector.Vector3f pivot) -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic List<org.geysermc.geyser.api.entity.data.types.Hitbox>fromMetaData(@Nullable org.cloudburstmc.nbt.NbtMap metaDataMap) inthashCode()org.cloudburstmc.math.vector.Vector3fmax()org.cloudburstmc.math.vector.Vector3fmin()org.cloudburstmc.math.vector.Vector3fpivot()org.cloudburstmc.nbt.NbtMaptoNbtMap()static org.cloudburstmc.nbt.NbtMaptoString()
-
Field Details
-
EMPTY
public static org.geysermc.geyser.api.entity.data.types.Hitbox EMPTY
-
-
Constructor Details
-
HitboxImpl
public HitboxImpl(org.cloudburstmc.math.vector.Vector3f min, org.cloudburstmc.math.vector.Vector3f max, org.cloudburstmc.math.vector.Vector3f pivot)
-
-
Method Details
-
fromMetaData
public static List<org.geysermc.geyser.api.entity.data.types.Hitbox> fromMetaData(@Nullable org.cloudburstmc.nbt.NbtMap metaDataMap) -
toNbtMap
public org.cloudburstmc.nbt.NbtMap toNbtMap() -
toNbtMap
public static org.cloudburstmc.nbt.NbtMap toNbtMap(List<org.geysermc.geyser.api.entity.data.types.Hitbox> hitboxes) -
min
public org.cloudburstmc.math.vector.Vector3f min()- Specified by:
minin interfaceorg.geysermc.geyser.api.entity.data.types.Hitbox
-
max
public org.cloudburstmc.math.vector.Vector3f max()- Specified by:
maxin interfaceorg.geysermc.geyser.api.entity.data.types.Hitbox
-
pivot
public org.cloudburstmc.math.vector.Vector3f pivot()- Specified by:
pivotin interfaceorg.geysermc.geyser.api.entity.data.types.Hitbox
-
equals
-
hashCode
public int hashCode() -
toString
-