aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/australia/biome/GenLayerBiomesAustraliaDimension.java
diff options
context:
space:
mode:
authorAlkalus <3060479+draknyte1@users.noreply.github.com>2018-07-06 23:49:27 +1000
committerAlkalus <3060479+draknyte1@users.noreply.github.com>2018-07-06 23:49:27 +1000
commit0d30becbc219fc2c86234e84dae306276dafe4c6 (patch)
tree8761781cdddb6dcc54f37a7fe66311c2e29c88c3 /src/Java/gtPlusPlus/australia/biome/GenLayerBiomesAustraliaDimension.java
parentc37b091b581a838c49a63911d2cda6324d029e10 (diff)
downloadGT5-Unofficial-0d30becbc219fc2c86234e84dae306276dafe4c6.tar.gz
GT5-Unofficial-0d30becbc219fc2c86234e84dae306276dafe4c6.tar.bz2
GT5-Unofficial-0d30becbc219fc2c86234e84dae306276dafe4c6.zip
+ Added a new Dimension, Australia.
% Stopped Custom Villagers spawning as professions that aren't custom. % Trade improvements for some Villagers. $ Fixed a bug in AutoMap mapping to internal name map.
Diffstat (limited to 'src/Java/gtPlusPlus/australia/biome/GenLayerBiomesAustraliaDimension.java')
-rw-r--r--src/Java/gtPlusPlus/australia/biome/GenLayerBiomesAustraliaDimension.java32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/Java/gtPlusPlus/australia/biome/GenLayerBiomesAustraliaDimension.java b/src/Java/gtPlusPlus/australia/biome/GenLayerBiomesAustraliaDimension.java
new file mode 100644
index 0000000000..c8ceaa3ed3
--- /dev/null
+++ b/src/Java/gtPlusPlus/australia/biome/GenLayerBiomesAustraliaDimension.java
@@ -0,0 +1,32 @@
+package gtPlusPlus.australia.biome;
+
+import net.minecraft.world.biome.BiomeGenBase;
+import net.minecraft.world.gen.layer.GenLayer;
+import net.minecraft.world.gen.layer.IntCache;
+
+public class GenLayerBiomesAustraliaDimension extends GenLayer {
+
+ protected BiomeGenBase[] allowedBiomes = { Biome_AustralianDesert.biome, Biome_AustralianDesert2.biome};
+
+ public GenLayerBiomesAustraliaDimension(long seed) {
+ super(seed);
+ }
+
+ public GenLayerBiomesAustraliaDimension(long seed, GenLayer genlayer) {
+ super(seed);
+ this.parent = genlayer;
+ }
+
+ @Override
+ public int[] getInts(int x, int z, int width, int depth) {
+ int[] dest = IntCache.getIntCache(width * depth);
+ for (int dz = 0; dz < depth; dz++) {
+ for (int dx = 0; dx < width; dx++) {
+ this.initChunkSeed(dx + x, dz + z);
+ dest[(dx + dz * width)] = this.allowedBiomes[nextInt(this.allowedBiomes.length)].biomeID;
+ }
+ }
+ return dest;
+ }
+
+} \ No newline at end of file