Class FeatureMushroomBrown

All Implemented Interfaces:
Predicate<org.cloudburstmc.api.block.BlockState>, WorldFeature, BlockFilter
Direct Known Subclasses:
FeatureMushroomRed

public class FeatureMushroomBrown extends FeatureAbstractTree
Generates a huge brown mushroom.
Author:
DaPorkchop_
  • Field Summary

    Fields inherited from class org.cloudburstmc.server.level.feature.tree.FeatureAbstractTree

    height, leaves, log

    Fields inherited from interface org.cloudburstmc.server.level.generator.standard.misc.filter.BlockFilter

    AIR, REPLACEABLE
  • Constructor Summary

    Constructors
    Constructor
    Description
    FeatureMushroomBrown​(@NonNull IntRange height)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
    canPlace​(org.cloudburstmc.api.level.ChunkManager level, net.daporkchop.lib.random.PRandom random, int x, int y, int z, int height)
     
    protected int
    chooseHeight​(org.cloudburstmc.api.level.ChunkManager level, net.daporkchop.lib.random.PRandom random, int x, int y, int z)
     
    protected void
    finish​(org.cloudburstmc.api.level.ChunkManager level, net.daporkchop.lib.random.PRandom random, int x, int y, int z, int height, org.cloudburstmc.api.block.BlockState log, org.cloudburstmc.api.block.BlockState leaves)
     
    protected void
    placeLeaves​(org.cloudburstmc.api.level.ChunkManager level, net.daporkchop.lib.random.PRandom random, int x, int y, int z, int height, org.cloudburstmc.api.block.BlockState log, org.cloudburstmc.api.block.BlockState leaves)
     
    protected void
    placeTrunk​(org.cloudburstmc.api.level.ChunkManager level, net.daporkchop.lib.random.PRandom random, int x, int y, int z, int height, org.cloudburstmc.api.block.BlockState log, org.cloudburstmc.api.block.BlockState leaves)
     
    protected org.cloudburstmc.api.block.BlockState
    selectLeaves​(org.cloudburstmc.api.level.ChunkManager level, net.daporkchop.lib.random.PRandom random, int x, int y, int z, int height)
     
    protected org.cloudburstmc.api.block.BlockState
    selectLog​(org.cloudburstmc.api.level.ChunkManager level, net.daporkchop.lib.random.PRandom random, int x, int y, int z, int height)
     

    Methods inherited from class org.cloudburstmc.server.level.feature.tree.FeatureAbstractTree

    place

    Methods inherited from class org.cloudburstmc.server.level.feature.ReplacingWorldFeature

    allNeighborsMatch, allNeighborsMatch, replaceGrassWithDirt, test, testOrLiquid, testOrLiquid

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.util.function.Predicate

    and, negate, or
  • Constructor Details

    • FeatureMushroomBrown

      public FeatureMushroomBrown(@NonNull @NonNull IntRange height)
  • Method Details

    • chooseHeight

      protected int chooseHeight(org.cloudburstmc.api.level.ChunkManager level, net.daporkchop.lib.random.PRandom random, int x, int y, int z)
      Overrides:
      chooseHeight in class FeatureAbstractTree
    • canPlace

      protected boolean canPlace(org.cloudburstmc.api.level.ChunkManager level, net.daporkchop.lib.random.PRandom random, int x, int y, int z, int height)
      Specified by:
      canPlace in class FeatureAbstractTree
    • selectLog

      protected org.cloudburstmc.api.block.BlockState selectLog(org.cloudburstmc.api.level.ChunkManager level, net.daporkchop.lib.random.PRandom random, int x, int y, int z, int height)
      Overrides:
      selectLog in class FeatureAbstractTree
    • selectLeaves

      protected org.cloudburstmc.api.block.BlockState selectLeaves(org.cloudburstmc.api.level.ChunkManager level, net.daporkchop.lib.random.PRandom random, int x, int y, int z, int height)
      Overrides:
      selectLeaves in class FeatureAbstractTree
    • placeLeaves

      protected void placeLeaves(org.cloudburstmc.api.level.ChunkManager level, net.daporkchop.lib.random.PRandom random, int x, int y, int z, int height, org.cloudburstmc.api.block.BlockState log, org.cloudburstmc.api.block.BlockState leaves)
      Specified by:
      placeLeaves in class FeatureAbstractTree
    • placeTrunk

      protected void placeTrunk(org.cloudburstmc.api.level.ChunkManager level, net.daporkchop.lib.random.PRandom random, int x, int y, int z, int height, org.cloudburstmc.api.block.BlockState log, org.cloudburstmc.api.block.BlockState leaves)
      Specified by:
      placeTrunk in class FeatureAbstractTree
    • finish

      protected void finish(org.cloudburstmc.api.level.ChunkManager level, net.daporkchop.lib.random.PRandom random, int x, int y, int z, int height, org.cloudburstmc.api.block.BlockState log, org.cloudburstmc.api.block.BlockState leaves)
      Specified by:
      finish in class FeatureAbstractTree