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 Summary
Modifier and TypeFieldDescriptionprivate final BlockStateProvider
The field for thebarrier
record component.static final com.mojang.serialization.Codec<LakeFeature.Configuration>
private final BlockStateProvider
The field for thefluid
record component.Fields inherited from interface net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
NONE
-
Constructor Summary
ConstructorDescriptionConfiguration
(BlockStateProvider fluid, BlockStateProvider barrier) Creates an instance of aConfiguration
record class. -
Method Summary
Modifier and TypeMethodDescriptionbarrier()
Returns the value of thebarrier
record component.final boolean
Indicates whether some other object is "equal to" this one.fluid()
Returns the value of thefluid
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
getFeatures
-
Field Details
-
fluid
The field for thefluid
record component. -
barrier
The field for thebarrier
record component. -
CODEC
-
-
Constructor Details
-
Configuration
Creates an instance of aConfiguration
record class.- Parameters:
fluid
- the value for thefluid
record componentbarrier
- the value for thebarrier
record component
-
-
Method Details
-
toString
Returns 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. -
hashCode
public 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. -
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)
. -
fluid
Returns the value of thefluid
record component.- Returns:
- the value of the
fluid
record component
-
barrier
Returns the value of thebarrier
record component.- Returns:
- the value of the
barrier
record component
-