Contents
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 Summary
ConstructorsConstructorDescriptionZoneWorldMembership(String zoneKey, String worldKey, boolean pinned, Integer convertedOrder, List<WorldGenMembershipView.ZoneColorClaim> colors, List<WorldGenMembershipView.ZoneUniqueRule> uniqueRules, int sourceIndex) Creates an instance of aZoneWorldMembershiprecord class. -
Method Summary
Modifier and TypeMethodDescriptioncolors()Returns the value of thecolorsrecord component.Returns the value of theconvertedOrderrecord component.booleandormant()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanpinned()Returns the value of thepinnedrecord component.intReturns the value of thesourceIndexrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theuniqueRulesrecord component.worldKey()Returns the value of theworldKeyrecord component.zoneKey()Returns the value of thezoneKeyrecord component.
-
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 aZoneWorldMembershiprecord class.- Parameters:
zoneKey- the value for thezoneKeyrecord componentworldKey- the value for theworldKeyrecord componentpinned- the value for thepinnedrecord componentconvertedOrder- the value for theconvertedOrderrecord componentcolors- the value for thecolorsrecord componentuniqueRules- the value for theuniqueRulesrecord componentsourceIndex- the value for thesourceIndexrecord component
-
-
Method Details
-
dormant
public boolean dormant() -
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
zoneKey
Returns the value of thezoneKeyrecord component.- Returns:
- the value of the
zoneKeyrecord component
-
worldKey
Returns the value of theworldKeyrecord component.- Returns:
- the value of the
worldKeyrecord component
-
pinned
public boolean pinned()Returns the value of thepinnedrecord component.- Returns:
- the value of the
pinnedrecord component
-
convertedOrder
Returns the value of theconvertedOrderrecord component.- Returns:
- the value of the
convertedOrderrecord component
-
colors
Returns the value of thecolorsrecord component.- Returns:
- the value of the
colorsrecord component
-
uniqueRules
Returns the value of theuniqueRulesrecord component.- Returns:
- the value of the
uniqueRulesrecord component
-
sourceIndex
public int sourceIndex()Returns the value of thesourceIndexrecord component.- Returns:
- the value of the
sourceIndexrecord component
-