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 named net/minecraft/world/gen/trunk/LargeOakTrunkPlacerintermediary net/minecraft/class_5212official ehh
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<LargeOakTrunkPlacer> private static final doubleprivate static final doubleprivate static final doubleprivate static final doubleFields inherited from class net.minecraft.world.gen.trunk.TrunkPlacer
baseHeight, field_31530, firstRandomHeight, secondRandomHeight, TYPE_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionLargeOakTrunkPlacer(int baseHeight, int firstRandomHeight, int secondRandomHeight) -
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 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.TrunkPlacer
canReplace, canReplaceOrIsLog, fillTrunkPlacerFields, getAndSetState, getAndSetState, getHeight, setToDirt, trySetState
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/world/gen/trunk/LargeOakTrunkPlacer;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_24967Lnet/minecraft/class_5212;field_24967:Lcom/mojang/serialization/MapCodec;official aLehh;a:Lcom/mojang/serialization/MapCodec;
-
field_31524
private static final double field_31524- See Also:
- Mappings:
Namespace Name Mixin selector named field_31524Lnet/minecraft/world/gen/trunk/LargeOakTrunkPlacer;field_31524:Dintermediary field_31524Lnet/minecraft/class_5212;field_31524:Dofficial bLehh;b:D
-
field_31525
private static final double field_31525- See Also:
- Mappings:
Namespace Name Mixin selector named field_31525Lnet/minecraft/world/gen/trunk/LargeOakTrunkPlacer;field_31525:Dintermediary field_31525Lnet/minecraft/class_5212;field_31525:Dofficial hLehh;h:D
-
field_31526
private static final double field_31526- See Also:
- Mappings:
Namespace Name Mixin selector named field_31526Lnet/minecraft/world/gen/trunk/LargeOakTrunkPlacer;field_31526:Dintermediary field_31526Lnet/minecraft/class_5212;field_31526:Dofficial iLehh;i:D
-
field_31527
private static final double field_31527- See Also:
- Mappings:
Namespace Name Mixin selector named field_31527Lnet/minecraft/world/gen/trunk/LargeOakTrunkPlacer;field_31527:Dintermediary field_31527Lnet/minecraft/class_5212;field_31527:Dofficial jLehh;j:D
-
-
Constructor Details
-
LargeOakTrunkPlacer
public LargeOakTrunkPlacer(int baseHeight, int firstRandomHeight, int secondRandomHeight) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/world/gen/trunk/TrunkPlacer;<init>(III)Vintermediary <init>Lnet/minecraft/class_5141;<init>(III)Vofficial <init>Lehm;<init>(III)V
-
-
Method Details
-
getType
- Specified by:
getTypein classTrunkPlacer- Mappings:
Namespace Name Mixin selector named getTypeLnet/minecraft/world/gen/trunk/TrunkPlacer;getType()Lnet/minecraft/world/gen/trunk/TrunkPlacerType;intermediary method_28903Lnet/minecraft/class_5141;method_28903()Lnet/minecraft/class_5142;official aLehm;a()Lehn;
-
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:
generatein classTrunkPlacer- Mappings:
Namespace Name Mixin selector named generateLnet/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_26991Lnet/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 aLehm;a(Lddc;Ljava/util/function/BiConsumer;Layw;ILjd;Lefe;)Ljava/util/List;
-
makeOrCheckBranch
private boolean makeOrCheckBranch(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos startPos, BlockPos branchPos, boolean make, TreeFeatureConfig config) - Mappings:
Namespace Name Mixin selector named makeOrCheckBranchLnet/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;)Zintermediary method_27393Lnet/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;)Zofficial aLehh;a(Lddc;Ljava/util/function/BiConsumer;Layw;Ljd;Ljd;ZLefe;)Z
-
getLongestSide
- Mappings:
Namespace Name Mixin selector named getLongestSideLnet/minecraft/world/gen/trunk/LargeOakTrunkPlacer;getLongestSide(Lnet/minecraft/util/math/BlockPos;)Iintermediary method_27394Lnet/minecraft/class_5212;method_27394(Lnet/minecraft/class_2338;)Iofficial aLehh;a(Ljd;)I
-
getLogAxis
- Mappings:
Namespace Name Mixin selector named getLogAxisLnet/minecraft/world/gen/trunk/LargeOakTrunkPlacer;getLogAxis(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/Direction$Axis;intermediary method_27395Lnet/minecraft/class_5212;method_27395(Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2350$class_2351;official aLehh;a(Ljd;Ljd;)Lji$a;
-
isHighEnough
private boolean isHighEnough(int treeHeight, int height) - Mappings:
Namespace Name Mixin selector named isHighEnoughLnet/minecraft/world/gen/trunk/LargeOakTrunkPlacer;isHighEnough(II)Zintermediary method_27391Lnet/minecraft/class_5212;method_27391(II)Zofficial aLehh;a(II)Z
-
makeBranches
private 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 named makeBranchesLnet/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;)Vintermediary method_27392Lnet/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;)Vofficial aLehh;a(Lddc;Ljava/util/function/BiConsumer;Layw;ILjd;Ljava/util/List;Lefe;)V
-
shouldGenerateBranch
private 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 named shouldGenerateBranchLnet/minecraft/world/gen/trunk/LargeOakTrunkPlacer;shouldGenerateBranch(II)Fintermediary method_27396Lnet/minecraft/class_5212;method_27396(II)Fofficial bLehh;b(II)F
-