Package net.minecraft.world.gen.trunk
Class StraightTrunkPlacer
java.lang.Object
net.minecraft.world.gen.trunk.TrunkPlacer
net.minecraft.world.gen.trunk.StraightTrunkPlacer
public class StraightTrunkPlacer extends TrunkPlacer
- Mappings:
Namespace Name official cunintermediary net/minecraft/class_5140named net/minecraft/world/gen/trunk/StraightTrunkPlacer
-
Field Summary
Fields Modifier and Type Field Description static com.mojang.serialization.Codec<StraightTrunkPlacer>CODECFields inherited from class net.minecraft.world.gen.trunk.TrunkPlacer
baseHeight, firstRandomHeight, secondRandomHeight -
Constructor Summary
Constructors Constructor Description StraightTrunkPlacer(int baseHeight, int firstRandomHeight, int secondRandomHeight) -
Method Summary
Modifier and Type Method Description List<FoliagePlacer.TreeNode>generate(ModifiableTestableWorld world, Random random, int trunkHeight, BlockPos pos, Set<BlockPos> placedStates, BlockBox box, TreeFeatureConfig config)Generates the trunk blocks and return a list of tree nodes to place foliage aroundprotected TrunkPlacerType<?>getType()Methods inherited from class net.minecraft.world.gen.trunk.TrunkPlacer
getAndSetState, getHeight, method_28904, setBlockState, setToDirt, trySetState
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector official aLcun;a:Lcom/mojang/serialization/Codec;intermediary field_24971Lnet/minecraft/class_5140;field_24971:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/world/gen/trunk/StraightTrunkPlacer;CODEC:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
StraightTrunkPlacer
public StraightTrunkPlacer(int baseHeight, int firstRandomHeight, int secondRandomHeight)- Mappings:
Namespace Name Mixin selector official <init>Lcuo;<init>(III)Vintermediary <init>Lnet/minecraft/class_5141;<init>(III)Vnamed <init>Lnet/minecraft/world/gen/trunk/TrunkPlacer;<init>(III)V
-
-
Method Details
-
getType
- Specified by:
getTypein classTrunkPlacer- Mappings:
Namespace Name Mixin selector official aLcuo;a()Lcup;intermediary method_28903Lnet/minecraft/class_5141;method_28903()Lnet/minecraft/class_5142;named getTypeLnet/minecraft/world/gen/trunk/TrunkPlacer;getType()Lnet/minecraft/world/gen/trunk/TrunkPlacerType;
-
generate
public List<FoliagePlacer.TreeNode> generate(ModifiableTestableWorld world, Random random, int trunkHeight, BlockPos pos, Set<BlockPos> placedStates, BlockBox box, 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 official aLcuo;a(Lbua;Ljava/util/Random;ILfx;Ljava/util/Set;Lcwn;Lcsn;)Ljava/util/List;intermediary method_26991Lnet/minecraft/class_5141;method_26991(Lnet/minecraft/class_3747;Ljava/util/Random;ILnet/minecraft/class_2338;Ljava/util/Set;Lnet/minecraft/class_3341;Lnet/minecraft/class_4643;)Ljava/util/List;named generateLnet/minecraft/world/gen/trunk/TrunkPlacer;generate(Lnet/minecraft/world/ModifiableTestableWorld;Ljava/util/Random;ILnet/minecraft/util/math/BlockPos;Ljava/util/Set;Lnet/minecraft/util/math/BlockBox;Lnet/minecraft/world/gen/feature/TreeFeatureConfig;)Ljava/util/List;
-