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 egb
-
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
Legb;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
Legb;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
Legb;h:Lbqb;
-
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
Legb;i:Lbqb;
-
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
Legb;j:Lbqh;
-
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
Legb;k:Lbqh;
-
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
Legb;l:Lbqb;
-
-
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>
Legb;<init>(IIILbqb;Lbqb;Lbqh;Lbqb;)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
Legi;a()Legj;
-
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
Legi;a(Ldcg;Ljava/util/function/BiConsumer;Lazh;ILiz;Leea;)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
Legb;a(Ldcg;Ljava/util/function/BiConsumer;Lazh;ILiz;Leea;Ljava/util/function/Function;Lje;IZLiz$a;)Leeq$a;
-