Class AbstractComplexTreeFoliagePlacer

java.lang.Object
net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
com.pixelmonmod.pixelmon.world.generation.features.tree.berry.foliage.AbstractComplexTreeFoliagePlacer
Direct Known Subclasses:
LanakilaTypeFFoliagePlacer

public abstract class AbstractComplexTreeFoliagePlacer 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 inherited from class net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer

    CODEC, offset, radius
  • Constructor Summary

    Constructors
    Constructor
    Description
    AbstractComplexTreeFoliagePlacer(net.minecraftforge.registries.RegistryObject<net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacerType<?>> foliagePlacerType, int foliageHeight, List<Integer> fullRows, com.mojang.datafixers.util.Pair<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState>... foliagePositions)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    createFoliage(net.minecraft.world.level.LevelSimulatedReader worldGenReader, net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageSetter setter, net.minecraft.util.RandomSource random, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration config, int unknown, net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageAttachment foliage, int foliageHeight, int radius, int treeTopHeight)
     
    int
    foliageHeight(net.minecraft.util.RandomSource p_230374_1_, int p_230374_2_, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration p_230374_3_)
     
    protected boolean
    shouldSkipLocation(net.minecraft.util.RandomSource random, int x, int y, int z, int radius, boolean doubleTrunk)
     
    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
  • Constructor Details

    • AbstractComplexTreeFoliagePlacer

      public AbstractComplexTreeFoliagePlacer(net.minecraftforge.registries.RegistryObject<net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacerType<?>> foliagePlacerType, int foliageHeight, List<Integer> fullRows, com.mojang.datafixers.util.Pair<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState>... foliagePositions)
  • 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 worldGenReader, net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageSetter setter, net.minecraft.util.RandomSource random, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration config, int unknown, net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageAttachment foliage, int foliageHeight, int radius, int treeTopHeight)
      Specified by:
      createFoliage in class net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
    • foliageHeight

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

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