Class AirGenerator

  • All Implemented Interfaces:
    Generator


    public class AirGenerator
    extends java.lang.Object
    implements Generator
    A simple generator who returns only air.
    See Also:
    FullMapGenerator
    • Constructor Summary

      Constructors 
      Constructor Description
      AirGenerator​()  
    • 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

      • AirGenerator

        public AirGenerator​()
    • 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