Package net.minecraft.world.gen.trunk
Class UpwardsBranchingTrunkPlacer
java.lang.Object
net.minecraft.world.gen.trunk.TrunkPlacer
net.minecraft.world.gen.trunk.UpwardsBranchingTrunkPlacer
- Mappings:
- Namespace - Name - named - net/minecraft/world/gen/trunk/UpwardsBranchingTrunkPlacer- intermediary - net/minecraft/class_7390- official - ell
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final RegistryEntryList<Block> static final com.mojang.serialization.MapCodec<UpwardsBranchingTrunkPlacer> private final IntProviderprivate final IntProviderprivate final floatFields inherited from class net.minecraft.world.gen.trunk.TrunkPlacerbaseHeight, field_31530, firstRandomHeight, secondRandomHeight, TYPE_CODEC
- 
Constructor SummaryConstructorsConstructorDescriptionUpwardsBranchingTrunkPlacer(int baseHeight, int firstRandomHeight, int secondRandomHeight, IntProvider extraBranchSteps, float placeBranchPerLogProbability, IntProvider extraBranchLength, RegistryEntryList<Block> canGrowThrough) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleancanReplace(TestableWorld world, BlockPos pos) 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 aroundprivate voidgenerateExtraBranch(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, int height, TreeFeatureConfig config, List<FoliagePlacer.TreeNode> nodes, BlockPos.Mutable pos, int yOffset, Direction direction, int length, int steps) protected TrunkPlacerType<?> getType()Methods inherited from class net.minecraft.world.gen.trunk.TrunkPlacercanReplaceOrIsLog, fillTrunkPlacerFields, getAndSetState, getAndSetState, getHeight, setToDirt, trySetState
- 
Field Details- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/world/gen/trunk/UpwardsBranchingTrunkPlacer;CODEC:Lcom/mojang/serialization/MapCodec;- intermediary - field_38793- Lnet/minecraft/class_7390;field_38793:Lcom/mojang/serialization/MapCodec;- official - a- Lell;a:Lcom/mojang/serialization/MapCodec;
 
- 
extraBranchSteps- Mappings:
- Namespace - Name - Mixin selector - named - extraBranchSteps- Lnet/minecraft/world/gen/trunk/UpwardsBranchingTrunkPlacer;extraBranchSteps:Lnet/minecraft/util/math/intprovider/IntProvider;- intermediary - field_38794- Lnet/minecraft/class_7390;field_38794:Lnet/minecraft/class_6017;- official - b- Lell;b:Lbrq;
 
- 
placeBranchPerLogProbabilityprivate final float placeBranchPerLogProbability- Mappings:
- Namespace - Name - Mixin selector - named - placeBranchPerLogProbability- Lnet/minecraft/world/gen/trunk/UpwardsBranchingTrunkPlacer;placeBranchPerLogProbability:F- intermediary - field_38795- Lnet/minecraft/class_7390;field_38795:F- official - h- Lell;h:F
 
- 
extraBranchLength- Mappings:
- Namespace - Name - Mixin selector - named - extraBranchLength- Lnet/minecraft/world/gen/trunk/UpwardsBranchingTrunkPlacer;extraBranchLength:Lnet/minecraft/util/math/intprovider/IntProvider;- intermediary - field_38796- Lnet/minecraft/class_7390;field_38796:Lnet/minecraft/class_6017;- official - i- Lell;i:Lbrq;
 
- 
canGrowThrough- Mappings:
- Namespace - Name - Mixin selector - named - canGrowThrough- Lnet/minecraft/world/gen/trunk/UpwardsBranchingTrunkPlacer;canGrowThrough:Lnet/minecraft/registry/entry/RegistryEntryList;- intermediary - field_38797- Lnet/minecraft/class_7390;field_38797:Lnet/minecraft/class_6885;- official - j- Lell;j:Ljv;
 
 
- 
- 
Constructor Details- 
UpwardsBranchingTrunkPlacerpublic UpwardsBranchingTrunkPlacer(int baseHeight, int firstRandomHeight, int secondRandomHeight, IntProvider extraBranchSteps, float placeBranchPerLogProbability, IntProvider extraBranchLength, RegistryEntryList<Block> canGrowThrough) - Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/world/gen/trunk/UpwardsBranchingTrunkPlacer;<init>(IIILnet/minecraft/util/math/intprovider/IntProvider;FLnet/minecraft/util/math/intprovider/IntProvider;Lnet/minecraft/registry/entry/RegistryEntryList;)V- intermediary - <init>- Lnet/minecraft/class_7390;<init>(IIILnet/minecraft/class_6017;FLnet/minecraft/class_6017;Lnet/minecraft/class_6885;)V- official - <init>- Lell;<init>(IIILbrq;FLbrq;Ljv;)V
 
 
- 
- 
Method Details- 
getType- Specified by:
- getTypein class- TrunkPlacer
- 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- Lelj;a()Lelk;
 
- 
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 - 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- Lelj;a(Ldgp;Ljava/util/function/BiConsumer;Lazh;ILji;Leiz;)Ljava/util/List;
 
- 
generateExtraBranchprivate void generateExtraBranch(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, int height, TreeFeatureConfig config, List<FoliagePlacer.TreeNode> nodes, BlockPos.Mutable pos, int yOffset, Direction direction, int length, int steps) - Mappings:
- Namespace - Name - Mixin selector - named - generateExtraBranch- Lnet/minecraft/world/gen/trunk/UpwardsBranchingTrunkPlacer;generateExtraBranch(Lnet/minecraft/world/TestableWorld;Ljava/util/function/BiConsumer;Lnet/minecraft/util/math/random/Random;ILnet/minecraft/world/gen/feature/TreeFeatureConfig;Ljava/util/List;Lnet/minecraft/util/math/BlockPos$Mutable;ILnet/minecraft/util/math/Direction;II)V- intermediary - method_43199- Lnet/minecraft/class_7390;method_43199(Lnet/minecraft/class_3746;Ljava/util/function/BiConsumer;Lnet/minecraft/class_5819;ILnet/minecraft/class_4643;Ljava/util/List;Lnet/minecraft/class_2338$class_2339;ILnet/minecraft/class_2350;II)V- official - a- Lell;a(Ldgp;Ljava/util/function/BiConsumer;Lazh;ILeiz;Ljava/util/List;Lji$a;ILjn;II)V
 
- 
canReplace- Overrides:
- canReplacein class- TrunkPlacer
- Mappings:
- Namespace - Name - Mixin selector - named - canReplace- Lnet/minecraft/world/gen/trunk/TrunkPlacer;canReplace(Lnet/minecraft/world/TestableWorld;Lnet/minecraft/util/math/BlockPos;)Z- intermediary - method_43196- Lnet/minecraft/class_5141;method_43196(Lnet/minecraft/class_3746;Lnet/minecraft/class_2338;)Z- official - a- Lelj;a(Ldgp;Lji;)Z
 
 
-