Record Class PlacedFeature.Reference
java.lang.Object
java.lang.Record
dev.wyck.wrapper.worldgen.placement.PlacedFeature.Reference
- All Implemented Interfaces:
Wrapper, PlacedFeature, Keyed
- Enclosing interface:
PlacedFeature
@AsOf("2.3.0")
public static record PlacedFeature.Reference(ResourceKey key)
extends Record
implements PlacedFeature
A reference to an already-registered placed feature.
- 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
Constructors -
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.key()Returns the value of thekeyrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface PlacedFeature
toMinecraft
-
Constructor Details
-
Reference
Creates an instance of aReferencerecord class.- Parameters:
key- the value for thekeyrecord 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). -
key
Returns the value of thekeyrecord component.
-