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

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

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

    offset, radius
  • Constructor Summary

    Constructors
    Constructor
    Description
    MagicFoliagePlacer(net.minecraft.util.valueproviders.IntProvider pRadius, net.minecraft.util.valueproviders.IntProvider pOffset)
     
  • Method Summary

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

    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

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