Package net.minecraft.world.gen.tree
Class TreeDecorator
java.lang.Object
net.minecraft.world.gen.tree.TreeDecorator
- Direct Known Subclasses:
AlterGroundTreeDecorator,BeehiveTreeDecorator,CocoaBeansTreeDecorator,LeavesVineTreeDecorator,TrunkVineTreeDecorator
public abstract class TreeDecorator extends Object
Tree decorators can add additional blocks to trees, such as vines or beehives.
- Mappings:
Namespace Name official cueintermediary net/minecraft/class_4662named net/minecraft/world/gen/tree/TreeDecorator
-
Field Summary
Fields Modifier and Type Field Description static com.mojang.serialization.Codec<TreeDecorator>TYPE_CODEC -
Constructor Summary
Constructors Constructor Description TreeDecorator() -
Method Summary
Modifier and Type Method Description abstract voidgenerate(StructureWorldAccess world, Random random, List<BlockPos> logPositions, List<BlockPos> leavesPositions, Set<BlockPos> placedStates, BlockBox box)protected abstract TreeDecoratorType<?>getType()protected voidplaceVine(ModifiableWorld world, BlockPos pos, BooleanProperty directionProperty, Set<BlockPos> placedStates, BlockBox box)protected voidsetBlockStateAndEncompassPosition(ModifiableWorld world, BlockPos pos, BlockState state, Set<BlockPos> placedStates, BlockBox box)
-
Field Details
-
TYPE_CODEC
- Mappings:
Namespace Name Mixin selector official cLcue;c:Lcom/mojang/serialization/Codec;intermediary field_24962Lnet/minecraft/class_4662;field_24962:Lcom/mojang/serialization/Codec;named TYPE_CODECLnet/minecraft/world/gen/tree/TreeDecorator;TYPE_CODEC:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
TreeDecorator
public TreeDecorator()
-
-
Method Details
-
getType
- Mappings:
Namespace Name Mixin selector official aLcue;a()Lcuf;intermediary method_28893Lnet/minecraft/class_4662;method_28893()Lnet/minecraft/class_4663;named getTypeLnet/minecraft/world/gen/tree/TreeDecorator;getType()Lnet/minecraft/world/gen/tree/TreeDecoratorType;
-
generate
public abstract void generate(StructureWorldAccess world, Random random, List<BlockPos> logPositions, List<BlockPos> leavesPositions, Set<BlockPos> placedStates, BlockBox box)- Mappings:
Namespace Name Mixin selector official aLcue;a(Lbuq;Ljava/util/Random;Ljava/util/List;Ljava/util/List;Ljava/util/Set;Lcwn;)Vintermediary method_23469Lnet/minecraft/class_4662;method_23469(Lnet/minecraft/class_5281;Ljava/util/Random;Ljava/util/List;Ljava/util/List;Ljava/util/Set;Lnet/minecraft/class_3341;)Vnamed generateLnet/minecraft/world/gen/tree/TreeDecorator;generate(Lnet/minecraft/world/StructureWorldAccess;Ljava/util/Random;Ljava/util/List;Ljava/util/List;Ljava/util/Set;Lnet/minecraft/util/math/BlockBox;)V
-
placeVine
protected void placeVine(ModifiableWorld world, BlockPos pos, BooleanProperty directionProperty, Set<BlockPos> placedStates, BlockBox box)- Mappings:
Namespace Name Mixin selector official aLcue;a(Lbud;Lfx;Lcik;Ljava/util/Set;Lcwn;)Vintermediary method_23471Lnet/minecraft/class_4662;method_23471(Lnet/minecraft/class_1945;Lnet/minecraft/class_2338;Lnet/minecraft/class_2746;Ljava/util/Set;Lnet/minecraft/class_3341;)Vnamed placeVineLnet/minecraft/world/gen/tree/TreeDecorator;placeVine(Lnet/minecraft/world/ModifiableWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/state/property/BooleanProperty;Ljava/util/Set;Lnet/minecraft/util/math/BlockBox;)V
-
setBlockStateAndEncompassPosition
protected void setBlockStateAndEncompassPosition(ModifiableWorld world, BlockPos pos, BlockState state, Set<BlockPos> placedStates, BlockBox box)- Mappings:
Namespace Name Mixin selector official aLcue;a(Lbud;Lfx;Lcht;Ljava/util/Set;Lcwn;)Vintermediary method_23470Lnet/minecraft/class_4662;method_23470(Lnet/minecraft/class_1945;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Ljava/util/Set;Lnet/minecraft/class_3341;)Vnamed setBlockStateAndEncompassPositionLnet/minecraft/world/gen/tree/TreeDecorator;setBlockStateAndEncompassPosition(Lnet/minecraft/world/ModifiableWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Ljava/util/Set;Lnet/minecraft/util/math/BlockBox;)V
-