Class FeatureMushroomBrown
java.lang.Object
org.cloudburstmc.server.level.feature.ReplacingWorldFeature
org.cloudburstmc.server.level.feature.tree.FeatureAbstractTree
org.cloudburstmc.server.level.feature.tree.FeatureMushroomBrown
- All Implemented Interfaces:
Predicate<org.cloudburstmc.api.block.BlockState>,WorldFeature,BlockFilter
- Direct Known Subclasses:
FeatureMushroomRed
Generates a huge brown mushroom.
- Author:
- DaPorkchop_
-
Field Summary
Fields inherited from class org.cloudburstmc.server.level.feature.tree.FeatureAbstractTree
height, leaves, logFields inherited from interface org.cloudburstmc.server.level.generator.standard.misc.filter.BlockFilter
AIR, REPLACEABLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanPlace(org.cloudburstmc.api.level.ChunkManager level, net.daporkchop.lib.random.PRandom random, int x, int y, int z, int height)protected intchooseHeight(org.cloudburstmc.api.level.ChunkManager level, net.daporkchop.lib.random.PRandom random, int x, int y, int z)protected voidfinish(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 voidplaceLeaves(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 voidplaceTrunk(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.BlockStateselectLeaves(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.BlockStateselectLog(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
placeMethods inherited from class org.cloudburstmc.server.level.feature.ReplacingWorldFeature
allNeighborsMatch, allNeighborsMatch, replaceGrassWithDirt, test, testOrLiquid, testOrLiquid
-
Constructor Details
-
FeatureMushroomBrown
-
-
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:
chooseHeightin classFeatureAbstractTree
-
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:
canPlacein classFeatureAbstractTree
-
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:
selectLogin classFeatureAbstractTree
-
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:
selectLeavesin classFeatureAbstractTree
-
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:
placeLeavesin classFeatureAbstractTree
-
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:
placeTrunkin classFeatureAbstractTree
-
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:
finishin classFeatureAbstractTree
-