Record Class PlacedFeature.Custom
java.lang.Object
java.lang.Record
dev.wyck.wrapper.worldgen.placement.PlacedFeature.Custom
- All Implemented Interfaces:
Wrapper, PlacedFeature, Keyed
- Enclosing interface:
PlacedFeature
@AsOf("2.3.0")
public static record PlacedFeature.Custom(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.Custom, PlacedFeature.Factory, PlacedFeature.FeatureBuilder, PlacedFeature.ReferenceNested classes/interfaces inherited from interface Wrapper
Wrapper.Context<C> -
Field Summary
Fields inherited from interface PlacedFeature
WIRE -
Constructor Summary
ConstructorsConstructorDescriptionCustom(ConfiguredFeature feature, List<PlacementModifier> placement) Creates an instance of aCustomrecord 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
toMinecraft
-
Constructor Details
-
Custom
Creates an instance of aCustomrecord 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
-