Class FullMapGenerator

  • All Implemented Interfaces:
    Generator


    public class FullMapGenerator
    extends java.lang.Object
    implements Generator
    Fills the complete map with a block of a specific id.
    Since:
    1.2.38
    See Also:
    AirGenerator
    • Constructor Summary

      Constructors 
      Constructor Description
      FullMapGenerator​(byte id)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int generate​(int x, int y, int z)
      Define which block should appear at which coordinate.
      void spawnEntities​(int x, int y, int z)
      Define which entities should appear at which coordinate.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FullMapGenerator

        public FullMapGenerator​(byte id)
        Parameters:
        id -
    • Method Detail

      • generate

        public int generate​(int x,
                            int y,
                            int z)
        Description copied from interface: Generator
        Define which block should appear at which coordinate.
        Specified by:
        generate in interface Generator
        Parameters:
        x - absolute coord
        y - absolute coord
        z - absolute coord
        Returns:
        the block which belongs to the given coordinates. first byte id, second byte value, third and fourth are ignored
      • spawnEntities

        public void spawnEntities​(int x,
                                  int y,
                                  int z)
        Description copied from interface: Generator
        Define which entities should appear at which coordinate. This method should spawn them.
        Specified by:
        spawnEntities in interface Generator