Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.17 KB | None | 0 0
  1. package net.minecraft.src;
  2.  
  3. import java.util.Arrays;
  4. import java.util.ArrayList;
  5.  
  6. public class TundraWorld extends GeneratorBase
  7. {
  8.     public TundraWorld(World world, long seed)
  9.     {
  10.         super(world, seed);
  11.     }
  12.    
  13.     public String getName()
  14.     {
  15.         return "Tundra World";
  16.     }
  17.    
  18.     public void initialize()
  19.     {
  20.     }
  21.    
  22.     public double getTemperature(int i, int j)
  23.     {
  24.         return 0.2F;
  25.     }
  26.    
  27.     public double[] getTemperatures(double[] t, int i, int j, int k, int l)
  28.     {
  29.         Arrays.fill(t, 0, k * l, 0.2F);
  30.         return t;
  31.     }
  32.    
  33.     public double[] getHumidity(double[] h, int i, int j, int k, int l)
  34.     {
  35.         Arrays.fill(h, 0, k * l, 0.1F);    
  36.         return h;
  37.     }
  38.    
  39.     public BiomeGenBase[] generateBiomeData(BiomeGenBase[] biomeGenBase, double[] temperature, double[] humidity, int i, int j, int k, int l)
  40.     {
  41.         Arrays.fill(biomeGenBase, 0, k * l, BiomeGenBase.tundra);      
  42.         return biomeGenBase;
  43.     }
  44.    
  45.     public int[] getSpawnBlocks()
  46.     {
  47.         return new int[] {
  48.             Block.snow.blockID,
  49.             Block.blockSnow.blockID,
  50.             Block.dirt.blockID,
  51.             Block.stone.blockID,
  52.             Block.grass.blockID };
  53.     }
  54.    
  55.     public boolean useCustomBiomes() { return true; }
  56.     public boolean useCustomSpawnBlocks() { return true; }
  57. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement