Class PalmFoliagePlacer
java.lang.Object
net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
net.frozenblock.wilderwild.worldgen.impl.foliage.PalmFoliagePlacer
public class PalmFoliagePlacer
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<PalmFoliagePlacer> protected final net.minecraft.util.valueproviders.IntProviderFields inherited from class net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
offset, radius -
Constructor Summary
ConstructorsConstructorDescriptionPalmFoliagePlacer(@NotNull net.minecraft.util.valueproviders.IntProvider radius, @NotNull net.minecraft.util.valueproviders.IntProvider offset, @NotNull net.minecraft.util.valueproviders.IntProvider frondLength) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateFoliage(net.minecraft.world.level.LevelSimulatedReader world, net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageSetter placer, net.minecraft.util.RandomSource random, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration config, int trunkHeight, @NotNull net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageAttachment node, int foliageHeight, int radius, int offset) intfoliageHeight(@NotNull net.minecraft.util.RandomSource randomSource, int i, @NotNull net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration treeConfiguration) protected static <P extends PalmFoliagePlacer>
@NotNull com.mojang.datafixers.Products.P3<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<P>, net.minecraft.util.valueproviders.IntProvider, net.minecraft.util.valueproviders.IntProvider, net.minecraft.util.valueproviders.IntProvider> palmCodec(@NotNull com.mojang.serialization.codecs.RecordCodecBuilder.Instance<P> instance) protected booleanshouldSkipLocation(@NotNull net.minecraft.util.RandomSource random, int localX, int localY, int localZ, int range, boolean large) 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
-
frondLength
protected final net.minecraft.util.valueproviders.IntProvider frondLength
-
-
Constructor Details
-
PalmFoliagePlacer
public PalmFoliagePlacer(@NotNull @NotNull net.minecraft.util.valueproviders.IntProvider radius, @NotNull @NotNull net.minecraft.util.valueproviders.IntProvider offset, @NotNull @NotNull net.minecraft.util.valueproviders.IntProvider frondLength)
-
-
Method Details
-
palmCodec
@Contract("_ -> new") protected static <P extends PalmFoliagePlacer> @NotNull com.mojang.datafixers.Products.P3<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<P>,net.minecraft.util.valueproviders.IntProvider, palmCodecnet.minecraft.util.valueproviders.IntProvider, net.minecraft.util.valueproviders.IntProvider> (@NotNull com.mojang.serialization.codecs.RecordCodecBuilder.Instance<P> instance) -
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(net.minecraft.world.level.LevelSimulatedReader world, net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageSetter placer, net.minecraft.util.RandomSource random, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration config, int trunkHeight, @NotNull net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageAttachment node, int foliageHeight, int radius, int offset) - Specified by:
createFoliagein classnet.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
-
foliageHeight
public int foliageHeight(@NotNull @NotNull net.minecraft.util.RandomSource randomSource, int i, @NotNull @NotNull net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration treeConfiguration) - Specified by:
foliageHeightin classnet.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
-
shouldSkipLocation
protected boolean shouldSkipLocation(@NotNull @NotNull net.minecraft.util.RandomSource random, int localX, int localY, int localZ, int range, boolean large) - Specified by:
shouldSkipLocationin classnet.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
-