Class WindmillPalmFoliagePlacer
java.lang.Object
net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
net.frozenblock.wilderwild.worldgen.impl.foliage.WindmillPalmFoliagePlacer
public class WindmillPalmFoliagePlacer
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<WindmillPalmFoliagePlacer> Fields inherited from class net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
offset, radius -
Constructor Summary
ConstructorsConstructorDescriptionWindmillPalmFoliagePlacer(@NotNull net.minecraft.util.valueproviders.IntProvider radius) -
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 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()protected static <P extends WindmillPalmFoliagePlacer>
@NotNull com.mojang.datafixers.Products.P1<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<P>, net.minecraft.util.valueproviders.IntProvider> winePalmCodec(@NotNull com.mojang.serialization.codecs.RecordCodecBuilder.Instance<P> instance) Methods inherited from class net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
createFoliage, foliagePlacerParts, foliageRadius, placeLeavesRow, placeLeavesRowWithHangingLeavesBelow, shouldSkipLocationSigned, tryPlaceLeaf
-
Field Details
-
CODEC
-
-
Constructor Details
-
WindmillPalmFoliagePlacer
public WindmillPalmFoliagePlacer(@NotNull @NotNull net.minecraft.util.valueproviders.IntProvider radius)
-
-
Method Details
-
winePalmCodec
@Contract("_ -> new") protected static <P extends WindmillPalmFoliagePlacer> @NotNull com.mojang.datafixers.Products.P1<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<P>,net.minecraft.util.valueproviders.IntProvider> winePalmCodec(@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
-