Class ArgyreSaplingTrunkPlacer
java.lang.Object
net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer
com.lightning.northstar.world.features.trunkplacers.ArgyreSaplingTrunkPlacer
public class ArgyreSaplingTrunkPlacer
extends net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<ArgyreSaplingTrunkPlacer> Fields inherited from class net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer
baseHeight, heightRandA, heightRandB, MAX_HEIGHT -
Constructor Summary
ConstructorsConstructorDescriptionArgyreSaplingTrunkPlacer(int baseHeight, int heightRandA, int heightRandB, net.minecraft.util.valueproviders.IntProvider extraBranchSteps, float placeBranchPerLogProbability, net.minecraft.util.valueproviders.IntProvider extraBranchLength, net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block> canGrowThrough, net.minecraft.util.valueproviders.IntProvider spinFactor) -
Method Summary
Modifier and TypeMethodDescriptionList<net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageAttachment> placeBranch(net.minecraft.world.level.LevelSimulatedReader pLevel, BiConsumer<net.minecraft.core.BlockPos, net.minecraft.world.level.block.state.BlockState> pBlockSetter, net.minecraft.util.RandomSource pRandom, int pFreeTreeHeight, net.minecraft.core.BlockPos pPos, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration treeconfiguration, int oldspinX, int oldspinZ) protected booleanplaceLog(net.minecraft.world.level.LevelSimulatedReader pLevel, BiConsumer<net.minecraft.core.BlockPos, net.minecraft.world.level.block.state.BlockState> pBlockSetter, net.minecraft.util.RandomSource pRandom, net.minecraft.core.BlockPos pPos, AlienTreeConfig treeconfiguration) protected booleanplaceLog(net.minecraft.world.level.LevelSimulatedReader pLevel, BiConsumer<net.minecraft.core.BlockPos, net.minecraft.world.level.block.state.BlockState> pBlockSetter, net.minecraft.util.RandomSource pRandom, net.minecraft.core.BlockPos pPos, AlienTreeConfig treeconfiguration, Function<Object, Object> function) List<net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageAttachment> placeTrunk(net.minecraft.world.level.LevelSimulatedReader pLevel, BiConsumer<net.minecraft.core.BlockPos, net.minecraft.world.level.block.state.BlockState> pBlockSetter, net.minecraft.util.RandomSource pRandom, int pFreeTreeHeight, net.minecraft.core.BlockPos pPos, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration treeconfiguration) protected net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacerType<?> type()protected booleanvalidTreePos(net.minecraft.world.level.LevelSimulatedReader pLevel, net.minecraft.core.BlockPos pPos) Methods inherited from class net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer
getTreeHeight, isFree, placeLog, placeLog, placeLogIfFree, setDirtAt, trunkPlacerParts
-
Field Details
-
CODEC
-
-
Constructor Details
-
ArgyreSaplingTrunkPlacer
public ArgyreSaplingTrunkPlacer(int baseHeight, int heightRandA, int heightRandB, net.minecraft.util.valueproviders.IntProvider extraBranchSteps, float placeBranchPerLogProbability, net.minecraft.util.valueproviders.IntProvider extraBranchLength, net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block> canGrowThrough, net.minecraft.util.valueproviders.IntProvider spinFactor)
-
-
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 pLevel, BiConsumer<net.minecraft.core.BlockPos, net.minecraft.world.level.block.state.BlockState> pBlockSetter, net.minecraft.util.RandomSource pRandom, int pFreeTreeHeight, net.minecraft.core.BlockPos pPos, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration treeconfiguration) - Specified by:
placeTrunkin classnet.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer
-
placeBranch
public List<net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageAttachment> placeBranch(net.minecraft.world.level.LevelSimulatedReader pLevel, BiConsumer<net.minecraft.core.BlockPos, net.minecraft.world.level.block.state.BlockState> pBlockSetter, net.minecraft.util.RandomSource pRandom, int pFreeTreeHeight, net.minecraft.core.BlockPos pPos, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration treeconfiguration, int oldspinX, int oldspinZ) -
placeLog
protected boolean placeLog(net.minecraft.world.level.LevelSimulatedReader pLevel, BiConsumer<net.minecraft.core.BlockPos, net.minecraft.world.level.block.state.BlockState> pBlockSetter, net.minecraft.util.RandomSource pRandom, net.minecraft.core.BlockPos pPos, AlienTreeConfig treeconfiguration) -
placeLog
protected boolean placeLog(net.minecraft.world.level.LevelSimulatedReader pLevel, BiConsumer<net.minecraft.core.BlockPos, net.minecraft.world.level.block.state.BlockState> pBlockSetter, net.minecraft.util.RandomSource pRandom, net.minecraft.core.BlockPos pPos, AlienTreeConfig treeconfiguration, Function<Object, Object> function) -
validTreePos
protected boolean validTreePos(net.minecraft.world.level.LevelSimulatedReader pLevel, net.minecraft.core.BlockPos pPos) - Overrides:
validTreePosin classnet.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer
-