Class LeavesVineTreeDecorator
java.lang.Object
net.minecraft.world.gen.treedecorator.TreeDecorator
net.minecraft.world.gen.treedecorator.LeavesVineTreeDecorator
- Mappings:
Namespace Name official dfcintermediary net/minecraft/class_4661named net/minecraft/world/gen/treedecorator/LeavesVineTreeDecorator
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<LeavesVineTreeDecorator>private final floatFields inherited from class net.minecraft.world.gen.treedecorator.TreeDecorator
TYPE_CODEC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgenerate(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, AbstractRandom random, List<BlockPos> logPositions, List<BlockPos> leavesPositions, List<BlockPos> list) protected TreeDecoratorType<?>getType()private static voidplaceVines(TestableWorld world, BlockPos pos, BooleanProperty facing, BiConsumer<BlockPos, BlockState> replacer) Places a vine at a given position and then up to 4 more vines going downwards.Methods inherited from class net.minecraft.world.gen.treedecorator.TreeDecorator
placeVine
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector official aLdfc;a:Lcom/mojang/serialization/Codec;intermediary field_24960Lnet/minecraft/class_4661;field_24960:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/world/gen/treedecorator/LeavesVineTreeDecorator;CODEC:Lcom/mojang/serialization/Codec;
-
probability
private final float probability- Mappings:
Namespace Name Mixin selector official bLdfc;b:Fintermediary field_38790Lnet/minecraft/class_4661;field_38790:Fnamed probabilityLnet/minecraft/world/gen/treedecorator/LeavesVineTreeDecorator;probability:F
-
-
Constructor Details
-
LeavesVineTreeDecorator
public LeavesVineTreeDecorator(float probability) - Mappings:
Namespace Name Mixin selector official <init>Ldfc;<init>(F)Vintermediary <init>Lnet/minecraft/class_4661;<init>(F)Vnamed <init>Lnet/minecraft/world/gen/treedecorator/LeavesVineTreeDecorator;<init>(F)V
-
-
Method Details
-
getType
- Specified by:
getTypein classTreeDecorator- Mappings:
Namespace Name Mixin selector official aLdfd;a()Ldfe;intermediary method_28893Lnet/minecraft/class_4662;method_28893()Lnet/minecraft/class_4663;named getTypeLnet/minecraft/world/gen/treedecorator/TreeDecorator;getType()Lnet/minecraft/world/gen/treedecorator/TreeDecoratorType;
-
generate
public void generate(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, AbstractRandom random, List<BlockPos> logPositions, List<BlockPos> leavesPositions, List<BlockPos> list) - Specified by:
generatein classTreeDecorator- Mappings:
Namespace Name Mixin selector official aLdfd;a(Lcdy;Ljava/util/function/BiConsumer;Laki;Ljava/util/List;Ljava/util/List;Ljava/util/List;)Vintermediary method_23469Lnet/minecraft/class_4662;method_23469(Lnet/minecraft/class_3746;Ljava/util/function/BiConsumer;Lnet/minecraft/class_5819;Ljava/util/List;Ljava/util/List;Ljava/util/List;)Vnamed generateLnet/minecraft/world/gen/treedecorator/TreeDecorator;generate(Lnet/minecraft/world/TestableWorld;Ljava/util/function/BiConsumer;Lnet/minecraft/util/math/random/AbstractRandom;Ljava/util/List;Ljava/util/List;Ljava/util/List;)V
-
placeVines
private static void placeVines(TestableWorld world, BlockPos pos, BooleanProperty facing, BiConsumer<BlockPos, BlockState> replacer) Places a vine at a given position and then up to 4 more vines going downwards.- Mappings:
Namespace Name Mixin selector official aLdfc;a(Lcdy;Lgm;Lcsx;Ljava/util/function/BiConsumer;)Vintermediary method_23467Lnet/minecraft/class_4661;method_23467(Lnet/minecraft/class_3746;Lnet/minecraft/class_2338;Lnet/minecraft/class_2746;Ljava/util/function/BiConsumer;)Vnamed placeVinesLnet/minecraft/world/gen/treedecorator/LeavesVineTreeDecorator;placeVines(Lnet/minecraft/world/TestableWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/state/property/BooleanProperty;Ljava/util/function/BiConsumer;)V
-