Class AttachedToLeavesTreeDecorator
java.lang.Object
net.minecraft.world.gen.treedecorator.TreeDecorator
net.minecraft.world.gen.treedecorator.AttachedToLeavesTreeDecorator
- Mappings:
Namespace Name official dezintermediary net/minecraft/class_7389named net/minecraft/world/gen/treedecorator/AttachedToLeavesTreeDecorator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final BlockStateProviderstatic final com.mojang.serialization.Codec<AttachedToLeavesTreeDecorator>protected final intprotected final intprotected final floatprotected final intFields inherited from class net.minecraft.world.gen.treedecorator.TreeDecorator
TYPE_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionAttachedToLeavesTreeDecorator(float probability, int exclusionRadiusXZ, int exclusionRadiusY, BlockStateProvider blockProvider, int requiredEmptyBlocks, List<Direction> directions) -
Method Summary
Modifier and TypeMethodDescriptionvoidgenerate(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, AbstractRandom random, List<BlockPos> logPositions, List<BlockPos> leavesPositions, List<BlockPos> rootPositions) protected TreeDecoratorType<?>getType()private booleanmeetsRequiredEmptyBlocks(TestableWorld world, BlockPos pos, Direction direction) Methods inherited from class net.minecraft.world.gen.treedecorator.TreeDecorator
placeVine
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector official aLdez;a:Lcom/mojang/serialization/Codec;intermediary field_38783Lnet/minecraft/class_7389;field_38783:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/world/gen/treedecorator/AttachedToLeavesTreeDecorator;CODEC:Lcom/mojang/serialization/Codec;
-
probability
protected final float probability- Mappings:
Namespace Name Mixin selector official bLdez;b:Fintermediary field_38784Lnet/minecraft/class_7389;field_38784:Fnamed probabilityLnet/minecraft/world/gen/treedecorator/AttachedToLeavesTreeDecorator;probability:F
-
exclusionRadiusXZ
protected final int exclusionRadiusXZ- Mappings:
Namespace Name Mixin selector official cLdez;c:Iintermediary field_38785Lnet/minecraft/class_7389;field_38785:Inamed exclusionRadiusXZLnet/minecraft/world/gen/treedecorator/AttachedToLeavesTreeDecorator;exclusionRadiusXZ:I
-
exclusionRadiusY
protected final int exclusionRadiusY- Mappings:
Namespace Name Mixin selector official dLdez;d:Iintermediary field_38786Lnet/minecraft/class_7389;field_38786:Inamed exclusionRadiusYLnet/minecraft/world/gen/treedecorator/AttachedToLeavesTreeDecorator;exclusionRadiusY:I
-
blockProvider
- Mappings:
Namespace Name Mixin selector official eLdez;e:Lden;intermediary field_38787Lnet/minecraft/class_7389;field_38787:Lnet/minecraft/class_4651;named blockProviderLnet/minecraft/world/gen/treedecorator/AttachedToLeavesTreeDecorator;blockProvider:Lnet/minecraft/world/gen/stateprovider/BlockStateProvider;
-
requiredEmptyBlocks
protected final int requiredEmptyBlocks- Mappings:
Namespace Name Mixin selector official fLdez;f:Iintermediary field_38788Lnet/minecraft/class_7389;field_38788:Inamed requiredEmptyBlocksLnet/minecraft/world/gen/treedecorator/AttachedToLeavesTreeDecorator;requiredEmptyBlocks:I
-
directions
- Mappings:
Namespace Name Mixin selector official gLdez;g:Ljava/util/List;intermediary field_38789Lnet/minecraft/class_7389;field_38789:Ljava/util/List;named directionsLnet/minecraft/world/gen/treedecorator/AttachedToLeavesTreeDecorator;directions:Ljava/util/List;
-
-
Constructor Details
-
AttachedToLeavesTreeDecorator
public AttachedToLeavesTreeDecorator(float probability, int exclusionRadiusXZ, int exclusionRadiusY, BlockStateProvider blockProvider, int requiredEmptyBlocks, List<Direction> directions) - Mappings:
Namespace Name Mixin selector official <init>Ldez;<init>(FIILden;ILjava/util/List;)Vintermediary <init>Lnet/minecraft/class_7389;<init>(FIILnet/minecraft/class_4651;ILjava/util/List;)Vnamed <init>Lnet/minecraft/world/gen/treedecorator/AttachedToLeavesTreeDecorator;<init>(FIILnet/minecraft/world/gen/stateprovider/BlockStateProvider;ILjava/util/List;)V
-
-
Method Details
-
generate
public void generate(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, AbstractRandom random, List<BlockPos> logPositions, List<BlockPos> leavesPositions, List<BlockPos> rootPositions) - 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
-
meetsRequiredEmptyBlocks
- Mappings:
Namespace Name Mixin selector official aLdez;a(Lcdy;Lgm;Lgr;)Zintermediary method_43187Lnet/minecraft/class_7389;method_43187(Lnet/minecraft/class_3746;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)Znamed meetsRequiredEmptyBlocksLnet/minecraft/world/gen/treedecorator/AttachedToLeavesTreeDecorator;meetsRequiredEmptyBlocks(Lnet/minecraft/world/TestableWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Z
-
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;
-