Class HitboxImpl

java.lang.Object
org.geysermc.geyser.impl.entity.HitboxImpl
All Implemented Interfaces:
org.geysermc.geyser.api.entity.data.types.Hitbox

public class HitboxImpl extends Object implements org.geysermc.geyser.api.entity.data.types.Hitbox
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static org.geysermc.geyser.api.entity.data.types.Hitbox
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    HitboxImpl(org.cloudburstmc.math.vector.Vector3f min, org.cloudburstmc.math.vector.Vector3f max, org.cloudburstmc.math.vector.Vector3f pivot)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    static List<org.geysermc.geyser.api.entity.data.types.Hitbox>
    fromMetaData(@Nullable org.cloudburstmc.nbt.NbtMap metaDataMap)
     
    int
     
    org.cloudburstmc.math.vector.Vector3f
    max()
     
    org.cloudburstmc.math.vector.Vector3f
    min()
     
    org.cloudburstmc.math.vector.Vector3f
     
    org.cloudburstmc.nbt.NbtMap
     
    static org.cloudburstmc.nbt.NbtMap
    toNbtMap(List<org.geysermc.geyser.api.entity.data.types.Hitbox> hitboxes)
     
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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:
      min in interface org.geysermc.geyser.api.entity.data.types.Hitbox
    • max

      public org.cloudburstmc.math.vector.Vector3f max()
      Specified by:
      max in interface org.geysermc.geyser.api.entity.data.types.Hitbox
    • pivot

      public org.cloudburstmc.math.vector.Vector3f pivot()
      Specified by:
      pivot in interface org.geysermc.geyser.api.entity.data.types.Hitbox
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object