Class TrunkPlacerMenril
java.lang.Object
net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer
org.cyclops.integrateddynamics.world.gen.trunkplacer.TrunkPlacerMenril
public class TrunkPlacerMenril
extends net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<TrunkPlacerMenril> protected final intFields inherited from class net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer
baseHeight, heightRandA, heightRandB, MAX_HEIGHT -
Constructor Summary
ConstructorsConstructorDescriptionTrunkPlacerMenril(int baseHeight, int heightRandA, int heightRandB, int heightWider) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanplaceLog(net.minecraft.world.level.WorldGenLevel world, BiConsumer<net.minecraft.core.BlockPos, net.minecraft.world.level.block.state.BlockState> callback, net.minecraft.util.RandomSource rand, net.minecraft.core.BlockPos pos, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration config, Function<net.minecraft.world.level.block.state.BlockState, net.minecraft.world.level.block.state.BlockState> transformer) List<net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageAttachment> placeTrunk(net.minecraft.world.level.WorldGenLevel world, BiConsumer<net.minecraft.core.BlockPos, net.minecraft.world.level.block.state.BlockState> callback, net.minecraft.util.RandomSource rand, int height, net.minecraft.core.BlockPos pos, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration config) protected voidsetDirtAt(net.minecraft.world.level.WorldGenLevel world, BiConsumer<net.minecraft.core.BlockPos, net.minecraft.world.level.block.state.BlockState> callback, net.minecraft.util.RandomSource rand, net.minecraft.core.BlockPos pos, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration config) protected net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacerType<?> type()Methods inherited from class net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer
getBaseHeight, getTreeHeight, isFree, placeBelowTrunkBlock, placeLog, placeLogIfFree, trunkPlacerParts, validTreePos
-
Field Details
-
CODEC
-
heightWider
protected final int heightWider
-
-
Constructor Details
-
TrunkPlacerMenril
public TrunkPlacerMenril(int baseHeight, int heightRandA, int heightRandB, int heightWider)
-
-
Method Details
-
type
protected net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacerType<?> type()- Specified by:
typein classnet.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer
-
placeTrunk
public List<net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageAttachment> placeTrunk(net.minecraft.world.level.WorldGenLevel world, BiConsumer<net.minecraft.core.BlockPos, net.minecraft.world.level.block.state.BlockState> callback, net.minecraft.util.RandomSource rand, int height, net.minecraft.core.BlockPos pos, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration config) - Specified by:
placeTrunkin classnet.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer
-
placeLog
protected boolean placeLog(net.minecraft.world.level.WorldGenLevel world, BiConsumer<net.minecraft.core.BlockPos, net.minecraft.world.level.block.state.BlockState> callback, net.minecraft.util.RandomSource rand, net.minecraft.core.BlockPos pos, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration config, Function<net.minecraft.world.level.block.state.BlockState, net.minecraft.world.level.block.state.BlockState> transformer) - Overrides:
placeLogin classnet.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer
-
setDirtAt
protected void setDirtAt(net.minecraft.world.level.WorldGenLevel world, BiConsumer<net.minecraft.core.BlockPos, net.minecraft.world.level.block.state.BlockState> callback, net.minecraft.util.RandomSource rand, net.minecraft.core.BlockPos pos, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration config)
-