API Surface (1)
int[] getInts(int areaX, int areaY, int areaWidth, int areaHeight)
Code Graph: Dependencies (2)
Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.
Full Source
| 1 | package net.minecraft.world.gen.layer;
|
| 2 |
|
| 3 | public class GenLayerIsland extends GenLayer
|
| 4 | {
|
| 5 | public GenLayerIsland(long p_i2124_1_)
|
| 6 | {
|
| 7 | super(p_i2124_1_);
|
| 8 | }
|
| 9 |
|
| 10 | /**
|
| 11 | * Returns a list of integer values generated by this layer. These may be interpreted as temperatures, rainfall
|
| 12 | * amounts, or biomeList[] indices based on the particular GenLayer subclass.
|
| 13 | */
|
| 14 | public int[] getInts(int areaX, int areaY, int areaWidth, int areaHeight)
|
| 15 | {
|
| 16 | int[] aint = IntCache.getIntCache(areaWidth * areaHeight);
|
| 17 |
|
| 18 | for (int i = 0; i < areaHeight; ++i)
|
| 19 | {
|
| 20 | for (int j = 0; j < areaWidth; ++j)
|
| 21 | {
|
| 22 | this.initChunkSeed((long)(areaX + j), (long)(areaY + i));
|
| 23 | aint[j + i * areaWidth] = this.nextInt(10) == 0 ? 1 : 0;
|
| 24 | }
|
| 25 | }
|
| 26 |
|
| 27 | if (areaX > -areaWidth && areaX <= 0 && areaY > -areaHeight && areaY <= 0)
|
| 28 | {
|
| 29 | aint[-areaX + -areaY * areaWidth] = 1;
|
| 30 | }
|
| 31 |
|
| 32 | return aint;
|
| 33 | }
|
| 34 | }
|
| 35 |
|
Deobfuscated MCP 1.8.9 source of GenLayerIsland from Marcelektro/MavenMCP-1.8.9 (net/minecraft/world/gen/layer/GenLayerIsland.java), stored verbatim.