Class MagicFoliagePlacer
java.lang.Object
net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
de.teamlapen.werewolves.world.gen.feature.MagicFoliagePlacer
public class MagicFoliagePlacer
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
FieldsFields inherited from class net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
offset, radius -
Constructor Summary
ConstructorsConstructorDescriptionMagicFoliagePlacer(net.minecraft.util.valueproviders.IntProvider pRadius, net.minecraft.util.valueproviders.IntProvider pOffset) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateFoliage(@NotNull net.minecraft.world.level.LevelSimulatedReader pLevel, @NotNull net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageSetter pBlockSetter, @NotNull net.minecraft.util.RandomSource pRandom, @NotNull net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration pConfig, int pMaxFreeTreeHeight, @NotNull net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageAttachment pAttachment, int pFoliageHeight, int pFoliageRadius, int pOffset) intfoliageHeight(@NotNull net.minecraft.util.RandomSource pRandom, int pHeight, @NotNull net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration pConfig) protected booleanshouldSkipLocation(@NotNull net.minecraft.util.RandomSource pRandom, int pLocalX, int pLocalY, int pLocalZ, int pRange, boolean pLarge) protected @NotNull 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
-
-
Constructor Details
-
MagicFoliagePlacer
public MagicFoliagePlacer(net.minecraft.util.valueproviders.IntProvider pRadius, net.minecraft.util.valueproviders.IntProvider pOffset)
-
-
Method Details
-
type
@NotNull protected @NotNull net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacerType<?> type()- Specified by:
typein classnet.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
-
createFoliage
protected void createFoliage(@NotNull @NotNull net.minecraft.world.level.LevelSimulatedReader pLevel, @NotNull @NotNull net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageSetter pBlockSetter, @NotNull @NotNull net.minecraft.util.RandomSource pRandom, @NotNull @NotNull net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration pConfig, int pMaxFreeTreeHeight, @NotNull @NotNull net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageAttachment pAttachment, int pFoliageHeight, int pFoliageRadius, int pOffset) - Specified by:
createFoliagein classnet.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
-
foliageHeight
public int foliageHeight(@NotNull @NotNull net.minecraft.util.RandomSource pRandom, int pHeight, @NotNull @NotNull net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration pConfig) - Specified by:
foliageHeightin classnet.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
-
shouldSkipLocation
protected boolean shouldSkipLocation(@NotNull @NotNull net.minecraft.util.RandomSource pRandom, int pLocalX, int pLocalY, int pLocalZ, int pRange, boolean pLarge) - Specified by:
shouldSkipLocationin classnet.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
-