Record Class LakeFeature
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.feature.LakeFeature
- All Implemented Interfaces:
Feature
@Deprecated
public record LakeFeature(Holder<BlockStateProvider> fluid, Holder<BlockStateProvider> barrier, BlockPredicate canPlaceFeature, BlockPredicate canReplaceWithAirOrFluid, BlockPredicate canReplaceWithBarrier)
extends Record
implements Feature
Deprecated.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final BlockStateDeprecated.private final Holder<BlockStateProvider> Deprecated.The field for thebarrierrecord component.private final BlockPredicateDeprecated.The field for thecanPlaceFeaturerecord component.private final BlockPredicateDeprecated.The field for thecanReplaceWithAirOrFluidrecord component.private final BlockPredicateDeprecated.The field for thecanReplaceWithBarrierrecord component.static final com.mojang.serialization.MapCodec<LakeFeature> Deprecated.private final Holder<BlockStateProvider> Deprecated.The field for thefluidrecord component.Fields inherited from interface Feature
DIRECT_CODEC, LIST_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionLakeFeature(Holder<BlockStateProvider> fluid, Holder<BlockStateProvider> barrier, BlockPredicate canPlaceFeature, BlockPredicate canReplaceWithAirOrFluid, BlockPredicate canReplaceWithBarrier) Deprecated.Creates an instance of aLakeFeaturerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbarrier()Deprecated.Returns the value of thebarrierrecord component.Deprecated.Returns the value of thecanPlaceFeaturerecord component.Deprecated.Returns the value of thecanReplaceWithAirOrFluidrecord component.Deprecated.Returns the value of thecanReplaceWithBarrierrecord component.com.mojang.serialization.MapCodec<LakeFeature> codec()Deprecated.final booleanDeprecated.Indicates whether some other object is "equal to" this one.fluid()Deprecated.Returns the value of thefluidrecord component.final inthashCode()Deprecated.Returns a hash code value for this object.booleanplace(WorldGenLevel level, ChunkGenerator chunkGenerator, RandomSource random, BlockPos origin) Deprecated.final StringtoString()Deprecated.Returns a string representation of this record class.Methods inherited from interface Feature
getSubFeatures, markAboveForPostProcessing, safeSetBlock, setBlock
-
Field Details
-
fluid
Deprecated.The field for thefluidrecord component. -
barrier
Deprecated.The field for thebarrierrecord component. -
canPlaceFeature
Deprecated.The field for thecanPlaceFeaturerecord component. -
canReplaceWithAirOrFluid
Deprecated.The field for thecanReplaceWithAirOrFluidrecord component. -
canReplaceWithBarrier
Deprecated.The field for thecanReplaceWithBarrierrecord component. -
CODEC
Deprecated. -
AIR
Deprecated.
-
-
Constructor Details
-
LakeFeature
public LakeFeature(Holder<BlockStateProvider> fluid, Holder<BlockStateProvider> barrier, BlockPredicate canPlaceFeature, BlockPredicate canReplaceWithAirOrFluid, BlockPredicate canReplaceWithBarrier) Deprecated.Creates an instance of aLakeFeaturerecord class.- Parameters:
fluid- the value for thefluidrecord componentbarrier- the value for thebarrierrecord componentcanPlaceFeature- the value for thecanPlaceFeaturerecord componentcanReplaceWithAirOrFluid- the value for thecanReplaceWithAirOrFluidrecord componentcanReplaceWithBarrier- the value for thecanReplaceWithBarrierrecord component
-
-
Method Details
-
codec
Deprecated. -
place
public boolean place(WorldGenLevel level, ChunkGenerator chunkGenerator, RandomSource random, BlockPos origin) Deprecated. -
toString
-
hashCode
-
equals
Deprecated.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
Deprecated.Returns the value of thefluidrecord component.- Returns:
- the value of the
fluidrecord component
-
barrier
Deprecated.Returns the value of thebarrierrecord component.- Returns:
- the value of the
barrierrecord component
-
canPlaceFeature
Deprecated.Returns the value of thecanPlaceFeaturerecord component.- Returns:
- the value of the
canPlaceFeaturerecord component
-
canReplaceWithAirOrFluid
Deprecated.Returns the value of thecanReplaceWithAirOrFluidrecord component.- Returns:
- the value of the
canReplaceWithAirOrFluidrecord component
-
canReplaceWithBarrier
Deprecated.Returns the value of thecanReplaceWithBarrierrecord component.- Returns:
- the value of the
canReplaceWithBarrierrecord component
-