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
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<TrunkPlacerMenril> protected final int
Fields inherited from class net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer
baseHeight, heightRandA, heightRandB, MAX_HEIGHT
-
Constructor Summary
ConstructorDescriptionTrunkPlacerMenril
(int baseHeight, int heightRandA, int heightRandB, int heightWider) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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_) 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:
type
in 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:
placeTrunk
in 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:
placeLog
in classnet.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer
-