Record Class GeyserEntityDefinition

java.lang.Object
java.lang.Record
ac.boar.geyser.mappings.entity.GeyserEntityDefinition
All Implemented Interfaces:
ac.boar.anticheat.util.Referenced<ac.boar.mappings.entity.EntityDefinition>, ac.boar.mappings.entity.EntityDefinition

public record GeyserEntityDefinition(org.geysermc.geyser.entity.EntityTypeDefinition<?> handle) extends Record implements ac.boar.mappings.entity.EntityDefinition
  • Constructor Summary

    Constructors
    Constructor
    Description
    GeyserEntityDefinition(org.geysermc.geyser.entity.EntityTypeDefinition<?> handle)
    Creates an instance of a GeyserEntityDefinition record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    org.geysermc.geyser.entity.EntityTypeDefinition<?>
    Returns the value of the handle record component.
    final int
    Returns a hash code value for this object.
    float
     
     
    boolean
    is(ac.boar.anticheat.util.Reference<ac.boar.mappings.entity.EntityDefinition> reference)
     
    boolean
    is(ac.boar.mappings.entity.EntityDefinition value)
     
    float
     
    final String
    Returns a string representation of this record class.
    ac.boar.mappings.entity.EntityType
     
    float
     

    Methods inherited from class java.lang.Object

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

    • GeyserEntityDefinition

      public GeyserEntityDefinition(org.geysermc.geyser.entity.EntityTypeDefinition<?> handle)
      Creates an instance of a GeyserEntityDefinition record class.
      Parameters:
      handle - the value for the handle record component
  • Method Details

    • is

      public boolean is(ac.boar.mappings.entity.EntityDefinition value)
      Specified by:
      is in interface ac.boar.anticheat.util.Referenced<ac.boar.mappings.entity.EntityDefinition>
    • is

      public boolean is(ac.boar.anticheat.util.Reference<ac.boar.mappings.entity.EntityDefinition> reference)
      Specified by:
      is in interface ac.boar.anticheat.util.Referenced<ac.boar.mappings.entity.EntityDefinition>
    • type

      public ac.boar.mappings.entity.EntityType type()
      Specified by:
      type in interface ac.boar.mappings.entity.EntityDefinition
    • identifier

      public String identifier()
      Specified by:
      identifier in interface ac.boar.mappings.entity.EntityDefinition
    • width

      public float width()
      Specified by:
      width in interface ac.boar.mappings.entity.EntityDefinition
    • height

      public float height()
      Specified by:
      height in interface ac.boar.mappings.entity.EntityDefinition
    • offset

      public float offset()
      Specified by:
      offset in interface ac.boar.mappings.entity.EntityDefinition
    • 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.EntityTypeDefinition<?> handle()
      Returns the value of the handle record component.
      Returns:
      the value of the handle record component