Record Class HugeMushroomFeatureConfiguration
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.feature.configurations.HugeMushroomFeatureConfiguration
- All Implemented Interfaces:
FeatureConfiguration
public record HugeMushroomFeatureConfiguration(BlockStateProvider capProvider, BlockStateProvider stemProvider, int foliageRadius, BlockPredicate canPlaceOn)
extends Record
implements FeatureConfiguration
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BlockPredicateThe field for thecanPlaceOnrecord component.private final BlockStateProviderThe field for thecapProviderrecord component.static final com.mojang.serialization.Codec<HugeMushroomFeatureConfiguration> private final intThe field for thefoliageRadiusrecord component.private final BlockStateProviderThe field for thestemProviderrecord component.Fields inherited from interface FeatureConfiguration
NONE -
Constructor Summary
ConstructorsConstructorDescriptionHugeMushroomFeatureConfiguration(BlockStateProvider capProvider, BlockStateProvider stemProvider, int foliageRadius, BlockPredicate canPlaceOn) Creates an instance of aHugeMushroomFeatureConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecanPlaceOnrecord component.Returns the value of thecapProviderrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefoliageRadiusrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thestemProviderrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface FeatureConfiguration
getFeatures
-
Field Details
-
capProvider
The field for thecapProviderrecord component. -
stemProvider
The field for thestemProviderrecord component. -
foliageRadius
private final int foliageRadiusThe field for thefoliageRadiusrecord component. -
canPlaceOn
The field for thecanPlaceOnrecord component. -
CODEC
-
-
Constructor Details
-
HugeMushroomFeatureConfiguration
public HugeMushroomFeatureConfiguration(BlockStateProvider capProvider, BlockStateProvider stemProvider, int foliageRadius, BlockPredicate canPlaceOn) Creates an instance of aHugeMushroomFeatureConfigurationrecord class.- Parameters:
capProvider- the value for thecapProviderrecord componentstemProvider- the value for thestemProviderrecord componentfoliageRadius- the value for thefoliageRadiusrecord componentcanPlaceOn- the value for thecanPlaceOnrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
capProvider
Returns the value of thecapProviderrecord component.- Returns:
- the value of the
capProviderrecord component
-
stemProvider
Returns the value of thestemProviderrecord component.- Returns:
- the value of the
stemProviderrecord component
-
foliageRadius
public int foliageRadius()Returns the value of thefoliageRadiusrecord component.- Returns:
- the value of the
foliageRadiusrecord component
-
canPlaceOn
Returns the value of thecanPlaceOnrecord component.- Returns:
- the value of the
canPlaceOnrecord component
-