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.LevelSimulatedReader p_161887_, BiConsumer<net.minecraft.core.BlockPos, net.minecraft.world.level.block.state.BlockState> p_161888_, net.minecraft.util.RandomSource p_161889_, net.minecraft.core.BlockPos p_161890_, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration p_161891_, Function<net.minecraft.world.level.block.state.BlockState, net.minecraft.world.level.block.state.BlockState> p_161892_) List<net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageAttachment> placeTrunk(net.minecraft.world.level.LevelSimulatedReader 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 net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacerType<?> type()Methods inherited from class net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer
getTreeHeight, isFree, placeLog, placeLogIfFree, setDirtAt, 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.LevelSimulatedReader 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.LevelSimulatedReader p_161887_, BiConsumer<net.minecraft.core.BlockPos, net.minecraft.world.level.block.state.BlockState> p_161888_, net.minecraft.util.RandomSource p_161889_, net.minecraft.core.BlockPos p_161890_, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration p_161891_, Function<net.minecraft.world.level.block.state.BlockState, net.minecraft.world.level.block.state.BlockState> p_161892_) - Overrides:
placeLogin classnet.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer
-