Record Class GeyserEntity

java.lang.Object
java.lang.Record
ac.boar.geyser.mappings.entity.GeyserEntity
All Implemented Interfaces:
ac.boar.mappings.entity.Entity

public record GeyserEntity(org.geysermc.geyser.entity.type.Entity handle) extends Record implements ac.boar.mappings.entity.Entity
  • Constructor Summary

    Constructors
    Constructor
    Description
    GeyserEntity(org.geysermc.geyser.entity.type.Entity handle)
    Creates an instance of a GeyserEntity record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    float
     
    float
     
    org.cloudburstmc.math.vector.Vector3i
     
    ac.boar.mappings.entity.EntityDefinition
     
    final boolean
    Indicates whether some other object is "equal to" this one.
    org.geysermc.geyser.entity.type.Entity
    Returns the value of the handle record component.
    final int
    Returns a hash code value for this object.
    <T> void
    metadata(org.cloudburstmc.protocol.bedrock.data.entity.EntityDataType<T> type, T value)
     
    void
     
    void
     
    void
     
    final String
    Returns a string representation of this record class.
    ac.boar.mappings.entity.Entity
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • GeyserEntity

      public GeyserEntity(org.geysermc.geyser.entity.type.Entity handle)
      Creates an instance of a GeyserEntity record class.
      Parameters:
      handle - the value for the handle record component
  • Method Details

    • definition

      public ac.boar.mappings.entity.EntityDefinition definition()
      Specified by:
      definition in interface ac.boar.mappings.entity.Entity
    • vehicle

      public ac.boar.mappings.entity.Entity vehicle()
      Specified by:
      vehicle in interface ac.boar.mappings.entity.Entity
    • bedPosition

      public org.cloudburstmc.math.vector.Vector3i bedPosition()
      Specified by:
      bedPosition in interface ac.boar.mappings.entity.Entity
    • bbWidth

      public float bbWidth()
      Specified by:
      bbWidth in interface ac.boar.mappings.entity.Entity
    • bbHeight

      public float bbHeight()
      Specified by:
      bbHeight in interface ac.boar.mappings.entity.Entity
    • metadata

      public <T> void metadata(org.cloudburstmc.protocol.bedrock.data.entity.EntityDataType<T> type, T value)
      Specified by:
      metadata in interface ac.boar.mappings.entity.Entity
    • refreshMetadata

      public void refreshMetadata()
      Specified by:
      refreshMetadata in interface ac.boar.mappings.entity.Entity
    • refreshAttributesToSelf

      public void refreshAttributesToSelf()
      Specified by:
      refreshAttributesToSelf in interface ac.boar.mappings.entity.Entity
    • releaseItem

      public void releaseItem()
      Specified by:
      releaseItem in interface ac.boar.mappings.entity.Entity
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • handle

      public org.geysermc.geyser.entity.type.Entity handle()
      Returns the value of the handle record component.
      Returns:
      the value of the handle record component