Package net.minecraft.world.gen.feature
Record Class LakeFeature.Config
java.lang.Object
java.lang.Record
net.minecraft.world.gen.feature.LakeFeature.Config
- Record Components:
fluid-barrier-
- All Implemented Interfaces:
FeatureConfig
- Enclosing class:
LakeFeature
public static record LakeFeature.Config(BlockStateProvider fluid, BlockStateProvider barrier)
extends Record
implements FeatureConfig
- Mappings:
Namespace Name named net/minecraft/world/gen/feature/LakeFeature$Configintermediary net/minecraft/class_3085$class_6788official ect$anamed fluidintermediary comp_285official bnamed barrierintermediary comp_286official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BlockStateProviderThe field for thebarrierrecord component.static final com.mojang.serialization.Codec<LakeFeature.Config> private final BlockStateProviderThe field for thefluidrecord component.Fields inherited from interface net.minecraft.world.gen.feature.FeatureConfig
DEFAULT -
Constructor Summary
ConstructorsConstructorDescriptionConfig(BlockStateProvider blockStateProvider, BlockStateProvider blockStateProvider2) -
Method Summary
Modifier 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.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.gen.feature.FeatureConfig
getDecoratedFeatures
-
Field Details
-
fluid
The field for thefluidrecord component. -
barrier
The field for thebarrierrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/world/gen/feature/LakeFeature$Config;CODEC:Lcom/mojang/serialization/Codec;intermediary field_35706Lnet/minecraft/class_3085$class_6788;field_35706:Lcom/mojang/serialization/Codec;official aLect$a;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
Config
-
-
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 thefluidrecord component.- Returns:
- the value of the
fluidrecord component
-
barrier
Returns the value of thebarrierrecord component.- Returns:
- the value of the
barrierrecord component
-