Contents
Record Class WorldGenMembershipView.PlacementOccurrenceKey
java.lang.Object
java.lang.Record
com.hypixel.hytale.builtin.worldgen.assets.WorldGenMembershipView.PlacementOccurrenceKey
- Enclosing interface:
WorldGenMembershipView
-
Constructor Summary
ConstructorsConstructorDescriptionPlacementOccurrenceKey(String parentKey, String childKey, boolean pinned, int position) Creates an instance of aPlacementOccurrenceKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionchildKey()Returns the value of thechildKeyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theparentKeyrecord component.booleanpinned()Returns the value of thepinnedrecord component.intposition()Returns the value of thepositionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PlacementOccurrenceKey
Creates an instance of aPlacementOccurrenceKeyrecord class.- Parameters:
parentKey- the value for theparentKeyrecord componentchildKey- the value for thechildKeyrecord componentpinned- the value for thepinnedrecord componentposition- the value for thepositionrecord 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. -
parentKey
Returns the value of theparentKeyrecord component.- Returns:
- the value of the
parentKeyrecord component
-
childKey
Returns the value of thechildKeyrecord component.- Returns:
- the value of the
childKeyrecord component
-
pinned
public boolean pinned()Returns the value of thepinnedrecord component.- Returns:
- the value of the
pinnedrecord component
-
position
public int position()Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-