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 named net/minecraft/world/gen/trunk/CherryTrunkPlacer
intermediary net/minecraft/class_8180
official ehb
-
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.MapCodec
<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 named BRANCH_START_OFFSET_FROM_TOP_CODEC
Lnet/minecraft/world/gen/trunk/CherryTrunkPlacer;BRANCH_START_OFFSET_FROM_TOP_CODEC:Lcom/mojang/serialization/Codec;
intermediary field_42849
Lnet/minecraft/class_8180;field_42849:Lcom/mojang/serialization/Codec;
official b
Lehb;b:Lcom/mojang/serialization/Codec;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/world/gen/trunk/CherryTrunkPlacer;CODEC:Lcom/mojang/serialization/MapCodec;
intermediary field_42848
Lnet/minecraft/class_8180;field_42848:Lcom/mojang/serialization/MapCodec;
official a
Lehb;a:Lcom/mojang/serialization/MapCodec;
-
branchCount
- Mappings:
Namespace Name Mixin selector named branchCount
Lnet/minecraft/world/gen/trunk/CherryTrunkPlacer;branchCount:Lnet/minecraft/util/math/intprovider/IntProvider;
intermediary field_42850
Lnet/minecraft/class_8180;field_42850:Lnet/minecraft/class_6017;
official h
Lehb;h:Lbpv;
-
branchHorizontalLength
- Mappings:
Namespace Name Mixin selector named branchHorizontalLength
Lnet/minecraft/world/gen/trunk/CherryTrunkPlacer;branchHorizontalLength:Lnet/minecraft/util/math/intprovider/IntProvider;
intermediary field_42851
Lnet/minecraft/class_8180;field_42851:Lnet/minecraft/class_6017;
official i
Lehb;i:Lbpv;
-
branchStartOffsetFromTop
- Mappings:
Namespace Name Mixin selector named branchStartOffsetFromTop
Lnet/minecraft/world/gen/trunk/CherryTrunkPlacer;branchStartOffsetFromTop:Lnet/minecraft/util/math/intprovider/UniformIntProvider;
intermediary field_42852
Lnet/minecraft/class_8180;field_42852:Lnet/minecraft/class_6019;
official j
Lehb;j:Lbqb;
-
secondBranchStartOffsetFromTop
- Mappings:
Namespace Name Mixin selector named secondBranchStartOffsetFromTop
Lnet/minecraft/world/gen/trunk/CherryTrunkPlacer;secondBranchStartOffsetFromTop:Lnet/minecraft/util/math/intprovider/UniformIntProvider;
intermediary field_42853
Lnet/minecraft/class_8180;field_42853:Lnet/minecraft/class_6019;
official k
Lehb;k:Lbqb;
-
branchEndOffsetFromTop
- Mappings:
Namespace Name Mixin selector named branchEndOffsetFromTop
Lnet/minecraft/world/gen/trunk/CherryTrunkPlacer;branchEndOffsetFromTop:Lnet/minecraft/util/math/intprovider/IntProvider;
intermediary field_42854
Lnet/minecraft/class_8180;field_42854:Lnet/minecraft/class_6017;
official l
Lehb;l:Lbpv;
-
-
Constructor Details
-
CherryTrunkPlacer
public CherryTrunkPlacer(int baseHeight, int firstRandomHeight, int secondRandomHeight, IntProvider branchCount, IntProvider branchHorizontalLength, UniformIntProvider branchStartOffsetFromTop, IntProvider branchEndOffsetFromTop) - Mappings:
Namespace Name Mixin selector 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
intermediary <init>
Lnet/minecraft/class_8180;<init>(IIILnet/minecraft/class_6017;Lnet/minecraft/class_6017;Lnet/minecraft/class_6019;Lnet/minecraft/class_6017;)V
official <init>
Lehb;<init>(IIILbpv;Lbpv;Lbqb;Lbpv;)V
-
-
Method Details
-
getType
- Specified by:
getType
in classTrunkPlacer
- Mappings:
Namespace Name Mixin selector named getType
Lnet/minecraft/world/gen/trunk/TrunkPlacer;getType()Lnet/minecraft/world/gen/trunk/TrunkPlacerType;
intermediary method_28903
Lnet/minecraft/class_5141;method_28903()Lnet/minecraft/class_5142;
official a
Lehi;a()Lehj;
-
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 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;
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;
official a
Lehi;a(Ldda;Ljava/util/function/BiConsumer;Layv;ILjd;Lefa;)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 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;
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;
official a
Lehb;a(Ldda;Ljava/util/function/BiConsumer;Layv;ILjd;Lefa;Ljava/util/function/Function;Lji;IZLjd$a;)Lefq$a;
-