Record Class ConfiguredFeature.CustomConfigured
java.lang.Object
java.lang.Record
dev.wyck.wrapper.worldgen.feature.ConfiguredFeature.CustomConfigured
- Record Components:
featureKey- the key the custom feature was registered underconfig- the config instance to place with
- All Implemented Interfaces:
Wrapper, ConfiguredFeature, Keyed
- Enclosing interface:
ConfiguredFeature
@AsOf("2.3.0")
public static record ConfiguredFeature.CustomConfigured(ResourceKey featureKey, Object config)
extends Record
implements ConfiguredFeature
A configured feature composed of a registered custom feature with a config instance.
The feature must already be registered under featureKey via
CustomFeature.registerAs(ResourceKey).- 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
ConstructorsConstructorDescriptionCustomConfigured(ResourceKey featureKey, Object config) Creates an instance of aCustomConfiguredrecord class. -
Method Summary
Modifier and TypeMethodDescriptionconfig()Returns the value of theconfigrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefeatureKeyrecord component.final inthashCode()Returns a hash code value for this object.key()final StringtoString()Returns a string representation of this record class.Methods inherited from interface ConfiguredFeature
toMinecraft
-
Constructor Details
-
CustomConfigured
Creates an instance of aCustomConfiguredrecord class.- Parameters:
featureKey- the value for thefeatureKeyrecord componentconfig- the value for theconfigrecord 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). -
featureKey
Returns the value of thefeatureKeyrecord component.- Returns:
- the value of the
featureKeyrecord component
-
config
-