2019-11-02 17:51:27 -04:00
|
|
|
CLASS net/minecraft/class_4647 net/minecraft/world/gen/foliage/FoliagePlacer
|
|
|
|
FIELD field_21296 radius I
|
|
|
|
FIELD field_21297 randomRadius I
|
|
|
|
FIELD field_21298 type Lnet/minecraft/class_4648;
|
|
|
|
METHOD <init> (IILnet/minecraft/class_4648;)V
|
|
|
|
ARG 1 radius
|
|
|
|
ARG 2 randomRadius
|
|
|
|
ARG 3 type
|
2020-03-10 12:34:02 -04:00
|
|
|
METHOD method_23447 getRadiusForPlacement (IIII)I
|
|
|
|
COMMENT This method is used to ensure that a tree can place foliage when it generates.
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>It runs for every y-level of the tree being generated.
|
|
|
|
ARG 1 trunkHeight
|
|
|
|
COMMENT the height of the trunk
|
|
|
|
ARG 2 baseHeight
|
|
|
|
COMMENT the height of the full tree
|
|
|
|
ARG 3 radius
|
|
|
|
COMMENT the radius of the foliage
|
|
|
|
ARG 4 currentTreeHeight
|
|
|
|
COMMENT the current y-level of the tree being tested.
|
2019-11-26 03:42:27 -05:00
|
|
|
METHOD method_23448 generate (Lnet/minecraft/class_3747;Ljava/util/Random;Lnet/minecraft/class_4640;IIILnet/minecraft/class_2338;Ljava/util/Set;)V
|
2020-03-10 12:34:02 -04:00
|
|
|
COMMENT This is the main method used to generate foliage.
|
2019-11-26 03:42:27 -05:00
|
|
|
ARG 1 world
|
|
|
|
ARG 3 config
|
2020-03-10 12:34:02 -04:00
|
|
|
ARG 4 baseHeight
|
|
|
|
COMMENT the height of the full tree
|
|
|
|
ARG 5 trunkHeight
|
|
|
|
COMMENT the height of just the trunk, or the part of the tree without leaves
|
|
|
|
ARG 6 radius
|
|
|
|
COMMENT the radius of the foliage
|
2019-11-26 03:42:27 -05:00
|
|
|
ARG 7 pos
|
2020-03-10 12:34:02 -04:00
|
|
|
ARG 8 leaves
|
2019-11-26 03:42:27 -05:00
|
|
|
METHOD method_23449 generate (Lnet/minecraft/class_3747;Ljava/util/Random;Lnet/minecraft/class_4640;ILnet/minecraft/class_2338;IILjava/util/Set;)V
|
2020-03-10 12:34:02 -04:00
|
|
|
ARG 1 world
|
|
|
|
ARG 2 random
|
|
|
|
ARG 3 config
|
|
|
|
ARG 4 baseHeight
|
|
|
|
ARG 5 pos
|
|
|
|
ARG 6 y
|
|
|
|
ARG 7 radius
|
|
|
|
ARG 8 leaves
|
|
|
|
METHOD method_23450 placeLeaves (Lnet/minecraft/class_3747;Ljava/util/Random;Lnet/minecraft/class_2338;Lnet/minecraft/class_4640;Ljava/util/Set;)V
|
|
|
|
ARG 1 world
|
|
|
|
ARG 2 random
|
|
|
|
ARG 3 pos
|
|
|
|
ARG 4 config
|
|
|
|
ARG 5 leaves
|
|
|
|
METHOD method_23451 isInvalidForLeaves (Ljava/util/Random;IIIII)Z
|
|
|
|
ARG 2 baseHeight
|
|
|
|
ARG 3 x
|
|
|
|
ARG 4 y
|
|
|
|
ARG 5 z
|
|
|
|
ARG 6 radius
|
2019-11-26 03:42:27 -05:00
|
|
|
METHOD method_23452 getRadius (Ljava/util/Random;IILnet/minecraft/class_4640;)I
|
2020-03-10 12:34:02 -04:00
|
|
|
ARG 2 baseHeight
|
|
|
|
ARG 3 trunkHeight
|
2019-11-26 03:42:27 -05:00
|
|
|
ARG 4 config
|