Class DarkFoliagePlacer
java.lang.Object
net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
net.minheur.mhm_bitsnbobs.worldgen.tree.custom.DarkFoliagePlacer
public class DarkFoliagePlacer
extends net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageAttachment, net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageSetter -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<DarkFoliagePlacer>private final intFields inherited from class net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
offset, radius -
Constructor Summary
ConstructorsConstructorDescriptionDarkFoliagePlacer(net.minecraft.util.valueproviders.IntProvider pRadius, net.minecraft.util.valueproviders.IntProvider pOffset, int height) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateFoliage(net.minecraft.world.level.LevelSimulatedReader pLevel, net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageSetter pBlockSetter, net.minecraft.util.RandomSource pRandom, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration pConfig, int pMaxFreeHeight, net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageAttachment pAttachement, int pFoliageHeight, int pFoliageRadius, int pOffset) intfoliageHeight(net.minecraft.util.RandomSource randomSource, int i, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration treeConfiguration) protected booleanshouldSkipLocation(net.minecraft.util.RandomSource randomSource, int i, int i1, int i2, int i3, boolean b) protected net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacerType<?>type()Methods inherited from class net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
createFoliage, foliagePlacerParts, foliageRadius, placeLeavesRow, placeLeavesRowWithHangingLeavesBelow, shouldSkipLocationSigned, tryPlaceLeaf
-
Field Details
-
CODEC
-
height
private final int height
-
-
Constructor Details
-
DarkFoliagePlacer
public DarkFoliagePlacer(net.minecraft.util.valueproviders.IntProvider pRadius, net.minecraft.util.valueproviders.IntProvider pOffset, int height)
-
-
Method Details
-
type
protected net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacerType<?> type()- Specified by:
typein classnet.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
-
createFoliage
protected void createFoliage(net.minecraft.world.level.LevelSimulatedReader pLevel, net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageSetter pBlockSetter, net.minecraft.util.RandomSource pRandom, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration pConfig, int pMaxFreeHeight, net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageAttachment pAttachement, int pFoliageHeight, int pFoliageRadius, int pOffset) - Specified by:
createFoliagein classnet.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
-
foliageHeight
public int foliageHeight(net.minecraft.util.RandomSource randomSource, int i, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration treeConfiguration) - Specified by:
foliageHeightin classnet.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
-
shouldSkipLocation
protected boolean shouldSkipLocation(net.minecraft.util.RandomSource randomSource, int i, int i1, int i2, int i3, boolean b) - Specified by:
shouldSkipLocationin classnet.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
-