Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.minecraft.src;
- import java.util.Arrays;
- import java.util.ArrayList;
- public class TundraWorld extends GeneratorBase
- {
- public TundraWorld(World world, long seed)
- {
- super(world, seed);
- }
- public String getName()
- {
- return "Tundra World";
- }
- public void initialize()
- {
- }
- public double getTemperature(int i, int j)
- {
- return 0.2F;
- }
- public double[] getTemperatures(double[] t, int i, int j, int k, int l)
- {
- Arrays.fill(t, 0, k * l, 0.2F);
- return t;
- }
- public double[] getHumidity(double[] h, int i, int j, int k, int l)
- {
- Arrays.fill(h, 0, k * l, 0.1F);
- return h;
- }
- public BiomeGenBase[] generateBiomeData(BiomeGenBase[] biomeGenBase, double[] temperature, double[] humidity, int i, int j, int k, int l)
- {
- Arrays.fill(biomeGenBase, 0, k * l, BiomeGenBase.tundra);
- return biomeGenBase;
- }
- public int[] getSpawnBlocks()
- {
- return new int[] {
- Block.snow.blockID,
- Block.blockSnow.blockID,
- Block.dirt.blockID,
- Block.stone.blockID,
- Block.grass.blockID };
- }
- public boolean useCustomBiomes() { return true; }
- public boolean useCustomSpawnBlocks() { return true; }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement