Class RoundMapleFoliagePlacer

java.lang.Object
net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
net.frozenblock.wilderwild.worldgen.impl.foliage.RoundMapleFoliagePlacer

public class RoundMapleFoliagePlacer 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<RoundMapleFoliagePlacer>
     

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

    offset, radius
  • Constructor Summary

    Constructors
    Constructor
    Description
    RoundMapleFoliagePlacer(net.minecraft.util.valueproviders.IntProvider radius, net.minecraft.util.valueproviders.IntProvider offset, net.minecraft.util.valueproviders.IntProvider foliageHeight)
     
  • 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, @NotNull 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(net.minecraft.util.RandomSource random, int trunkHeight, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration config)
     
    protected void
    placeLeavesInCircle(net.minecraft.world.level.LevelSimulatedReader world, net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageSetter placer, @NotNull net.minecraft.util.RandomSource random, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration config, net.minecraft.core.BlockPos centerPos, int providedRadius, int y, boolean giantTrunk, int totalHeight, int currentHeight, int trunkHeight)
     
    protected boolean
    shouldSkipLocation(net.minecraft.util.RandomSource random, int dx, int y, int dz, int radius, boolean giantTrunk)
     
    protected boolean
    shouldSkipMapleLocation(double xDistance, double zDistance, double radius, int totalHeight, int currentHeight, int trunkHeight)
     
    protected boolean
    shouldSkipMapleLocationSigned(double dx, double dz, double radius, boolean giantTrunk, int totalHeight, int currentHeight, int trunkHeight)
     
    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

    • RoundMapleFoliagePlacer

      public RoundMapleFoliagePlacer(net.minecraft.util.valueproviders.IntProvider radius, net.minecraft.util.valueproviders.IntProvider offset, net.minecraft.util.valueproviders.IntProvider foliageHeight)
  • 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(net.minecraft.world.level.LevelSimulatedReader world, net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageSetter placer, @NotNull @NotNull net.minecraft.util.RandomSource random, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration config, int trunkHeight, @NotNull @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
    • placeLeavesInCircle

      protected void placeLeavesInCircle(net.minecraft.world.level.LevelSimulatedReader world, net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageSetter placer, @NotNull @NotNull net.minecraft.util.RandomSource random, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration config, net.minecraft.core.BlockPos centerPos, int providedRadius, int y, boolean giantTrunk, int totalHeight, int currentHeight, int trunkHeight)
    • shouldSkipMapleLocationSigned

      protected boolean shouldSkipMapleLocationSigned(double dx, double dz, double radius, boolean giantTrunk, int totalHeight, int currentHeight, int trunkHeight)
    • shouldSkipMapleLocation

      protected boolean shouldSkipMapleLocation(double xDistance, double zDistance, double radius, int totalHeight, int currentHeight, int trunkHeight)
    • foliageHeight

      public int foliageHeight(net.minecraft.util.RandomSource random, int trunkHeight, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration config)
      Specified by:
      foliageHeight in class net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
    • shouldSkipLocation

      protected boolean shouldSkipLocation(net.minecraft.util.RandomSource random, int dx, int y, int dz, int radius, boolean giantTrunk)
      Specified by:
      shouldSkipLocation in class net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer