Record Class PlacedFeature.Composed
java.lang.Object
java.lang.Record
dev.wyck.worldgen.placement.PlacedFeature.Composed
- All Implemented Interfaces:
PlacedFeature, Wrapper, Keyed
- Enclosing interface:
PlacedFeature
@AsOf("2.3.0")
public static record PlacedFeature.Composed(ConfiguredFeature feature, List<PlacementModifier> placement)
extends Record
implements PlacedFeature
A placed feature authored from a configured feature and a modifier list.
- Since:
- 2.3.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface PlacedFeature
PlacedFeature.Builder, PlacedFeature.Composed, PlacedFeature.Factory, PlacedFeature.Reference -
Constructor Summary
ConstructorsConstructorDescriptionComposed(ConfiguredFeature feature, List<PlacementModifier> placement) Creates an instance of aComposedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.feature()Returns the value of thefeaturerecord component.final inthashCode()Returns a hash code value for this object.key()Returns the value of theplacementrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface PlacedFeature
toBuilder, toMinecraft, wrap
-
Constructor Details
-
Composed
Creates an instance of aComposedrecord class.- Parameters:
feature- the value for thefeaturerecord componentplacement- the value for theplacementrecord component
-
-
Method Details
-
key
-
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). -
feature
Returns the value of thefeaturerecord component.- Returns:
- the value of the
featurerecord component
-
placement
Returns the value of theplacementrecord component.- Returns:
- the value of the
placementrecord component
-