Package net.minecraft.world.gen.feature
Class TwoLayerFeature
- java.lang.Object
-
- net.minecraft.world.gen.feature.AbstractFeatureSizeType
-
- net.minecraft.world.gen.feature.TwoLayerFeature
-
public class TwoLayerFeature extends AbstractFeatureSizeType
-
-
Field Summary
Fields Modifier and Type Field Description static com.mojang.serialization.Codec<TwoLayerFeature>
CODEC
private int
limit
private int
lowerSize
private int
upperSize
-
Fields inherited from class net.minecraft.world.gen.feature.AbstractFeatureSizeType
minClippedHeight
-
-
Constructor Summary
Constructors Constructor Description TwoLayerFeature(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_, java.util.OptionalInt p_i232026_4_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
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 Detail
-
CODEC
public static final com.mojang.serialization.Codec<TwoLayerFeature> CODEC
-
limit
private final int limit
-
lowerSize
private final int lowerSize
-
upperSize
private final int upperSize
-
-
Method Detail
-
type
protected FeatureSizeType<?> type()
- Specified by:
type
in classAbstractFeatureSizeType
-
getSizeAtHeight
public int getSizeAtHeight(int p_230369_1_, int p_230369_2_)
- Specified by:
getSizeAtHeight
in classAbstractFeatureSizeType
-
-