Contents
Record Class WorldGenMembershipView.PlacementOccurrence<T extends PlacementMembership>
java.lang.Object
java.lang.Record
com.hypixel.hytale.builtin.worldgen.assets.WorldGenMembershipView.PlacementOccurrence<T>
- Enclosing interface:
WorldGenMembershipView
public static record WorldGenMembershipView.PlacementOccurrence<T extends PlacementMembership>(String childKey, T extends PlacementMembership membership, boolean pinned, int sourceIndex)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPlacementOccurrence(String childKey, T membership, boolean pinned, int sourceIndex) Creates an instance of aPlacementOccurrencerecord 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.key()Returns the value of themembershiprecord component.booleanpinned()Returns the value of thepinnedrecord component.intReturns the value of thesourceIndexrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PlacementOccurrence
Creates an instance of aPlacementOccurrencerecord class.- Parameters:
childKey- the value for thechildKeyrecord componentmembership- the value for themembershiprecord componentpinned- the value for thepinnedrecord componentsourceIndex- the value for thesourceIndexrecord component
-
-
Method Details
-
key
-
seedSuffix
-
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. -
childKey
Returns the value of thechildKeyrecord component.- Returns:
- the value of the
childKeyrecord component
-
membership
Returns the value of themembershiprecord component.- Returns:
- the value of the
membershiprecord component
-
pinned
public boolean pinned()Returns the value of thepinnedrecord component.- Returns:
- the value of the
pinnedrecord component
-
sourceIndex
public int sourceIndex()Returns the value of thesourceIndexrecord component.- Returns:
- the value of the
sourceIndexrecord component
-