Class DarkFoliagePlacer

java.lang.Object
net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
net.minheur.mhm_bitsnbobs.worldgen.tree.custom.DarkFoliagePlacer

public class DarkFoliagePlacer 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<DarkFoliagePlacer>
     
    private final int
     

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

    offset, radius
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    protected void
    createFoliage(net.minecraft.world.level.LevelSimulatedReader pLevel, net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageSetter pBlockSetter, net.minecraft.util.RandomSource pRandom, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration pConfig, int pMaxFreeHeight, net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageAttachment pAttachement, int pFoliageHeight, int pFoliageRadius, int pOffset)
     
    int
    foliageHeight(net.minecraft.util.RandomSource randomSource, int i, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration treeConfiguration)
     
    protected boolean
    shouldSkipLocation(net.minecraft.util.RandomSource randomSource, int i, int i1, int i2, int i3, boolean b)
     
    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

    • CODEC

      public static final com.mojang.serialization.Codec<DarkFoliagePlacer> CODEC
    • height

      private final int height
  • Constructor Details

    • DarkFoliagePlacer

      public DarkFoliagePlacer(net.minecraft.util.valueproviders.IntProvider pRadius, net.minecraft.util.valueproviders.IntProvider pOffset, int height)
  • 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 pLevel, net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageSetter pBlockSetter, net.minecraft.util.RandomSource pRandom, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration pConfig, int pMaxFreeHeight, net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageAttachment pAttachement, int pFoliageHeight, int pFoliageRadius, int pOffset)
      Specified by:
      createFoliage in class net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
    • foliageHeight

      public int foliageHeight(net.minecraft.util.RandomSource randomSource, int i, 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(net.minecraft.util.RandomSource randomSource, int i, int i1, int i2, int i3, boolean b)
      Specified by:
      shouldSkipLocation in class net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer