Class TestSaplingTrunkPlacer
java.lang.Object
net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer
com.lightning.northstar.world.features.trunkplacers.TestSaplingTrunkPlacer
public class TestSaplingTrunkPlacer
extends net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<TestSaplingTrunkPlacer> Fields inherited from class net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer
baseHeight, heightRandA, heightRandB, MAX_HEIGHT -
Constructor Summary
ConstructorsConstructorDescriptionTestSaplingTrunkPlacer(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 TypeMethodDescriptionprotected booleanplaceBlackstone(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, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration treeconfiguration, Function<Object, Object> function, net.minecraft.core.Direction dir) 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, float bias, net.minecraft.core.Direction dir) voidplaceCap(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 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, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration treeconfiguration, Function<Object, Object> function, net.minecraft.core.Direction dir) 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, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration treeconfiguration, net.minecraft.core.Direction dir) voidplaceOre(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) List<net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageAttachment> placeSecondBranch(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 dist, float bias, net.minecraft.core.Direction dir, net.minecraft.core.Direction offshootDir) protected booleanplaceShroomlight(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, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration treeconfiguration, Function<Object, Object> function, net.minecraft.core.Direction dir) 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
-
TestSaplingTrunkPlacer
public TestSaplingTrunkPlacer(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, float bias, net.minecraft.core.Direction dir) -
placeSecondBranch
public List<net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageAttachment> placeSecondBranch(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 dist, float bias, net.minecraft.core.Direction dir, net.minecraft.core.Direction offshootDir) -
placeOre
public void placeOre(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) -
placeCap
public void placeCap(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) -
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, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration treeconfiguration, net.minecraft.core.Direction dir) -
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, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration treeconfiguration, Function<Object, Object> function, net.minecraft.core.Direction dir) -
placeBlackstone
protected boolean placeBlackstone(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, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration treeconfiguration, Function<Object, Object> function, net.minecraft.core.Direction dir) -
placeShroomlight
protected boolean placeShroomlight(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, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration treeconfiguration, Function<Object, Object> function, net.minecraft.core.Direction dir) -
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
-