Package com.welcome234.pluginsystem
Class CustomGenerator
java.lang.Object
com.welcome234.pluginsystem.CustomGenerator
Represents a Custom world generator, which is extended and registered with a generator name
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionBlock[][]Deprecated.Worlds are now infinite, use generateChunk insteadBlock[][]generateChunk(Block[][] generatorData, long seed, int chunkX)Generates the custom terrain for chunksintgetX(int generatorX)Deprecated.Not needed for chunk generatorsintgetY(int generatorY)Deprecated.Not needed for chunk generators
-
Constructor Details
-
CustomGenerator
public CustomGenerator()
-
-
Method Details
-
generate
Deprecated.Worlds are now infinite, use generateChunk insteadGenerates the custom world terrainThe method must return the Blocks array, which is provided in the parameters
- Parameters:
generatorData- Blocks arrayseed- World seed- Returns:
- Modified Blocks array
-
generateChunk
Generates the custom terrain for chunksThe method must return the chunk block array, which is provided in the parameters
- Parameters:
generatorData- Chunk blocks arrayseed- World seedchunkX- Chunk X coordinate- Returns:
- Modified chunk blocks array
-
getX
Deprecated.Not needed for chunk generatorsGets the actual X-coordinate of the Block array position- Parameters:
generatorX- Blocks array position X- Returns:
- Actual world X-coordinate
-
getY
Deprecated.Not needed for chunk generatorsGets the actual Y-coordinate of the Block array position- Parameters:
generatorY- Blocks array position Y- Returns:
- Actual world Y-coordinate
-