java.lang.Object
org.cloudburstmc.server.level.generator.standard.finish.IceSnowFinisher
All Implemented Interfaces:
Finisher, GenerationPass

public class IceSnowFinisher extends Object implements Finisher
Author:
DaPorkchop_
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected IntRange
     
    static org.cloudburstmc.api.util.Identifier
     

    Fields inherited from interface org.cloudburstmc.server.level.generator.standard.finish.Finisher

    EMPTY_ARRAY
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    finish​(net.daporkchop.lib.random.PRandom random, org.cloudburstmc.api.level.ChunkManager level, int blockX, int blockZ)
    Finishes a given chunk.
    org.cloudburstmc.api.util.Identifier
     
    void
    init​(long levelSeed, long localSeed, StandardGenerator generator)
    Prepares this instance for actual generation.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • ID

      public static final org.cloudburstmc.api.util.Identifier ID
    • height

      protected IntRange height
  • Constructor Details

    • IceSnowFinisher

      public IceSnowFinisher()
  • Method Details

    • init

      public void init(long levelSeed, long localSeed, StandardGenerator generator)
      Description copied from interface: GenerationPass
      Prepares this instance for actual generation.
      Specified by:
      init in interface GenerationPass
      Parameters:
      levelSeed - the level seed, as defined in cloudburst.yml
      localSeed - a seed defined specifically for this generation pass
      generator - the instance of StandardGenerator that this generation pass will be used by
    • finish

      public void finish(net.daporkchop.lib.random.PRandom random, org.cloudburstmc.api.level.ChunkManager level, int blockX, int blockZ)
      Description copied from interface: Finisher
      Finishes a given chunk.
      Specified by:
      finish in interface Finisher
      Parameters:
      random - an instance of PRandom for generating random numbers, initialized with a seed based on chunk's position
      level - a ChunkManager containing only a 3x3 square of populated chunks, centered around the chunk being finishes
      blockX - the X coordinate of the block column to finish
      blockZ - the Z coordinate of the block column to finish
    • getId

      public org.cloudburstmc.api.util.Identifier getId()
      Specified by:
      getId in interface Finisher
      Specified by:
      getId in interface GenerationPass
      Returns:
      the identifier of this generation pass