Record Class LakeFeature.Config
java.lang.Object
java.lang.Record
com.github.darksoulq.abyssallib.world.gen.feature.impl.LakeFeature.Config
- Record Components:
fluidProvider- The block state provider defining the core liquid of the lake.barrierProvider- The optional block state provider defining the outer casing of the lake.
- All Implemented Interfaces:
FeatureConfig
- Enclosing class:
LakeFeature
public static record LakeFeature.Config(BlockStateProvider fluidProvider, BlockStateProvider barrierProvider)
extends Record
implements FeatureConfig
Configuration record for the lake feature.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Codec<LakeFeature.Config> The codec for serializing and deserializing the configuration.Fields inherited from interface FeatureConfig
NONE -
Constructor Summary
ConstructorsConstructorDescriptionConfig(BlockStateProvider fluidProvider, BlockStateProvider barrierProvider) Creates an instance of aConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebarrierProviderrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefluidProviderrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
The codec for serializing and deserializing the configuration.
-
-
Constructor Details
-
Config
Creates an instance of aConfigrecord class.- Parameters:
fluidProvider- the value for thefluidProviderrecord componentbarrierProvider- the value for thebarrierProviderrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
fluidProvider
Returns the value of thefluidProviderrecord component.- Returns:
- the value of the
fluidProviderrecord component
-
barrierProvider
Returns the value of thebarrierProviderrecord component.- Returns:
- the value of the
barrierProviderrecord component
-