Contents
Record Class WorldGenMembershipView.LayerOccurrence<L extends WorldGenLayerAsset>
java.lang.Object
java.lang.Record
com.hypixel.hytale.builtin.worldgen.assets.WorldGenMembershipView.LayerOccurrence<L>
- Enclosing interface:
WorldGenMembershipView
public static record WorldGenMembershipView.LayerOccurrence<L extends WorldGenLayerAsset>(L extends WorldGenLayerAsset layer, WorldGenMembershipView.PlacementOccurrence<LayerBiomeMembership> placement)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionLayerOccurrence(L layer, WorldGenMembershipView.PlacementOccurrence<LayerBiomeMembership> placement) Creates an instance of aLayerOccurrencerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.layer()Returns the value of thelayerrecord component.Returns the value of theplacementrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LayerOccurrence
public LayerOccurrence(L layer, WorldGenMembershipView.PlacementOccurrence<LayerBiomeMembership> placement) Creates an instance of aLayerOccurrencerecord class.- Parameters:
layer- the value for thelayerrecord componentplacement- the value for theplacementrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
layer
Returns the value of thelayerrecord component.- Returns:
- the value of the
layerrecord component
-
placement
Returns the value of theplacementrecord component.- Returns:
- the value of the
placementrecord component
-