Record Class PrefabPopulator.Candidate

java.lang.Object
java.lang.Record
com.hypixel.hytale.server.worldgen.chunk.populator.PrefabPopulator.Candidate
Enclosing class:
PrefabPopulator

private static record PrefabPopulator.Candidate(int x, int y, int z, int priority, PrefabRotation rotation, IPrefabBuffer buffer, WorldGenPrefabSupplier supplier, PrefabContainer.PrefabContainerEntry entry, PrefabPatternGenerator generator) extends Record
  • Field Details

    • x

      private final int x
      The field for the x record component.
    • y

      private final int y
      The field for the y record component.
    • z

      private final int z
      The field for the z record component.
    • priority

      private final int priority
      The field for the priority record component.
    • rotation

      private final PrefabRotation rotation
      The field for the rotation record component.
    • buffer

      private final IPrefabBuffer buffer
      The field for the buffer record component.
    • supplier

      private final WorldGenPrefabSupplier supplier
      The field for the supplier record component.
    • entry

      The field for the entry record component.
    • generator

      private final PrefabPatternGenerator generator
      The field for the generator record component.
  • Constructor Details

    • Candidate

      private Candidate(int x, int y, int z, int priority, PrefabRotation rotation, IPrefabBuffer buffer, WorldGenPrefabSupplier supplier, PrefabContainer.PrefabContainerEntry entry, PrefabPatternGenerator generator)
      Creates an instance of a Candidate record class.
      Parameters:
      x - the value for the x record component
      y - the value for the y record component
      z - the value for the z record component
      priority - the value for the priority record component
      rotation - the value for the rotation record component
      buffer - the value for the buffer record component
      supplier - the value for the supplier record component
      entry - the value for the entry record component
      generator - the value for the generator record component
  • Method Details

    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • x

      public int x()
      Returns the value of the x record component.
      Returns:
      the value of the x record component
    • y

      public int y()
      Returns the value of the y record component.
      Returns:
      the value of the y record component
    • z

      public int z()
      Returns the value of the z record component.
      Returns:
      the value of the z record component
    • priority

      public int priority()
      Returns the value of the priority record component.
      Returns:
      the value of the priority record component
    • rotation

      public PrefabRotation rotation()
      Returns the value of the rotation record component.
      Returns:
      the value of the rotation record component
    • buffer

      public IPrefabBuffer buffer()
      Returns the value of the buffer record component.
      Returns:
      the value of the buffer record component
    • supplier

      public WorldGenPrefabSupplier supplier()
      Returns the value of the supplier record component.
      Returns:
      the value of the supplier record component
    • entry

      Returns the value of the entry record component.
      Returns:
      the value of the entry record component
    • generator

      public PrefabPatternGenerator generator()
      Returns the value of the generator record component.
      Returns:
      the value of the generator record component