Class CoilerFoliagePlacer

java.lang.Object
net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
com.lightning.northstar.world.features.foliageplacers.CoilerFoliagePlacer

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

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

    offset, radius
  • Constructor Summary

    Constructors
    Constructor
    Description
    CoilerFoliagePlacer(net.minecraft.util.valueproviders.IntProvider int1, net.minecraft.util.valueproviders.IntProvider int2)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    createFoliage(net.minecraft.world.level.LevelSimulatedReader level, net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageSetter blocksetter, net.minecraft.util.RandomSource pRandom, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration pConfig, int int1, net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageAttachment foliage, int int2, int int3, int int4)
     
    int
    foliageHeight(net.minecraft.util.RandomSource pRandom, int p_225496_, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration p_225497_)
     
    protected boolean
    shouldSkipLocation(net.minecraft.util.RandomSource pRandom, int p_225489_, int p_225490_, int p_225491_, int p_225492_, boolean p_225493_)
    Skips certain positions based on the provided shape, such as rounding corners randomly.
    protected 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

    • CoilerFoliagePlacer

      public CoilerFoliagePlacer(net.minecraft.util.valueproviders.IntProvider int1, net.minecraft.util.valueproviders.IntProvider int2)
  • Method Details

    • type

      protected 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 level, net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageSetter blocksetter, net.minecraft.util.RandomSource pRandom, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration pConfig, int int1, net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageAttachment foliage, int int2, int int3, int int4)
      Specified by:
      createFoliage in class net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
    • foliageHeight

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

      protected boolean shouldSkipLocation(net.minecraft.util.RandomSource pRandom, int p_225489_, int p_225490_, int p_225491_, int p_225492_, boolean p_225493_)
      Skips certain positions based on the provided shape, such as rounding corners randomly. The coordinates are passed in as absolute value, and should be within [0, range].
      Specified by:
      shouldSkipLocation in class net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer