Record Class ConfiguredFeature.Reference
java.lang.Object
java.lang.Record
dev.wyck.wrapper.worldgen.feature.ConfiguredFeature.Reference
- Record Components:
key- the key of the configured feature
- All Implemented Interfaces:
Wrapper, ConfiguredFeature, Keyed
- Enclosing interface:
ConfiguredFeature
@AsOf("2.3.0")
public static record ConfiguredFeature.Reference(ResourceKey key)
extends Record
implements ConfiguredFeature
A reference to an already-registered configured feature.
- Since:
- 2.3.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface ConfiguredFeature
ConfiguredFeature.CustomConfigured, ConfiguredFeature.Factory, ConfiguredFeature.Reference, ConfiguredFeature.VanillaConfiguredNested classes/interfaces inherited from interface Wrapper
Wrapper.Context<C> -
Field Summary
Fields inherited from interface ConfiguredFeature
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 ConfiguredFeature
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.
-