Package net.minecraft.world.gen.trunk
Class LargeOakTrunkPlacer
java.lang.Object
net.minecraft.world.gen.trunk.TrunkPlacer
net.minecraft.world.gen.trunk.LargeOakTrunkPlacer
- Mappings:
- Namespace - Name - official - dpr- intermediary - net/minecraft/class_5212- named - net/minecraft/world/gen/trunk/LargeOakTrunkPlacer
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<LargeOakTrunkPlacer>private static final doubleprivate static final doubleprivate static final doubleprivate static final doubleFields inherited from class net.minecraft.world.gen.trunk.TrunkPlacerbaseHeight, field_31530, firstRandomHeight, secondRandomHeight, TYPE_CODEC
- 
Constructor SummaryConstructorsConstructorDescriptionLargeOakTrunkPlacer(int baseHeight, int firstRandomHeight, int secondRandomHeight) 
- 
Method SummaryModifier 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 Direction.AxisgetLogAxis(BlockPos branchStart, BlockPos branchEnd) private intgetLongestSide(BlockPos offset) protected TrunkPlacerType<?>getType()private booleanisHighEnough(int treeHeight, int height) private voidmakeBranches(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, int treeHeight, BlockPos startPos, List<LargeOakTrunkPlacer.BranchPosition> branchPositions, TreeFeatureConfig config) private booleanmakeOrCheckBranch(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos startPos, BlockPos branchPos, boolean make, TreeFeatureConfig config) private static floatshouldGenerateBranch(int treeHeight, int height) If the returned value is greater than or equal to 0, a branch will be generated.Methods inherited from class net.minecraft.world.gen.trunk.TrunkPlacercanReplace, canReplaceOrIsLog, fillTrunkPlacerFields, getAndSetState, getAndSetState, getHeight, setToDirt, trySetState
- 
Field Details- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldpr;a:Lcom/mojang/serialization/Codec;- intermediary - field_24967- Lnet/minecraft/class_5212;field_24967:Lcom/mojang/serialization/Codec;- named - CODEC- Lnet/minecraft/world/gen/trunk/LargeOakTrunkPlacer;CODEC:Lcom/mojang/serialization/Codec;
 
- 
field_31524private static final double field_31524- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - b- Ldpr;b:D- intermediary - field_31524- Lnet/minecraft/class_5212;field_31524:D- named - field_31524- Lnet/minecraft/world/gen/trunk/LargeOakTrunkPlacer;field_31524:D
 
- 
field_31525private static final double field_31525- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - h- Ldpr;h:D- intermediary - field_31525- Lnet/minecraft/class_5212;field_31525:D- named - field_31525- Lnet/minecraft/world/gen/trunk/LargeOakTrunkPlacer;field_31525:D
 
- 
field_31526private static final double field_31526- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - i- Ldpr;i:D- intermediary - field_31526- Lnet/minecraft/class_5212;field_31526:D- named - field_31526- Lnet/minecraft/world/gen/trunk/LargeOakTrunkPlacer;field_31526:D
 
- 
field_31527private static final double field_31527- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - j- Ldpr;j:D- intermediary - field_31527- Lnet/minecraft/class_5212;field_31527:D- named - field_31527- Lnet/minecraft/world/gen/trunk/LargeOakTrunkPlacer;field_31527:D
 
 
- 
- 
Constructor Details- 
LargeOakTrunkPlacerpublic LargeOakTrunkPlacer(int baseHeight, int firstRandomHeight, int secondRandomHeight) - Mappings:
- Namespace - Name - Mixin selector - official - <init>- Ldpw;<init>(III)V- intermediary - <init>- Lnet/minecraft/class_5141;<init>(III)V- named - <init>- Lnet/minecraft/world/gen/trunk/TrunkPlacer;<init>(III)V
 
 
- 
- 
Method Details- 
getType- Specified by:
- getTypein class- TrunkPlacer
- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldpw;a()Ldpx;- 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;
 
- 
generatepublic 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:
- generatein class- TrunkPlacer
- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldpw;a(Lcms;Ljava/util/function/BiConsumer;Lapf;ILgu;Ldno;)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;
 
- 
makeOrCheckBranchprivate boolean makeOrCheckBranch(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos startPos, BlockPos branchPos, boolean make, TreeFeatureConfig config) - Mappings:
- Namespace - Name - Mixin selector - official - a- Ldpr;a(Lcms;Ljava/util/function/BiConsumer;Lapf;Lgu;Lgu;ZLdno;)Z- intermediary - method_27393- Lnet/minecraft/class_5212;method_27393(Lnet/minecraft/class_3746;Ljava/util/function/BiConsumer;Lnet/minecraft/class_5819;Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;ZLnet/minecraft/class_4643;)Z- named - makeOrCheckBranch- Lnet/minecraft/world/gen/trunk/LargeOakTrunkPlacer;makeOrCheckBranch(Lnet/minecraft/world/TestableWorld;Ljava/util/function/BiConsumer;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;ZLnet/minecraft/world/gen/feature/TreeFeatureConfig;)Z
 
- 
getLongestSide- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldpr;a(Lgu;)I- intermediary - method_27394- Lnet/minecraft/class_5212;method_27394(Lnet/minecraft/class_2338;)I- named - getLongestSide- Lnet/minecraft/world/gen/trunk/LargeOakTrunkPlacer;getLongestSide(Lnet/minecraft/util/math/BlockPos;)I
 
- 
getLogAxis- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldpr;a(Lgu;Lgu;)Lha$a;- intermediary - method_27395- Lnet/minecraft/class_5212;method_27395(Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2350$class_2351;- named - getLogAxis- Lnet/minecraft/world/gen/trunk/LargeOakTrunkPlacer;getLogAxis(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/Direction$Axis;
 
- 
isHighEnoughprivate boolean isHighEnough(int treeHeight, int height) - Mappings:
- Namespace - Name - Mixin selector - official - a- Ldpr;a(II)Z- intermediary - method_27391- Lnet/minecraft/class_5212;method_27391(II)Z- named - isHighEnough- Lnet/minecraft/world/gen/trunk/LargeOakTrunkPlacer;isHighEnough(II)Z
 
- 
makeBranchesprivate void makeBranches(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, int treeHeight, BlockPos startPos, List<LargeOakTrunkPlacer.BranchPosition> branchPositions, TreeFeatureConfig config) - Mappings:
- Namespace - Name - Mixin selector - official - a- Ldpr;a(Lcms;Ljava/util/function/BiConsumer;Lapf;ILgu;Ljava/util/List;Ldno;)V- intermediary - method_27392- Lnet/minecraft/class_5212;method_27392(Lnet/minecraft/class_3746;Ljava/util/function/BiConsumer;Lnet/minecraft/class_5819;ILnet/minecraft/class_2338;Ljava/util/List;Lnet/minecraft/class_4643;)V- named - makeBranches- Lnet/minecraft/world/gen/trunk/LargeOakTrunkPlacer;makeBranches(Lnet/minecraft/world/TestableWorld;Ljava/util/function/BiConsumer;Lnet/minecraft/util/math/random/Random;ILnet/minecraft/util/math/BlockPos;Ljava/util/List;Lnet/minecraft/world/gen/feature/TreeFeatureConfig;)V
 
- 
shouldGenerateBranchprivate static float shouldGenerateBranch(int treeHeight, int height) If the returned value is greater than or equal to 0, a branch will be generated.- Mappings:
- Namespace - Name - Mixin selector - official - b- Ldpr;b(II)F- intermediary - method_27396- Lnet/minecraft/class_5212;method_27396(II)F- named - shouldGenerateBranch- Lnet/minecraft/world/gen/trunk/LargeOakTrunkPlacer;shouldGenerateBranch(II)F
 
 
-