Record Class WorldGenMembershipView.ZoneWorldMembership

java.lang.Object
java.lang.Record
com.hypixel.hytale.builtin.worldgen.assets.WorldGenMembershipView.ZoneWorldMembership
Enclosing interface:
WorldGenMembershipView

public static record WorldGenMembershipView.ZoneWorldMembership(String zoneKey, String worldKey, boolean pinned, @Nullable Integer convertedOrder, List<WorldGenMembershipView.ZoneColorClaim> colors, List<WorldGenMembershipView.ZoneUniqueRule> uniqueRules, int sourceIndex) extends Record
  • Constructor Details

    • ZoneWorldMembership

      public ZoneWorldMembership(String zoneKey, String worldKey, boolean pinned, @Nullable Integer convertedOrder, List<WorldGenMembershipView.ZoneColorClaim> colors, List<WorldGenMembershipView.ZoneUniqueRule> uniqueRules, int sourceIndex)
      Creates an instance of a ZoneWorldMembership record class.
      Parameters:
      zoneKey - the value for the zoneKey record component
      worldKey - the value for the worldKey record component
      pinned - the value for the pinned record component
      convertedOrder - the value for the convertedOrder record component
      colors - the value for the colors record component
      uniqueRules - the value for the uniqueRules record component
      sourceIndex - the value for the sourceIndex record component
  • Method Details

    • dormant

      public boolean dormant()
    • 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 the compare method from their corresponding wrapper classes.
      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.
    • zoneKey

      public String zoneKey()
      Returns the value of the zoneKey record component.
      Returns:
      the value of the zoneKey record component
    • worldKey

      public String worldKey()
      Returns the value of the worldKey record component.
      Returns:
      the value of the worldKey record component
    • pinned

      public boolean pinned()
      Returns the value of the pinned record component.
      Returns:
      the value of the pinned record component
    • convertedOrder

      @Nullable public Integer convertedOrder()
      Returns the value of the convertedOrder record component.
      Returns:
      the value of the convertedOrder record component
    • colors

      Returns the value of the colors record component.
      Returns:
      the value of the colors record component
    • uniqueRules

      Returns the value of the uniqueRules record component.
      Returns:
      the value of the uniqueRules record component
    • sourceIndex

      public int sourceIndex()
      Returns the value of the sourceIndex record component.
      Returns:
      the value of the sourceIndex record component