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 cue
intermediary net/minecraft/class_4662
named 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 void
generate(StructureWorldAccess world, Random random, List<BlockPos> logPositions, List<BlockPos> leavesPositions, Set<BlockPos> placedStates, BlockBox box)
protected abstract TreeDecoratorType<?>
getType()
protected void
placeVine(ModifiableWorld world, BlockPos pos, BooleanProperty directionProperty, Set<BlockPos> placedStates, BlockBox box)
protected void
setBlockStateAndEncompassPosition(ModifiableWorld world, BlockPos pos, BlockState state, Set<BlockPos> placedStates, BlockBox box)
-
Field Details
-
TYPE_CODEC
- Mappings:
Namespace Name Mixin selector official c
Lcue;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/tree/TreeDecorator;TYPE_CODEC:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
TreeDecorator
public TreeDecorator()
-
-
Method Details
-
getType
- Mappings:
Namespace Name Mixin selector official a
Lcue;a()Lcuf;
intermediary method_28893
Lnet/minecraft/class_4662;method_28893()Lnet/minecraft/class_4663;
named getType
Lnet/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 a
Lcue;a(Lbuq;Ljava/util/Random;Ljava/util/List;Ljava/util/List;Ljava/util/Set;Lcwn;)V
intermediary method_23469
Lnet/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;)V
named generate
Lnet/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 a
Lcue;a(Lbud;Lfx;Lcik;Ljava/util/Set;Lcwn;)V
intermediary method_23471
Lnet/minecraft/class_4662;method_23471(Lnet/minecraft/class_1945;Lnet/minecraft/class_2338;Lnet/minecraft/class_2746;Ljava/util/Set;Lnet/minecraft/class_3341;)V
named placeVine
Lnet/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 a
Lcue;a(Lbud;Lfx;Lcht;Ljava/util/Set;Lcwn;)V
intermediary method_23470
Lnet/minecraft/class_4662;method_23470(Lnet/minecraft/class_1945;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Ljava/util/Set;Lnet/minecraft/class_3341;)V
named setBlockStateAndEncompassPosition
Lnet/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
-