Class PoplarTrunkPlacer
java.lang.Object
net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer
net.minecraft.world.level.levelgen.feature.trunkplacers.PoplarTrunkPlacer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IntProviderstatic final com.mojang.serialization.MapCodec<PoplarTrunkPlacer> private final IntProviderFields inherited from class TrunkPlacer
baseHeight, heightRandA, heightRandB, MAX_HEIGHT -
Constructor Summary
ConstructorsConstructorDescriptionPoplarTrunkPlacer(int baseHeight, int heightRandA, int heightRandB, IntProvider trunkHeightAboveBranches, IntProvider branchAmount) -
Method Summary
Modifier and TypeMethodDescriptionprivate static Function<BlockState, BlockState> getSidewaysStateModifier(Direction branchDirection) placeTrunk(WorldGenLevel level, BiConsumer<BlockPos, BlockState> trunkSetter, RandomSource random, int treeHeight, BlockPos origin, TreeFeature tree) protected TrunkPlacerType<?> type()Methods inherited from class TrunkPlacer
getBaseHeight, getTreeHeight, isFree, placeBelowTrunkBlock, placeLog, placeLog, placeLogIfFree, trunkPlacerParts, validTreePos
-
Field Details
-
CODEC
-
trunkHeightAboveBranches
-
branchAmount
-
-
Constructor Details
-
PoplarTrunkPlacer
public PoplarTrunkPlacer(int baseHeight, int heightRandA, int heightRandB, IntProvider trunkHeightAboveBranches, IntProvider branchAmount)
-
-
Method Details
-
type
- Specified by:
typein classTrunkPlacer
-
placeTrunk
public List<FoliagePlacer.FoliageAttachment> placeTrunk(WorldGenLevel level, BiConsumer<BlockPos, BlockState> trunkSetter, RandomSource random, int treeHeight, BlockPos origin, TreeFeature tree) - Specified by:
placeTrunkin classTrunkPlacer
-
getSidewaysStateModifier
-
getShuffledBranchDirections
-