Class TwoLayersFeatureSize
java.lang.Object
net.minecraft.world.gen.feature.size.FeatureSize
net.minecraft.world.gen.feature.size.TwoLayersFeatureSize
public class TwoLayersFeatureSize extends FeatureSize
- Mappings:
Namespace Name official css
intermediary net/minecraft/class_5204
named net/minecraft/world/gen/feature/size/TwoLayersFeatureSize
-
Field Summary
Fields Modifier and Type Field Description static com.mojang.serialization.Codec<TwoLayersFeatureSize>
CODEC
private int
limit
private int
lowerSize
private int
upperSize
Fields inherited from class net.minecraft.world.gen.feature.size.FeatureSize
minClippedHeight, TYPE_CODEC
-
Constructor Summary
Constructors Constructor Description TwoLayersFeatureSize(int limit, int lowerSize, int upperSize)
TwoLayersFeatureSize(int limit, int lowerSize, int upperSize, OptionalInt minClippedHeight)
-
Method Summary
Modifier and Type Method Description int
getRadius(int height, int y)
The radius that the tree needs to be empty or replaceable in order for it to generate.protected FeatureSizeType<?>
getType()
Methods inherited from class net.minecraft.world.gen.feature.size.FeatureSize
createCodec, getMinClippedHeight
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector official c
Lcss;c:Lcom/mojang/serialization/Codec;
intermediary field_24925
Lnet/minecraft/class_5204;field_24925:Lcom/mojang/serialization/Codec;
named CODEC
Lnet/minecraft/world/gen/feature/size/TwoLayersFeatureSize;CODEC:Lcom/mojang/serialization/Codec;
-
limit
private final int limit- Mappings:
Namespace Name Mixin selector official d
Lcss;d:I
intermediary field_24155
Lnet/minecraft/class_5204;field_24155:I
named limit
Lnet/minecraft/world/gen/feature/size/TwoLayersFeatureSize;limit:I
-
lowerSize
private final int lowerSize- Mappings:
Namespace Name Mixin selector official e
Lcss;e:I
intermediary field_24156
Lnet/minecraft/class_5204;field_24156:I
named lowerSize
Lnet/minecraft/world/gen/feature/size/TwoLayersFeatureSize;lowerSize:I
-
upperSize
private final int upperSize- Mappings:
Namespace Name Mixin selector official f
Lcss;f:I
intermediary field_24157
Lnet/minecraft/class_5204;field_24157:I
named upperSize
Lnet/minecraft/world/gen/feature/size/TwoLayersFeatureSize;upperSize:I
-
-
Constructor Details
-
TwoLayersFeatureSize
public TwoLayersFeatureSize(int limit, int lowerSize, int upperSize)- Mappings:
Namespace Name Mixin selector official <init>
Lcss;<init>(III)V
intermediary <init>
Lnet/minecraft/class_5204;<init>(III)V
named <init>
Lnet/minecraft/world/gen/feature/size/TwoLayersFeatureSize;<init>(III)V
-
TwoLayersFeatureSize
- Mappings:
Namespace Name Mixin selector official <init>
Lcss;<init>(IIILjava/util/OptionalInt;)V
intermediary <init>
Lnet/minecraft/class_5204;<init>(IIILjava/util/OptionalInt;)V
named <init>
Lnet/minecraft/world/gen/feature/size/TwoLayersFeatureSize;<init>(IIILjava/util/OptionalInt;)V
-
-
Method Details
-
getType
- Specified by:
getType
in classFeatureSize
- Mappings:
Namespace Name Mixin selector official b
Lcsp;b()Lcsq;
intermediary method_28824
Lnet/minecraft/class_5201;method_28824()Lnet/minecraft/class_5202;
named getType
Lnet/minecraft/world/gen/feature/size/FeatureSize;getType()Lnet/minecraft/world/gen/feature/size/FeatureSizeType;
-
getRadius
public int getRadius(int height, int y)The radius that the tree needs to be empty or replaceable in order for it to generate.- Specified by:
getRadius
in classFeatureSize
- Mappings:
Namespace Name Mixin selector official a
Lcsp;a(II)I
intermediary method_27378
Lnet/minecraft/class_5201;method_27378(II)I
named getRadius
Lnet/minecraft/world/gen/feature/size/FeatureSize;getRadius(II)I
-