Class TreeDecorator
java.lang.Object
net.minecraft.world.gen.treedecorator.TreeDecorator
- Direct Known Subclasses:
AlterGroundTreeDecorator
,BeehiveTreeDecorator
,CocoaBeansTreeDecorator
,LeavesVineTreeDecorator
,TrunkVineTreeDecorator
Tree decorators can add additional blocks to trees, such as vines or beehives.
- Mappings:
Namespace Name official cyi
intermediary net/minecraft/class_4662
named net/minecraft/world/gen/treedecorator/TreeDecorator
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
generate
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, List<BlockPos> logPositions, List<BlockPos> leavesPositions) protected abstract TreeDecoratorType<?>
getType()
protected static void
placeVine
(BiConsumer<BlockPos, BlockState> replacer, BlockPos pos, BooleanProperty facing)
-
Field Details
-
TYPE_CODEC
- Mappings:
Namespace Name Mixin selector official c
Lcyi;c:Lcom/mojang/serialization/Codec;
intermediary field_24962
Lnet/minecraft/class_4662;field_24962:Lcom/mojang/serialization/Codec;
named TYPE_CODEC
Lnet/minecraft/world/gen/treedecorator/TreeDecorator;TYPE_CODEC:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
TreeDecorator
public TreeDecorator()
-
-
Method Details
-
getType
- Mappings:
Namespace Name Mixin selector official a
Lcyi;a()Lcyj;
intermediary method_28893
Lnet/minecraft/class_4662;method_28893()Lnet/minecraft/class_4663;
named getType
Lnet/minecraft/world/gen/treedecorator/TreeDecorator;getType()Lnet/minecraft/world/gen/treedecorator/TreeDecoratorType;
-
generate
public abstract void generate(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, List<BlockPos> logPositions, List<BlockPos> leavesPositions) - Mappings:
Namespace Name Mixin selector official a
Lcyi;a(Lbww;Ljava/util/function/BiConsumer;Ljava/util/Random;Ljava/util/List;Ljava/util/List;)V
intermediary method_23469
Lnet/minecraft/class_4662;method_23469(Lnet/minecraft/class_3746;Ljava/util/function/BiConsumer;Ljava/util/Random;Ljava/util/List;Ljava/util/List;)V
named generate
Lnet/minecraft/world/gen/treedecorator/TreeDecorator;generate(Lnet/minecraft/world/TestableWorld;Ljava/util/function/BiConsumer;Ljava/util/Random;Ljava/util/List;Ljava/util/List;)V
-
placeVine
protected static void placeVine(BiConsumer<BlockPos, BlockState> replacer, BlockPos pos, BooleanProperty facing) - Mappings:
Namespace Name Mixin selector official a
Lcyi;a(Ljava/util/function/BiConsumer;Lgg;Lclk;)V
intermediary method_23471
Lnet/minecraft/class_4662;method_23471(Ljava/util/function/BiConsumer;Lnet/minecraft/class_2338;Lnet/minecraft/class_2746;)V
named placeVine
Lnet/minecraft/world/gen/treedecorator/TreeDecorator;placeVine(Ljava/util/function/BiConsumer;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/state/property/BooleanProperty;)V
-