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

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.Codec<WindmillPalmFoliagePlacer>
     

    Fields inherited from class net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer

    offset, radius
  • Constructor Summary

    Constructors
    Constructor
    Description
    WindmillPalmFoliagePlacer(@NotNull net.minecraft.util.valueproviders.IntProvider radius)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     
    int
    foliageHeight(@NotNull net.minecraft.util.RandomSource randomSource, int i, @NotNull net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration treeConfiguration)
     
    protected boolean
    shouldSkipLocation(@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<?>
     
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • 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:
      type in class net.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:
      createFoliage in class net.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:
      foliageHeight in class net.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:
      shouldSkipLocation in class net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer