Class BiomeDecorator

java.lang.Object
net.minecraft.src.BiomeDecorator
All Implemented Interfaces:
BiomeDecoratorBase
Direct Known Subclasses:
BiomeEndDecorator

public class BiomeDecorator extends Object implements BiomeDecoratorBase
  • Field Details

    • currentWorld

      protected World currentWorld
      The world the BiomeDecorator is currently decorating
    • randomGenerator

      protected Random randomGenerator
      The Biome Decorator's random number generator.
    • chunk_X

      protected int chunk_X
      The X-coordinate of the chunk currently being decorated
    • chunk_Z

      protected int chunk_Z
      The Z-coordinate of the chunk currently being decorated
    • biome

      protected BiomeGenBase biome
      The biome generator object.
    • clayGen

      protected WorldGenerator clayGen
      The clay generator.
    • sandGen

      protected WorldGenerator sandGen
      The sand generator.
    • gravelAsSandGen

      protected WorldGenerator gravelAsSandGen
      The gravel generator.
    • dirtGen

      protected WorldGenerator dirtGen
      The dirt generator.
    • gravelGen

      protected WorldGenerator gravelGen
    • coalGen

      protected WorldGenerator coalGen
    • ironGen

      protected WorldGenerator ironGen
    • goldGen

      protected WorldGenerator goldGen
      Field that holds gold WorldGenMinable
    • redstoneGen

      protected WorldGenerator redstoneGen
      Field that holds redstone WorldGenMinable
    • diamondGen

      protected WorldGenerator diamondGen
      Field that holds diamond WorldGenMinable
    • diamondGenAirExposed

      protected WorldGenerator diamondGenAirExposed
    • lapisGen

      protected WorldGenerator lapisGen
      Field that holds Lapis WorldGenMinable
    • plantYellowGen

      protected WorldGenerator plantYellowGen
      Field that holds one of the plantYellow WorldGenFlowers
    • plantRedGen

      protected WorldGenerator plantRedGen
      Field that holds one of the plantRed WorldGenFlowers
    • mushroomBrownGen

      protected WorldGenerator mushroomBrownGen
      Field that holds mushroomBrown WorldGenFlowers
    • mushroomRedGen

      protected WorldGenerator mushroomRedGen
      Field that holds mushroomRed WorldGenFlowers
    • bigMushroomGen

      protected WorldGenerator bigMushroomGen
      Field that holds big mushroom generator
    • reedGen

      public WorldGenerator reedGen
      Field that holds WorldGenReed
    • cactusGen

      protected WorldGenerator cactusGen
      Field that holds WorldGenCactus
    • waterlilyGen

      protected WorldGenerator waterlilyGen
      The water lily generation!
    • waterlilyPerChunk

      protected int waterlilyPerChunk
      Amount of waterlilys per chunk.
    • treesPerChunk

      protected int treesPerChunk
      The number of trees to attempt to generate per chunk. Up to 10 in forests, none in deserts.
    • flowersPerChunk

      protected int flowersPerChunk
      The number of yellow flower patches to generate per chunk. The game generates much less than this number, since it attempts to generate them at a random altitude.
    • grassPerChunk

      protected int grassPerChunk
      The amount of tall grass to generate per chunk.
    • deadBushPerChunk

      protected int deadBushPerChunk
      The number of dead bushes to generate per chunk. Used in deserts and swamps.
    • mushroomsPerChunk

      protected int mushroomsPerChunk
      The number of extra mushroom patches per chunk. It generates 1/4 this number in brown mushroom patches, and 1/8 this number in red mushroom patches. These mushrooms go beyond the default base number of mushrooms.
    • reedsPerChunk

      protected int reedsPerChunk
      The number of reeds to generate per chunk. Reeds won't generate if the randomly selected placement is unsuitable.
    • cactiPerChunk

      protected int cactiPerChunk
      The number of cactus plants to generate per chunk. Cacti only work on sand.
    • sandPerChunk

      protected int sandPerChunk
      The number of sand patches to generate per chunk. Sand patches only generate when part of it is underwater.
    • sandPerChunk2

      protected int sandPerChunk2
      The number of sand patches to generate per chunk. Sand patches only generate when part of it is underwater. There appear to be two separate fields for this.
    • clayPerChunk

      protected int clayPerChunk
      The number of clay patches to generate per chunk. Only generates when part of it is underwater.
    • bigMushroomsPerChunk

      protected int bigMushroomsPerChunk
      Amount of big mushrooms per chunk
    • generateLakes

      public boolean generateLakes
      True if decorator should generate surface lava and water
  • Constructor Details

    • BiomeDecorator

      public BiomeDecorator(BiomeGenBase par1BiomeGenBase)
  • Method Details

    • decorate

      public void decorate(World par1World, Random par2Random, int par3, int par4)
      Decorates the world. Calls code that was formerly (pre-1.8) in ChunkProviderGenerate.populate
      Specified by:
      decorate in interface BiomeDecoratorBase
    • decorate

      protected void decorate()
      The method that does the work of actually decorating chunks
    • genStandardOre1

      protected void genStandardOre1(int par1, WorldGenerator par2WorldGenerator, int par3, int par4)
      Standard ore generation helper. Generates most ores.
    • genStandardOre2

      protected void genStandardOre2(int par1, WorldGenerator par2WorldGenerator, int par3, int par4)
      Standard ore generation helper. Generates Lapis Lazuli.
    • genModdedOre

      protected void genModdedOre(int count, WorldGenerator worldGenerator, int minHeight, int maxHeight)
    • generateOres

      protected void generateOres()
      Generates ores in the current chunk