Package net.minecraft.world.gen.trunk
Class CherryTrunkPlacer
java.lang.Object
net.minecraft.world.gen.trunk.TrunkPlacer
net.minecraft.world.gen.trunk.CherryTrunkPlacer
- Mappings:
Namespace Name official dsx
intermediary net/minecraft/class_8180
named net/minecraft/world/gen/trunk/CherryTrunkPlacer
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final com.mojang.serialization.Codec<UniformIntProvider>
private final IntProvider
private final IntProvider
private final IntProvider
private final UniformIntProvider
static final com.mojang.serialization.Codec<CherryTrunkPlacer>
private final UniformIntProvider
Fields inherited from class net.minecraft.world.gen.trunk.TrunkPlacer
baseHeight, field_31530, firstRandomHeight, secondRandomHeight, TYPE_CODEC
-
Constructor Summary
ConstructorDescriptionCherryTrunkPlacer
(int baseHeight, int firstRandomHeight, int secondRandomHeight, IntProvider branchCount, IntProvider branchHorizontalLength, UniformIntProvider branchStartOffsetFromTop, IntProvider branchEndOffsetFromTop) -
Method Summary
Modifier and TypeMethodDescriptiongenerate
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, int height, BlockPos startPos, TreeFeatureConfig config) Generates the trunk blocks and return a list of tree nodes to place foliage aroundprivate FoliagePlacer.TreeNode
generateBranch
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, int height, BlockPos startPos, TreeFeatureConfig config, Function<BlockState, BlockState> withAxisFunction, Direction direction, int branchStartOffset, boolean branchBelowHeight, BlockPos.Mutable mutablePos) protected TrunkPlacerType<?>
getType()
Methods inherited from class net.minecraft.world.gen.trunk.TrunkPlacer
canReplace, canReplaceOrIsLog, fillTrunkPlacerFields, getAndSetState, getAndSetState, getHeight, setToDirt, trySetState
-
Field Details
-
BRANCH_START_OFFSET_FROM_TOP_CODEC
private static final com.mojang.serialization.Codec<UniformIntProvider> BRANCH_START_OFFSET_FROM_TOP_CODEC- Mappings:
Namespace Name Mixin selector official b
Ldsx;b:Lcom/mojang/serialization/Codec;
intermediary field_42849
Lnet/minecraft/class_8180;field_42849:Lcom/mojang/serialization/Codec;
named BRANCH_START_OFFSET_FROM_TOP_CODEC
Lnet/minecraft/world/gen/trunk/CherryTrunkPlacer;BRANCH_START_OFFSET_FROM_TOP_CODEC:Lcom/mojang/serialization/Codec;
-
CODEC
- Mappings:
Namespace Name Mixin selector official a
Ldsx;a:Lcom/mojang/serialization/Codec;
intermediary field_42848
Lnet/minecraft/class_8180;field_42848:Lcom/mojang/serialization/Codec;
named CODEC
Lnet/minecraft/world/gen/trunk/CherryTrunkPlacer;CODEC:Lcom/mojang/serialization/Codec;
-
branchCount
- Mappings:
Namespace Name Mixin selector official h
Ldsx;h:Lbgd;
intermediary field_42850
Lnet/minecraft/class_8180;field_42850:Lnet/minecraft/class_6017;
named branchCount
Lnet/minecraft/world/gen/trunk/CherryTrunkPlacer;branchCount:Lnet/minecraft/util/math/intprovider/IntProvider;
-
branchHorizontalLength
- Mappings:
Namespace Name Mixin selector official i
Ldsx;i:Lbgd;
intermediary field_42851
Lnet/minecraft/class_8180;field_42851:Lnet/minecraft/class_6017;
named branchHorizontalLength
Lnet/minecraft/world/gen/trunk/CherryTrunkPlacer;branchHorizontalLength:Lnet/minecraft/util/math/intprovider/IntProvider;
-
branchStartOffsetFromTop
- Mappings:
Namespace Name Mixin selector official j
Ldsx;j:Lbgj;
intermediary field_42852
Lnet/minecraft/class_8180;field_42852:Lnet/minecraft/class_6019;
named branchStartOffsetFromTop
Lnet/minecraft/world/gen/trunk/CherryTrunkPlacer;branchStartOffsetFromTop:Lnet/minecraft/util/math/intprovider/UniformIntProvider;
-
secondBranchStartOffsetFromTop
- Mappings:
Namespace Name Mixin selector official k
Ldsx;k:Lbgj;
intermediary field_42853
Lnet/minecraft/class_8180;field_42853:Lnet/minecraft/class_6019;
named secondBranchStartOffsetFromTop
Lnet/minecraft/world/gen/trunk/CherryTrunkPlacer;secondBranchStartOffsetFromTop:Lnet/minecraft/util/math/intprovider/UniformIntProvider;
-
branchEndOffsetFromTop
- Mappings:
Namespace Name Mixin selector official l
Ldsx;l:Lbgd;
intermediary field_42854
Lnet/minecraft/class_8180;field_42854:Lnet/minecraft/class_6017;
named branchEndOffsetFromTop
Lnet/minecraft/world/gen/trunk/CherryTrunkPlacer;branchEndOffsetFromTop:Lnet/minecraft/util/math/intprovider/IntProvider;
-
-
Constructor Details
-
CherryTrunkPlacer
public CherryTrunkPlacer(int baseHeight, int firstRandomHeight, int secondRandomHeight, IntProvider branchCount, IntProvider branchHorizontalLength, UniformIntProvider branchStartOffsetFromTop, IntProvider branchEndOffsetFromTop) - Mappings:
Namespace Name Mixin selector official <init>
Ldsx;<init>(IIILbgd;Lbgd;Lbgj;Lbgd;)V
intermediary <init>
Lnet/minecraft/class_8180;<init>(IIILnet/minecraft/class_6017;Lnet/minecraft/class_6017;Lnet/minecraft/class_6019;Lnet/minecraft/class_6017;)V
named <init>
Lnet/minecraft/world/gen/trunk/CherryTrunkPlacer;<init>(IIILnet/minecraft/util/math/intprovider/IntProvider;Lnet/minecraft/util/math/intprovider/IntProvider;Lnet/minecraft/util/math/intprovider/UniformIntProvider;Lnet/minecraft/util/math/intprovider/IntProvider;)V
-
-
Method Details
-
getType
- Specified by:
getType
in classTrunkPlacer
- Mappings:
Namespace Name Mixin selector official a
Ldte;a()Ldtf;
intermediary method_28903
Lnet/minecraft/class_5141;method_28903()Lnet/minecraft/class_5142;
named getType
Lnet/minecraft/world/gen/trunk/TrunkPlacer;getType()Lnet/minecraft/world/gen/trunk/TrunkPlacerType;
-
generate
public List<FoliagePlacer.TreeNode> generate(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, int height, BlockPos startPos, TreeFeatureConfig config) Generates the trunk blocks and return a list of tree nodes to place foliage around- Specified by:
generate
in classTrunkPlacer
- Mappings:
Namespace Name Mixin selector official a
Ldte;a(Lcqb;Ljava/util/function/BiConsumer;Lasc;ILgw;Ldqw;)Ljava/util/List;
intermediary method_26991
Lnet/minecraft/class_5141;method_26991(Lnet/minecraft/class_3746;Ljava/util/function/BiConsumer;Lnet/minecraft/class_5819;ILnet/minecraft/class_2338;Lnet/minecraft/class_4643;)Ljava/util/List;
named generate
Lnet/minecraft/world/gen/trunk/TrunkPlacer;generate(Lnet/minecraft/world/TestableWorld;Ljava/util/function/BiConsumer;Lnet/minecraft/util/math/random/Random;ILnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/gen/feature/TreeFeatureConfig;)Ljava/util/List;
-
generateBranch
private FoliagePlacer.TreeNode generateBranch(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, int height, BlockPos startPos, TreeFeatureConfig config, Function<BlockState, BlockState> withAxisFunction, Direction direction, int branchStartOffset, boolean branchBelowHeight, BlockPos.Mutable mutablePos) - Mappings:
Namespace Name Mixin selector official a
Ldsx;a(Lcqb;Ljava/util/function/BiConsumer;Lasc;ILgw;Ldqw;Ljava/util/function/Function;Lha;IZLgw$a;)Ldrm$a;
intermediary method_49249
Lnet/minecraft/class_8180;method_49249(Lnet/minecraft/class_3746;Ljava/util/function/BiConsumer;Lnet/minecraft/class_5819;ILnet/minecraft/class_2338;Lnet/minecraft/class_4643;Ljava/util/function/Function;Lnet/minecraft/class_2350;IZLnet/minecraft/class_2338$class_2339;)Lnet/minecraft/class_4647$class_5208;
named generateBranch
Lnet/minecraft/world/gen/trunk/CherryTrunkPlacer;generateBranch(Lnet/minecraft/world/TestableWorld;Ljava/util/function/BiConsumer;Lnet/minecraft/util/math/random/Random;ILnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/gen/feature/TreeFeatureConfig;Ljava/util/function/Function;Lnet/minecraft/util/math/Direction;IZLnet/minecraft/util/math/BlockPos$Mutable;)Lnet/minecraft/world/gen/foliage/FoliagePlacer$TreeNode;
-