Record Class LakeFeature.Configuration
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.feature.LakeFeature.Configuration
- All Implemented Interfaces:
- FeatureConfiguration
- Enclosing class:
- LakeFeature
public static record LakeFeature.Configuration(BlockStateProvider fluid, BlockStateProvider barrier)
extends Record
implements FeatureConfiguration
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final BlockStateProviderThe field for thebarrierrecord component.static final com.mojang.serialization.Codec<LakeFeature.Configuration>private final BlockStateProviderThe field for thefluidrecord component.Fields inherited from interface net.minecraft.world.level.levelgen.feature.configurations.FeatureConfigurationNONE
- 
Constructor SummaryConstructorsConstructorDescriptionConfiguration(BlockStateProvider fluid, BlockStateProvider barrier) Creates an instance of aConfigurationrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionbarrier()Returns the value of thebarrierrecord component.final booleanIndicates whether some other object is "equal to" this one.fluid()Returns the value of thefluidrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.level.levelgen.feature.configurations.FeatureConfigurationgetFeatures
- 
Field Details- 
fluidThe field for thefluidrecord component.
- 
barrierThe field for thebarrierrecord component.
- 
CODEC
 
- 
- 
Constructor Details- 
ConfigurationCreates an instance of aConfigurationrecord class.- Parameters:
- fluid- the value for the- fluidrecord component
- barrier- the value for the- barrierrecord component
 
 
- 
- 
Method Details- 
toStringReturns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
- 
hashCodepublic final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
- 
equalsIndicates 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).
- 
fluidReturns the value of thefluidrecord component.- Returns:
- the value of the fluidrecord component
 
- 
barrierReturns the value of thebarrierrecord component.- Returns:
- the value of the barrierrecord component
 
 
-