Record Class ConfiguredFeature.VanillaConfigured
java.lang.Object
java.lang.Record
dev.wyck.wrapper.worldgen.feature.ConfiguredFeature.VanillaConfigured
- Record Components:
featureKey- the vanilla feature typeconfiguration- the vanilla configuration
- All Implemented Interfaces:
Wrapper, ConfiguredFeature, Keyed
- Enclosing interface:
ConfiguredFeature
@AsOf("2.3.0")
public static record ConfiguredFeature.VanillaConfigured(ResourceKey featureKey, FeatureConfiguration configuration)
extends Record
implements ConfiguredFeature
A configured feature authored from a vanilla feature type and configuration.
- 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
ConstructorsConstructorDescriptionVanillaConfigured(ResourceKey featureKey, FeatureConfiguration configuration) Creates an instance of aVanillaConfiguredrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconfigurationrecord 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
-
VanillaConfigured
Creates an instance of aVanillaConfiguredrecord class.- Parameters:
featureKey- the value for thefeatureKeyrecord componentconfiguration- the value for theconfigurationrecord 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
-
configuration
Returns the value of theconfigurationrecord component.- Returns:
- the value of the
configurationrecord component
-