Class IslandGenerator

  • All Implemented Interfaces:
    Generator


    public class IslandGenerator
    extends java.lang.Object
    implements Generator
    Fenerates islands
    • Constructor Summary

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

      • IslandGenerator

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