Contents
Record Class WorldGenMembershipView.ZoneUniqueRule
java.lang.Object
java.lang.Record
com.hypixel.hytale.builtin.worldgen.assets.WorldGenMembershipView.ZoneUniqueRule
- Enclosing interface:
WorldGenMembershipView
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncolor()Returns the value of thecolorrecord component.Returns the value of theconvertedRankrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intpadding()Returns the value of thepaddingrecord component.Returns the value of theparentColorsrecord component.Returns the value of theparentRgbsrecord component.booleanpinned()Returns the value of thepinnedrecord component.intradius()Returns the value of theradiusrecord component.intrgb()Returns the value of thergbrecord component.intReturns the value of thesourceIndexrecord component.final StringtoString()Returns a string representation of this record class.worldKey()Returns the value of theworldKeyrecord component.zoneKey()Returns the value of thezoneKeyrecord component.
-
Constructor Details
-
ZoneUniqueRule
public ZoneUniqueRule(String zoneKey, String worldKey, String color, int rgb, List<String> parentColors, List<Integer> parentRgbs, int radius, int padding, boolean pinned, @Nullable Integer convertedRank, int sourceIndex) Creates an instance of aZoneUniqueRulerecord class.- Parameters:
zoneKey- the value for thezoneKeyrecord componentworldKey- the value for theworldKeyrecord componentcolor- the value for thecolorrecord componentrgb- the value for thergbrecord componentparentColors- the value for theparentColorsrecord componentparentRgbs- the value for theparentRgbsrecord componentradius- the value for theradiusrecord componentpadding- the value for thepaddingrecord componentpinned- the value for thepinnedrecord componentconvertedRank- the value for theconvertedRankrecord componentsourceIndex- the value for thesourceIndexrecord component
-
-
Method Details
-
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
-
color
Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-
rgb
public int rgb()Returns the value of thergbrecord component.- Returns:
- the value of the
rgbrecord component
-
parentColors
-
parentRgbs
-
radius
public int radius()Returns the value of theradiusrecord component.- Returns:
- the value of the
radiusrecord component
-
padding
public int padding()Returns the value of thepaddingrecord component.- Returns:
- the value of the
paddingrecord component
-
pinned
public boolean pinned()Returns the value of thepinnedrecord component.- Returns:
- the value of the
pinnedrecord component
-
convertedRank
Returns the value of theconvertedRankrecord component.- Returns:
- the value of the
convertedRankrecord component
-
sourceIndex
public int sourceIndex()Returns the value of thesourceIndexrecord component.- Returns:
- the value of the
sourceIndexrecord component
-