Package net.minecraft.world.gen.feature
Class TwoLayerFeature
java.lang.Object
net.minecraft.world.gen.feature.AbstractFeatureSizeType
net.minecraft.world.gen.feature.TwoLayerFeature
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<TwoLayerFeature>
private final int
private final int
private final int
Fields inherited from class net.minecraft.world.gen.feature.AbstractFeatureSizeType
minClippedHeight
-
Constructor Summary
ConstructorDescriptionTwoLayerFeature
(int p_i232025_1_, int p_i232025_2_, int p_i232025_3_) TwoLayerFeature
(int p_i232026_1_, int p_i232026_2_, int p_i232026_3_, OptionalInt p_i232026_4_) -
Method Summary
Modifier and TypeMethodDescriptionint
getSizeAtHeight
(int p_230369_1_, int p_230369_2_) protected FeatureSizeType<?>
type()
Methods inherited from class net.minecraft.world.gen.feature.AbstractFeatureSizeType
minClippedHeight, minClippedHeightCodec
-
Field Details
-
CODEC
-
limit
private final int limit -
lowerSize
private final int lowerSize -
upperSize
private final int upperSize
-
-
Constructor Details
-
TwoLayerFeature
public TwoLayerFeature(int p_i232025_1_, int p_i232025_2_, int p_i232025_3_) -
TwoLayerFeature
public TwoLayerFeature(int p_i232026_1_, int p_i232026_2_, int p_i232026_3_, OptionalInt p_i232026_4_)
-
-
Method Details
-
type
- Specified by:
type
in classAbstractFeatureSizeType
-
getSizeAtHeight
public int getSizeAtHeight(int p_230369_1_, int p_230369_2_) - Specified by:
getSizeAtHeight
in classAbstractFeatureSizeType
-