Untitled diff
14 removals
686 lines
8 additions
682 lines
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3)
// Decompiler options: packimports(3)
// Source File Name: TFC_Core.java
// Source File Name: TFC_Core.java
package com.bioxx.tfc.Core;
package com.bioxx.tfc.Core;
import com.bioxx.tfc.Blocks.BlockSlab;
import com.bioxx.tfc.Blocks.BlockSlab;
import com.bioxx.tfc.Chunkdata.ChunkData;
import com.bioxx.tfc.Chunkdata.ChunkData;
import com.bioxx.tfc.Chunkdata.ChunkDataManager;
import com.bioxx.tfc.Chunkdata.ChunkDataManager;
import com.bioxx.tfc.CommonProxy;
import com.bioxx.tfc.CommonProxy;
import com.bioxx.tfc.Core.Player.BodyTempStats;
import com.bioxx.tfc.Core.Player.BodyTempStats;
import com.bioxx.tfc.Core.Player.FoodStatsTFC;
import com.bioxx.tfc.Core.Player.FoodStatsTFC;
import com.bioxx.tfc.Core.Player.InventoryPlayerTFC;
import com.bioxx.tfc.Core.Player.InventoryPlayerTFC;
import com.bioxx.tfc.Core.Player.SkillStats;
import com.bioxx.tfc.Core.Player.SkillStats;
import com.bioxx.tfc.Food.ItemFoodTFC;
import com.bioxx.tfc.Food.ItemFoodTFC;
import com.bioxx.tfc.Items.ItemBlocks.ItemTerraBlock;
import com.bioxx.tfc.Items.ItemBlocks.ItemTerraBlock;
import com.bioxx.tfc.Items.ItemOre;
import com.bioxx.tfc.Items.ItemOre;
import com.bioxx.tfc.Items.ItemTerra;
import com.bioxx.tfc.Items.ItemTerra;
import com.bioxx.tfc.TerraFirmaCraft;
import com.bioxx.tfc.TerraFirmaCraft;
import com.bioxx.tfc.TileEntities.TEMetalSheet;
import com.bioxx.tfc.TileEntities.TEMetalSheet;
import com.bioxx.tfc.TileEntities.TEPartial;
import com.bioxx.tfc.TileEntities.TEPartial;
import com.bioxx.tfc.WorldGen.TFCBiome;
import com.bioxx.tfc.WorldGen.TFCBiome;
import com.bioxx.tfc.WorldGen.WorldCacheManager;
import com.bioxx.tfc.WorldGen.WorldCacheManager;
import com.bioxx.tfc.api.Constant.Global;
import com.bioxx.tfc.api.Constant.Global;
import com.bioxx.tfc.api.Entities.IAnimal;
import com.bioxx.tfc.api.Entities.IAnimal;
import com.bioxx.tfc.api.Enums.EnumFuelMaterial;
import com.bioxx.tfc.api.Enums.EnumFuelMaterial;
import com.bioxx.tfc.api.Food;
import com.bioxx.tfc.api.Food;
import com.bioxx.tfc.api.Interfaces.IFood;
import com.bioxx.tfc.api.Interfaces.IFood;
import com.bioxx.tfc.api.*;
import com.bioxx.tfc.api.*;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.relauncher.ReflectionHelper;
import cpw.mods.fml.relauncher.ReflectionHelper;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.Side;
import java.nio.ByteBuffer;
import java.nio.ByteBuffer;
import java.util.*;
import java.util.*;
import net.minecraft.block.Block;
import net.minecraft.block.Block;
import net.minecraft.block.BlockFire;
import net.minecraft.block.BlockFire;
import net.minecraft.block.material.Material;
import net.minecraft.block.material.Material;
import net.minecraft.client.Minecraft;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.ScaledResolution;
import net.minecraft.client.gui.ScaledResolution;
import net.minecraft.client.renderer.texture.TextureManager;
import net.minecraft.client.renderer.texture.TextureManager;
import net.minecraft.entity.*;
import net.minecraft.entity.*;
import net.minecraft.entity.ai.attributes.IAttributeInstance;
import net.minecraft.entity.ai.attributes.IAttributeInstance;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.init.Blocks;
import net.minecraft.init.Blocks;
import net.minecraft.inventory.IInventory;
import net.minecraft.inventory.IInventory;
import net.minecraft.item.Item;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTTagList;
import net.minecraft.nbt.NBTTagList;
import net.minecraft.util.*;
import net.minecraft.util.*;
import net.minecraft.world.*;
import net.minecraft.world.*;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraft.world.storage.WorldInfo;
import net.minecraft.world.storage.WorldInfo;
import net.minecraftforge.common.util.ForgeDirection;
import net.minecraftforge.common.util.ForgeDirection;
import org.lwjgl.input.Keyboard;
import org.lwjgl.input.Keyboard;
import org.lwjgl.input.Mouse;
import org.lwjgl.input.Mouse;
// Referenced classes of package com.bioxx.tfc.Core:
// Referenced classes of package com.bioxx.tfc.Core:
// Recipes, TFC_Time, TFC_Climate
// Recipes, TFC_Time, TFC_Climate
public class TFC_Core
public class TFC_Core
{
{
public TFC_Core()
public TFC_Core()
{
{
}
}
public static ChunkDataManager getCDM(World world)
public static ChunkDataManager getCDM(World world)
{
{
int key = world.field_72995_K ? 0x80 | world.field_73011_w.field_76574_g : world.field_73011_w.field_76574_g;
int key = world.field_72995_K ? 0x80 | world.field_73011_w.field_76574_g : world.field_73011_w.field_76574_g;
return (ChunkDataManager)cdmMap.get(Integer.valueOf(key));
return (ChunkDataManager)cdmMap.get(Integer.valueOf(key));
}
}
public static ChunkDataManager addCDM(World world)
public static ChunkDataManager addCDM(World world)
{
{
int key = world.field_72995_K ? 0x80 | world.field_73011_w.field_76574_g : world.field_73011_w.field_76574_g;
int key = world.field_72995_K ? 0x80 | world.field_73011_w.field_76574_g : world.field_73011_w.field_76574_g;
if(!cdmMap.containsKey(Integer.valueOf(key)))
if(!cdmMap.containsKey(Integer.valueOf(key)))
return (ChunkDataManager)cdmMap.put(Integer.valueOf(key), new ChunkDataManager(world));
return (ChunkDataManager)cdmMap.put(Integer.valueOf(key), new ChunkDataManager(world));
else
else
return (ChunkDataManager)cdmMap.get(Integer.valueOf(key));
return (ChunkDataManager)cdmMap.get(Integer.valueOf(key));
}
}
public static ChunkDataManager removeCDM(World world)
public static ChunkDataManager removeCDM(World world)
{
{
int key = world.field_72995_K ? 0x80 | world.field_73011_w.field_76574_g : world.field_73011_w.field_76574_g;
int key = world.field_72995_K ? 0x80 | world.field_73011_w.field_76574_g : world.field_73011_w.field_76574_g;
return (ChunkDataManager)cdmMap.remove(Integer.valueOf(key));
return (ChunkDataManager)cdmMap.remove(Integer.valueOf(key));
}
}
public static int getMouseX()
public static int getMouseX()
{
{
ScaledResolution scaledresolution = new ScaledResolution(Minecraft.func_71410_x(), Minecraft.func_71410_x().field_71443_c, Minecraft.func_71410_x().field_71440_d);
ScaledResolution scaledresolution = new ScaledResolution(Minecraft.func_71410_x(), Minecraft.func_71410_x().field_71443_c, Minecraft.func_71410_x().field_71440_d);
int i = scaledresolution.func_78326_a();
int i = scaledresolution.func_78326_a();
int k = (Mouse.getX() * i) / Minecraft.func_71410_x().field_71443_c;
int k = (Mouse.getX() * i) / Minecraft.func_71410_x().field_71443_c;
return k;
return k;
}
}
public static int getMouseY()
public static int getMouseY()
{
{
ScaledResolution scaledresolution = new ScaledResolution(Minecraft.func_71410_x(), Minecraft.func_71410_x().field_71443_c, Minecraft.func_71410_x().field_71440_d);
ScaledResolution scaledresolution = new ScaledResolution(Minecraft.func_71410_x(), Minecraft.func_71410_x().field_71443_c, Minecraft.func_71410_x().field_71440_d);
int j = scaledresolution.func_78328_b();
int j = scaledresolution.func_78328_b();
int l = j - (Mouse.getY() * j) / Minecraft.func_71410_x().field_71440_d - 1;
int l = j - (Mouse.getY() * j) / Minecraft.func_71410_x().field_71440_d - 1;
return l;
return l;
}
}
static Boolean isBlockAboveSolid(IBlockAccess blockAccess, int i, int j, int k)
static Boolean isBlockAboveSolid(IBlockAccess blockAccess, int i, int j, int k)
{
{
if(TerraFirmaCraft.proxy.getCurrentWorld().func_147439_a(i, j + 1, k).func_149662_c())
if(TerraFirmaCraft.proxy.getCurrentWorld().func_147439_a(i, j + 1, k).func_149662_c())
return Boolean.valueOf(true);
return Boolean.valueOf(true);
else
else
return Boolean.valueOf(false);
return Boolean.valueOf(false);
}
}
public static int getExtraEquipInventorySize()
public static int getExtraEquipInventorySize()
{
{
return 1;
return 1;
}
}
public static InventoryPlayer getNewInventory(EntityPlayer player)
public static InventoryPlayer getNewInventory(EntityPlayer player)
{
{
InventoryPlayer ip = player.field_71071_by;
InventoryPlayer ip = player.field_71071_by;
NBTTagList nbt = new NBTTagList();
NBTTagList nbt = new NBTTagList();
nbt = player.field_71071_by.func_70442_a(nbt);
nbt = player.field_71071_by.func_70442_a(nbt);
ip = new InventoryPlayerTFC(player);
ip = new InventoryPlayerTFC(player);
ip.func_70443_b(nbt);
ip.func_70443_b(nbt);
return ip;
return ip;
}
}
public static ItemStack RandomGem(Random random, int rockType)
public static ItemStack RandomGem(Random random, int rockType)
{
{
ItemStack is = null;
ItemStack is = null;
if(random.nextInt(500) == 0)
if(random.nextInt(500) == 0)
{
{
ArrayList items = new ArrayList();
ArrayList items = new ArrayList();
items.add(new ItemStack(TFCItems.GemAgate, 1, 0));
items.add(new ItemStack(TFCItems.GemAgate, 1, 0));
items.add(new ItemStack(TFCItems.GemAmethyst, 1, 0));
items.add(new ItemStack(TFCItems.GemAmethyst, 1, 0));
items.add(new ItemStack(TFCItems.GemBeryl, 1, 0));
items.add(new ItemStack(TFCItems.GemBeryl, 1, 0));
items.add(new ItemStack(TFCItems.GemEmerald, 1, 0));
items.add(new ItemStack(TFCItems.GemEmerald, 1, 0));
items.add(new ItemStack(TFCItems.GemGarnet, 1, 0));
items.add(new ItemStack(TFCItems.GemGarnet, 1, 0));
items.add(new ItemStack(TFCItems.GemJade, 1, 0));
items.add(new ItemStack(TFCItems.GemJade, 1, 0));
items.add(new ItemStack(TFCItems.GemJasper, 1, 0));
items.add(new ItemStack(TFCItems.GemJasper, 1, 0));
items.add(new ItemStack(TFCItems.GemOpal, 1, 0));
items.add(new ItemStack(TFCItems.GemOpal, 1, 0));
items.add(new ItemStack(TFCItems.GemRuby, 1, 0));
items.add(new ItemStack(TFCItems.GemRuby, 1, 0));
items.add(new ItemStack(TFCItems.GemSapphire, 1, 0));
items.add(new ItemStack(TFCItems.GemSapphire, 1, 0));
items.add(new ItemStack(TFCItems.GemTourmaline, 1, 0));
items.add(new ItemStack(TFCItems.GemTourmaline, 1, 0));
items.add(new ItemStack(TFCItems.GemTopaz, 1, 0));
items.add(new ItemStack(TFCItems.GemTopaz, 1, 0));
is = (ItemStack)items.toArray()[random.nextInt(items.toArray().length)];
is = (ItemStack)items.toArray()[random.nextInt(items.toArray().length)];
} else
} else
if(random.nextInt(1000) == 0)
if(random.nextInt(1000) == 0)
{
{
ArrayList items = new ArrayList();
ArrayList items = new ArrayList();
items.add(new ItemStack(TFCItems.GemAgate, 1, 1));
items.add(new ItemStack(TFCItems.GemAgate, 1, 1));
items.add(new ItemStack(TFCItems.GemAmethyst, 1, 1));
items.add(new ItemStack(TFCItems.GemAmethyst, 1, 1));
items.add(new ItemStack(TFCItems.GemBeryl, 1, 1));
items.add(new ItemStack(TFCItems.GemBeryl, 1, 1));
items.add(new ItemStack(TFCItems.GemEmerald, 1, 1));
items.add(new ItemStack(TFCItems.GemEmerald, 1, 1));
items.add(new ItemStack(TFCItems.GemGarnet, 1, 1));
items.add(new ItemStack(TFCItems.GemGarnet, 1, 1));
items.add(new ItemStack(TFCItems.GemJade, 1, 1));
items.add(new ItemStack(TFCItems.GemJade, 1, 1));
items.add(new ItemStack(TFCItems.GemJasper, 1, 1));
items.add(new ItemStack(TFCItems.GemJasper, 1, 1));
items.add(new ItemStack(TFCItems.GemOpal, 1, 1));
items.add(new ItemStack(TFCItems.GemOpal, 1, 1));
items.add(new ItemStack(TFCItems.GemRuby, 1, 1));
items.add(new ItemStack(TFCItems.GemRuby, 1, 1));
items.add(new ItemStack(TFCItems.GemSapphire, 1, 1));
items.add(new ItemStack(TFCItems.GemSapphire, 1, 1));
items.add(new ItemStack(TFCItems.GemTourmaline, 1, 1));
items.add(new ItemStack(TFCItems.GemTourmaline, 1, 1));
items.add(new ItemStack(TFCItems.GemTopaz, 1, 1));
items.add(new ItemStack(TFCItems.GemTopaz, 1, 1));
is = (ItemStack)items.toArray()[random.nextInt(items.toArray().length)];
is = (ItemStack)items.toArray()[random.nextInt(items.toArray().length)];
} else
} else
if(random.nextInt(2000) == 0)
if(random.nextInt(2000) == 0)
{
{
ArrayList items = new ArrayList();
ArrayList items = new ArrayList();
items.add(new ItemStack(TFCItems.GemAgate, 1, 2));
items.add(new ItemStack(TFCItems.GemAgate, 1, 2));
items.add(new ItemStack(TFCItems.GemAmethyst, 1, 2));
items.add(new ItemStack(TFCItems.GemAmethyst, 1, 2));
items.add(new ItemStack(TFCItems.GemBeryl, 1, 2));
items.add(new ItemStack(TFCItems.GemBeryl, 1, 2));
items.add(new ItemStack(TFCItems.GemEmerald, 1, 2));
items.add(new ItemStack(TFCItems.GemEmerald, 1, 2));
items.add(new ItemStack(TFCItems.GemGarnet, 1, 2));
items.add(new ItemStack(TFCItems.GemGarnet, 1, 2));
items.add(new ItemStack(TFCItems.GemJade, 1, 2));
items.add(new ItemStack(TFCItems.GemJade, 1, 2));
items.add(new ItemStack(TFCItems.GemJasper, 1, 2));
items.add(new ItemStack(TFCItems.GemJasper, 1, 2));
items.add(new ItemStack(TFCItems.GemOpal, 1, 2));
items.add(new ItemStack(TFCItems.GemOpal, 1, 2));
items.add(new ItemStack(TFCItems.GemRuby, 1, 2));
items.add(new ItemStack(TFCItems.GemRuby, 1, 2));
items.add(new ItemStack(TFCItems.GemSapphire, 1, 2));
items.add(new ItemStack(TFCItems.GemSapphire, 1, 2));
items.add(new ItemStack(TFCItems.GemTourmaline, 1, 2));
items.add(new ItemStack(TFCItems.GemTourmaline, 1, 2));
items.add(new ItemStack(TFCItems.GemTopaz, 1, 2));
items.add(new ItemStack(TFCItems.GemTopaz, 1, 2));
is = (ItemStack)items.toArray()[random.nextInt(items.toArray().length)];
is = (ItemStack)items.toArray()[random.nextInt(items.toArray().length)];
} else
} else
if(random.nextInt(4000) == 0)
if(random.nextInt(4000) == 0)
{
{
ArrayList items = new ArrayList();
ArrayList items = new ArrayList();
items.add(new ItemStack(TFCItems.GemAgate, 1, 3));
items.add(new ItemStack(TFCItems.GemAgate, 1, 3));
items.add(new ItemStack(TFCItems.GemAmethyst, 1, 3));
items.add(new ItemStack(TFCItems.GemAmethyst, 1, 3));
items.add(new ItemStack(TFCItems.GemBeryl, 1, 3));
items.add(new ItemStack(TFCItems.GemBeryl, 1, 3));
items.add(new ItemStack(TFCItems.GemEmerald, 1, 3));
items.add(new ItemStack(TFCItems.GemEmerald, 1, 3));
items.add(new ItemStack(TFCItems.GemGarnet, 1, 3));
items.add(new ItemStack(TFCItems.GemGarnet, 1, 3));
items.add(new ItemStack(TFCItems.GemJade, 1, 3));
items.add(new ItemStack(TFCItems.GemJade, 1, 3));
items.add(new ItemStack(TFCItems.GemJasper, 1, 3));
items.add(new ItemStack(TFCItems.GemJasper, 1, 3));
items.add(new ItemStack(TFCItems.GemOpal, 1, 3));
items.add(new ItemStack(TFCItems.GemOpal, 1, 3));
items.add(new ItemStack(TFCItems.GemRuby, 1, 3));
items.add(new ItemStack(TFCItems.GemRuby, 1, 3));
items.add(new ItemStack(TFCItems.GemSapphire, 1, 3));
items.add(new ItemStack(TFCItems.GemSapphire, 1, 3));
items.add(new ItemStack(TFCItems.GemTourmaline, 1, 3));
items.add(new ItemStack(TFCItems.GemTourmaline, 1, 3));
items.add(new ItemStack(TFCItems.GemTopaz, 1, 3));
items.add(new ItemStack(TFCItems.GemTopaz, 1, 3));
is = (ItemStack)items.toArray()[random.nextInt(items.toArray().length)];
is = (ItemStack)items.toArray()[random.nextInt(items.toArray().length)];
} else
} else
if(random.nextInt(8000) == 0)
if(random.nextInt(8000) == 0)
{
{
ArrayList items = new ArrayList();
ArrayList items = new ArrayList();
items.add(new ItemStack(TFCItems.GemAgate, 1, 4));
items.add(new ItemStack(TFCItems.GemAgate, 1, 4));
items.add(new ItemStack(TFCItems.GemAmethyst, 1, 4));
items.add(new ItemStack(TFCItems.GemAmethyst, 1, 4));
items.add(new ItemStack(TFCItems.GemBeryl, 1, 4));
items.add(new ItemStack(TFCItems.GemBeryl, 1, 4));
items.add(new ItemStack(TFCItems.GemEmerald, 1, 4));
items.add(new ItemStack(TFCItems.GemEmerald, 1, 4));
items.add(new ItemStack(TFCItems.GemGarnet, 1, 4));
items.add(new ItemStack(TFCItems.GemGarnet, 1, 4));
items.add(new ItemStack(TFCItems.GemJade, 1, 4));
items.add(new ItemStack(TFCItems.GemJade, 1, 4));
items.add(new ItemStack(TFCItems.GemJasper, 1, 4));
items.add(new ItemStack(TFCItems.GemJasper, 1, 4));
items.add(new ItemStack(TFCItems.GemOpal, 1, 4));
items.add(new ItemStack(TFCItems.GemOpal, 1, 4));
items.add(new ItemStack(TFCItems.GemRuby, 1, 4));
items.add(new ItemStack(TFCItems.GemRuby, 1, 4));
items.add(new ItemStack(TFCItems.GemSapphire, 1, 4));
items.add(new ItemStack(TFCItems.GemSapphire, 1, 4));
items.add(new ItemStack(TFCItems.GemTourmaline, 1, 4));
items.add(new ItemStack(TFCItems.GemTourmaline, 1, 4));
items.add(new ItemStack(TFCItems.GemTopaz, 1, 4));
items.add(new ItemStack(TFCItems.GemTopaz, 1, 4));
is = (ItemStack)items.toArray()[random.nextInt(items.toArray().length)];
is = (ItemStack)items.toArray()[random.nextInt(items.toArray().length)];
}
}
return is;
return is;
}
}
public static void SurroundWithLeaves(World world, int i, int j, int k, int meta, Random R)
public static void SurroundWithLeaves(World world, int i, int j, int k, int meta, Random R)
{
{
for(int y = 2; y >= -2; y--)
for(int y = 2; y >= -2; y--)
{
{
for(int x = 2; x >= -2; x--)
for(int x = 2; x >= -2; x--)
{
{
for(int z = 2; z >= -2; z--)
for(int z = 2; z >= -2; z--)
if(world.func_147437_c(i + x, j + y, k + z))
if(world.func_147437_c(i + x, j + y, k + z))
world.func_147465_d(i + x, j + y, k + z, TFCBlocks.Leaves, meta, 2);
world.func_147465_d(i + x, j + y, k + z, TFCBlocks.Leaves, meta, 2);
}
}
}
}
}
}
public static void SetupWorld(World world)
public static void SetupWorld(World world)
{
{
long seed = world.func_72905_C();
long seed = world.func_72905_C();
Random R = new Random(seed);
Random R = new Random(seed);
world.field_73011_w.func_76558_a(world);
world.field_73011_w.func_76558_a(world);
Recipes.registerAnvilRecipes(R, world);
Recipes.registerAnvilRecipes(R, world);
}
}
public static void SetupWorld(World w, long seed)
public static void SetupWorld(World w, long seed)
{
{
try
try
{
{
ReflectionHelper.setPrivateValue(net/minecraft/world/storage/WorldInfo, w.func_72912_H(), Long.valueOf(seed), 0);
ReflectionHelper.setPrivateValue(net/minecraft/world/storage/WorldInfo, w.func_72912_H(), Long.valueOf(seed), 0);
SetupWorld(w);
SetupWorld(w);
}
}
catch(Exception exception) { }
catch(Exception exception) { }
}
}
public static boolean isRawStone(World world, int x, int y, int z)
public static boolean isRawStone(World world, int x, int y, int z)
{
{
Block block = world.func_147439_a(x, y, z);
Block block = world.func_147439_a(x, y, z);
return block == TFCBlocks.StoneIgEx || block == TFCBlocks.StoneIgIn || block == TFCBlocks.StoneSed || block == TFCBlocks.StoneMM;
return block == TFCBlocks.StoneIgEx || block == TFCBlocks.StoneIgIn || block == TFCBlocks.StoneSed || block == TFCBlocks.StoneMM;
}
}
public static boolean isSmoothStone(World world, int x, int y, int z)
public static boolean isSmoothStone(World world, int x, int y, int z)
{
{
Block block = world.func_147439_a(x, y, z);
Block block = world.func_147439_a(x, y, z);
return block == TFCBlocks.StoneIgExSmooth || block == TFCBlocks.StoneIgInSmooth || block == TFCBlocks.StoneSedSmooth || block == TFCBlocks.StoneMMSmooth;
return block == TFCBlocks.StoneIgExSmooth || block == TFCBlocks.StoneIgInSmooth || block == TFCBlocks.StoneSedSmooth || block == TFCBlocks.StoneMMSmooth;
}
}
public static boolean isSmoothStone(Block block)
public static boolean isSmoothStone(Block block)
{
{
return block == TFCBlocks.StoneIgExSmooth || block == TFCBlocks.StoneIgInSmooth || block == TFCBlocks.StoneSedSmooth || block == TFCBlocks.StoneMMSmooth;
return block == TFCBlocks.StoneIgExSmooth || block == TFCBlocks.StoneIgInSmooth || block == TFCBlocks.StoneSedSmooth || block == TFCBlocks.StoneMMSmooth;
}
}
public static boolean isBrickStone(Block block)
public static boolean isBrickStone(Block block)
{
{
return block == TFCBlocks.StoneIgExBrick || block == TFCBlocks.StoneIgInBrick || block == TFCBlocks.StoneSedBrick || block == TFCBlocks.StoneMMBrick;
return block == TFCBlocks.StoneIgExBrick || block == TFCBlocks.StoneIgInBrick || block == TFCBlocks.StoneSedBrick || block == TFCBlocks.StoneMMBrick;
}
}
public static boolean isRawStone(Block block)
public static boolean isRawStone(Block block)
{
{
return block == TFCBlocks.StoneIgEx || block == TFCBlocks.StoneIgIn || block == TFCBlocks.StoneSed || block == TFCBlocks.StoneMM;
return block == TFCBlocks.StoneIgEx || block == TFCBlocks.StoneIgIn || block == TFCBlocks.StoneSed || block == TFCBlocks.StoneMM;
}
}
public static boolean isOreStone(Block block)
public static boolean isOreStone(Block block)
{
{
return block == TFCBlocks.Ore || block == TFCBlocks.Ore2 || block == TFCBlocks.Ore3;
return block == TFCBlocks.Ore || block == TFCBlocks.Ore2 || block == TFCBlocks.Ore3;
}
}
public static boolean isNaturalStone(Block block)
public static boolean isNaturalStone(Block block)
{
{
return isRawStone(block) || isOreStone(block);
return isRawStone(block) || isOreStone(block);
}
}
public static boolean isCobbleStone(Block block)
public static boolean isCobbleStone(Block block)
{
{
return block == TFCBlocks.StoneIgExCobble || block == TFCBlocks.StoneIgInCobble || block == TFCBlocks.StoneSedCobble || block == TFCBlocks.StoneMMCobble;
return block == TFCBlocks.StoneIgExCobble || block == TFCBlocks.StoneIgInCobble || block == TFCBlocks.StoneSedCobble || block == TFCBlocks.StoneMMCobble;
}
}
public static boolean isStoneIgEx(Block block)
public static boolean isStoneIgEx(Block block)
{
{
return block == TFCBlocks.StoneIgEx || block == TFCBlocks.StoneIgExCobble || block == TFCBlocks.StoneIgExSmooth || block == TFCBlocks.StoneIgExBrick || block == TFCBlocks.WallRawIgEx || block == TFCBlocks.WallCobbleIgEx || block == TFCBlocks.WallBrickIgEx || block == TFCBlocks.WallSmoothIgEx;
return block == TFCBlocks.StoneIgEx || block == TFCBlocks.StoneIgExCobble || block == TFCBlocks.StoneIgExSmooth || block == TFCBlocks.StoneIgExBrick || block == TFCBlocks.WallRawIgEx || block == TFCBlocks.WallCobbleIgEx || block == TFCBlocks.WallBrickIgEx || block == TFCBlocks.WallSmoothIgEx;
}
}
public static boolean isStoneIgIn(Block block)
public static boolean isStoneIgIn(Block block)
{
{
return block == TFCBlocks.StoneIgIn || block == TFCBlocks.StoneIgInCobble || block == TFCBlocks.StoneIgInSmooth || block == TFCBlocks.StoneIgInBrick || block == TFCBlocks.WallRawIgIn || block == TFCBlocks.WallCobbleIgIn || block == TFCBlocks.WallBrickIgIn || block == TFCBlocks.WallSmoothIgIn;
return block == TFCBlocks.StoneIgIn || block == TFCBlocks.StoneIgInCobble || block == TFCBlocks.StoneIgInSmooth || block == TFCBlocks.StoneIgInBrick || block == TFCBlocks.WallRawIgIn || block == TFCBlocks.WallCobbleIgIn || block == TFCBlocks.WallBrickIgIn || block == TFCBlocks.WallSmoothIgIn;
}
}
public static boolean isStoneSed(Block block)
public static boolean isStoneSed(Block block)
{
{
return block == TFCBlocks.StoneSed || block == TFCBlocks.StoneSedCobble || block == TFCBlocks.StoneSedSmooth || block == TFCBlocks.StoneSedBrick || block == TFCBlocks.WallRawSed || block == TFCBlocks.WallCobbleSed || block == TFCBlocks.WallBrickSed || block == TFCBlocks.WallSmoothSed;
return block == TFCBlocks.StoneSed || block == TFCBlocks.StoneSedCobble || block == TFCBlocks.StoneSedSmooth || block == TFCBlocks.StoneSedBrick || block == TFCBlocks.WallRawSed || block == TFCBlocks.WallCobbleSed || block == TFCBlocks.WallBrickSed || block == TFCBlocks.WallSmoothSed;
}
}
public static boolean isStoneMM(Block block)
public static boolean isStoneMM(Block block)
{
{
return block == TFCBlocks.StoneMM || block == TFCBlocks.StoneMMCobble || block == TFCBlocks.StoneMMSmooth || block == TFCBlocks.StoneMMBrick || block == TFCBlocks.WallRawMM || block == TFCBlocks.WallCobbleMM || block == TFCBlocks.WallBrickMM || block == TFCBlocks.WallSmoothMM;
return block == TFCBlocks.StoneMM || block == TFCBlocks.StoneMMCobble || block == TFCBlocks.StoneMMSmooth || block == TFCBlocks.StoneMMBrick || block == TFCBlocks.WallRawMM || block == TFCBlocks.WallCobbleMM || block == TFCBlocks.WallBrickMM || block == TFCBlocks.WallSmoothMM;
}
}
public static boolean isDirt(Block block)
public static boolean isDirt(Block block)
{
{
return block == TFCBlocks.Dirt || block == TFCBlocks.Dirt2;
return block == TFCBlocks.Dirt || block == TFCBlocks.Dirt2;
}
}
public static boolean isFarmland(Block block)
public static boolean isFarmland(Block block)
{
{
return block == TFCBlocks.tilledSoil || block == TFCBlocks.tilledSoil2;
return block == TFCBlocks.tilledSoil || block == TFCBlocks.tilledSoil2;
}
}
public static boolean isGrass(Block block)
public static boolean isGrass(Block block)
{
{
return block == TFCBlocks.Grass || block == TFCBlocks.Grass2 || block == TFCBlocks.ClayGrass || block == TFCBlocks.ClayGrass2 || block == TFCBlocks.PeatGrass || block == TFCBlocks.DryGrass || block == TFCBlocks.DryGrass2;
return block == TFCBlocks.Grass || block == TFCBlocks.Grass2 || block == TFCBlocks.ClayGrass || block == TFCBlocks.ClayGrass2 || block == TFCBlocks.PeatGrass || block == TFCBlocks.DryGrass || block == TFCBlocks.DryGrass2;
}
}
public static boolean isGrassNormal(Block block)
public static boolean isGrassNormal(Block block)
{
{
return block == TFCBlocks.Grass || block == TFCBlocks.Grass2;
return block == TFCBlocks.Grass || block == TFCBlocks.Grass2;
}
}
public static boolean isLushGrass(Block block)
public static boolean isLushGrass(Block block)
{
{
return block == TFCBlocks.Grass || block == TFCBlocks.Grass2 || block == TFCBlocks.ClayGrass || block == TFCBlocks.ClayGrass2 || block == TFCBlocks.PeatGrass;
return block == TFCBlocks.Grass || block == TFCBlocks.Grass2 || block == TFCBlocks.ClayGrass || block == TFCBlocks.ClayGrass2 || block == TFCBlocks.PeatGrass;
}
}
public static boolean isClayGrass(Block block)
public static boolean isClayGrass(Block block)
{
{
return block == TFCBlocks.ClayGrass || block == TFCBlocks.ClayGrass2;
return block == TFCBlocks.ClayGrass || block == TFCBlocks.ClayGrass2;
}
}
public static boolean isPeatGrass(Block block)
public static boolean isPeatGrass(Block block)
{
{
return block == TFCBlocks.PeatGrass;
return block == TFCBlocks.PeatGrass;
}
}
public static boolean isDryGrass(Block block)
public static boolean isDryGrass(Block block)
{
{
return block == TFCBlocks.DryGrass || block == TFCBlocks.DryGrass2;
return block == TFCBlocks.DryGrass || block == TFCBlocks.DryGrass2;
}
}
public static boolean isGrassType1(Block block)
public static boolean isGrassType1(Block block)
{
{
return block == TFCBlocks.Grass || block == TFCBlocks.ClayGrass || block == TFCBlocks.DryGrass;
return block == TFCBlocks.Grass || block == TFCBlocks.ClayGrass || block == TFCBlocks.DryGrass;
}
}
public static boolean isGrassType2(Block block)
public static boolean isGrassType2(Block block)
{
{
return block == TFCBlocks.Grass2 || block == TFCBlocks.ClayGrass2 || block == TFCBlocks.DryGrass2;
return block == TFCBlocks.Grass2 || block == TFCBlocks.ClayGrass2 || block == TFCBlocks.DryGrass2;
}
}
public static boolean isClay(Block block)
public static boolean isClay(Block block)
{
{
return block == TFCBlocks.Clay || block == TFCBlocks.Clay2;
return block == TFCBlocks.Clay || block == TFCBlocks.Clay2;
}
}
public static boolean isSand(Block block)
public static boolean isSand(Block block)
{
{
return block == TFCBlocks.Sand || block == TFCBlocks.Sand2;
return block == TFCBlocks.Sand || block == TFCBlocks.Sand2;
}
}
public static boolean isPeat(Block block)
public static boolean isPeat(Block block)
{
{
return block == TFCBlocks.Peat;
return block == TFCBlocks.Peat;
}
}
public static boolean isNotWater(Block block)
{
return !isSaltWater(block) || !isFreshWater(block) || !isHotWater(block);
}
public static boolean isHotWater(Block block)
public static boolean isHotWater(Block block)
{
{
return block == TFCBlocks.HotWater || block == TFCBlocks.HotWaterStationary;
return block == TFCBlocks.HotWater;
}
}
public static boolean isWater(Block block)
public static boolean isWater(Block block)
{
{
return isSaltWater(block) || isFreshWater(block);
return isSaltWater(block) || isFreshWater(block);
}
}
public static boolean isWaterFlowing(Block block)
public static boolean isWaterFlowing(Block block)
{
{
return block == TFCBlocks.SaltWater || block == TFCBlocks.FreshWater;
return block == TFCBlocks.SaltWater || block == TFCBlocks.FreshWater || block == TFCBlocks.HotWater;
}
}
public static boolean isSaltWater(Block block)
public static boolean isSaltWater(Block block)
{
{
return block == TFCBlocks.SaltWater || block == TFCBlocks.SaltWaterStationary;
return block == TFCBlocks.SaltWater || block == TFCBlocks.SaltWaterStationary;
}
}
public static boolean isSaltWaterIncludeIce(Block block, int meta, Material mat)
public static boolean isSaltWaterIncludeIce(Block block, int meta, Material mat)
{
{
return block == TFCBlocks.SaltWater || block == TFCBlocks.SaltWaterStationary || mat == Material.field_151588_w && meta == 0;
return block == TFCBlocks.SaltWater || block == TFCBlocks.SaltWaterStationary || mat == Material.field_151588_w && meta == 0;
}
}
public static boolean isFreshWater(Block block)
public static boolean isFreshWater(Block block)
{
{
return block == TFCBlocks.FreshWater || block == TFCBlocks.FreshWaterStationary;
return block == TFCBlocks.FreshWater || block == TFCBlocks.FreshWaterStationary;
}
}
public static boolean isFreshWaterIncludeIce(Block block, int meta)
public static boolean isFreshWaterIncludeIce(Block block, int meta)
{
{
return block == TFCBlocks.FreshWater || block == TFCBlocks.FreshWaterStationary || block == TFCBlocks.Ice && meta != 0;
return block == TFCBlocks.FreshWater || block == TFCBlocks.FreshWaterStationary || block == TFCBlocks.Ice && meta != 0;
}
}
public static boolean isFreshWaterIncludeIce(Block block, int meta, Material mat)
public static boolean isFreshWaterIncludeIce(Block block, int meta, Material mat)
{
{
return block == TFCBlocks.FreshWater || block == TFCBlocks.FreshWaterStationary || mat == Material.field_151588_w && meta != 0;
return block == TFCBlocks.FreshWater || block == TFCBlocks.FreshWaterStationary || mat == Material.field_151588_w && meta != 0;
}
}
public static boolean isSoil(Block block)
public static boolean isSoil(Block block)
{
{
return isGrass(block) || isDirt(block) || isClay(block) || isPeat(block);
return isGrass(block) || isDirt(block) || isClay(block) || isPeat(block);
}
}
public static boolean isSoilOrGravel(Block block)
public static boolean isSoilOrGravel(Block block)
{
{
return isGrass(block) || isDirt(block) || isClay(block) || isPeat(block) || isGravel(block);
return isGrass(block) || isDirt(block) || isClay(block) || isPeat(block) || isGravel(block);
}
}
public static boolean isGravel(Block block)
public static boolean isGravel(Block block)
{
{
return block == TFCBlocks.Gravel || block == TFCBlocks.Gravel2;
return block == TFCBlocks.Gravel || block == TFCBlocks.Gravel2;
}
}
public static boolean isGround(Block block)
public static boolean isGround(Block block)
{
{
return isSoilOrGravel(block) || isRawStone(block) || isSand(block);
return isSoilOrGravel(block) || isRawStone(block) || isSand(block);
}
}
public static boolean isGroundType1(Block block)
public static boolean isGroundType1(Block block)
{
{
return isGrassType1(block) || block == TFCBlocks.Dirt || block == TFCBlocks.Gravel || block == TFCBlocks.Sand;
return isGrassType1(block) || block == TFCBlocks.Dirt || block == TFCBlocks.Gravel || block == TFCBlocks.Sand;}
}
public static boolean isSoilWAILA(Block block)
public static boolean isSoilWAILA(Block block)
{
{
return isDirt(block) || isGravel(block) || isSand(block) || isGrassNormal(block) || isDryGrass(block);
return isDirt(block) || isGravel(block) || isSand(block) || isGrassNormal(block) || isDryGrass(block);
}
}
public static int getSoilMetaFromStone(Block inBlock, int inMeta)
public static int getSoilMetaFromStone(Block inBlock, int inMeta)
{
{
if(inBlock == TFCBlocks.StoneIgIn)
if(inBlock == TFCBlocks.StoneIgIn)
return inMeta;
return inMeta;
if(inBlock == TFCBlocks.StoneSed)
if(inBlock == TFCBlocks.StoneSed)
return inMeta + 3;
return inMeta + 3;
if(inBlock == TFCBlocks.StoneIgEx)
if(inBlock == TFCBlocks.StoneIgEx)
return inMeta + 11;
return inMeta + 11;
if(inMeta == 0)
if(inMeta == 0)
return inMeta + 15;
return inMeta + 15;
else
else
return inMeta - 1;
return inMeta - 1;
}
}
public static int getSoilMeta(int inMeta)
public static int getSoilMeta(int inMeta)
{
{
return inMeta & 0xf;
return inMeta & 0xf;
}
}
public static int getItemMetaFromStone(Block inBlock, int inMeta)
public static int getItemMetaFromStone(Block inBlock, int inMeta)
{
{
if(inBlock == TFCBlocks.StoneIgIn)
if(inBlock == TFCBlocks.StoneIgIn)
return inMeta;
return inMeta;
if(inBlock == TFCBlocks.StoneSed)
if(inBlock == TFCBlocks.StoneSed)
return inMeta + 3;
return inMeta + 3;
if(inBlock == TFCBlocks.StoneIgEx)
if(inBlock == TFCBlocks.StoneIgEx)
return inMeta + 11;
return inMeta + 11;
if(inBlock == TFCBlocks.StoneMM)
if(inBlock == TFCBlocks.StoneMM)
return inMeta + 15;
return inMeta + 15;
else
else
return 0;
return 0;
}
}
public static Block getTypeForGrassWithRain(int inMeta, float rain)
public static Block getTypeForGrassWithRain(int inMeta, float rain)
{
{
if(rain >= 500F)
if(rain >= 500F)
return getTypeForGrass(inMeta);
return getTypeForGrass(inMeta);
else
else
return getTypeForDryGrass(inMeta);
return getTypeForDryGrass(inMeta);
}
}
public static Block getTypeForGrassWithRainByBlock(Block block, float rain)
public static Block getTypeForGrassWithRainByBlock(Block block, float rain)
{
{
if(rain >= 500F)
if(rain >= 500F)
return getTypeForGrassFromSoil(block);
return getTypeForGrassFromSoil(block);
else
else
return getTypeForDryGrassFromSoil(block);
return getTypeForDryGrassFromSoil(block);
}
}
public static Block getTypeForGrass(int inMeta)
public static Block getTypeForGrass(int inMeta)
{
{
if(inMeta < 16)
if(inMeta < 16)
return TFCBlocks.Grass;
return TFCBlocks.Grass;
else
else
return TFCBlocks.Grass2;
return TFCBlocks.Grass2;
}
}
public static Block getTypeForGrassFromDirt(Block block)
public static Block getTypeForGrassFromDirt(Block block)
{
{
if(block == TFCBlocks.Dirt)
if(block == TFCBlocks.Dirt)
return TFCBlocks.Grass;
return TFCBlocks.Grass;
else
else
return TFCBlocks.Grass2;
return TFCBlocks.Grass2;
}
}
public static Block getTypeForDryGrass(int inMeta)
public static Block getTypeForDryGrass(int inMeta)
{
{
if(inMeta < 16)
if(inMeta < 16)
return TFCBlocks.DryGrass;
return TFCBlocks.DryGrass;
else
else
return TFCBlocks.DryGrass2;
return TFCBlocks.DryGrass2;
}
}
public static Block getTypeForDryGrassFromSoil(Block block)
public static Block getTypeForDryGrassFromSoil(Block block)
{
{
if(block == TFCBlocks.Grass)
if(block == TFCBlocks.Grass)
return TFCBlocks.DryGrass;
return TFCBlocks.DryGrass;
if(block == TFCBlocks.Dirt)
if(block == TFCBlocks.Dirt)
return TFCBlocks.DryGrass;
return TFCBlocks.DryGrass;
else
else
return TFCBlocks.DryGrass2;
return TFCBlocks.DryGrass2;
}
}
public static Block getTypeForGrassFromSoil(Block block)
public static Block getTypeForGrassFromSoil(Block block)
{
{
if(block == TFCBlocks.DryGrass)
if(block == TFCBlocks.DryGrass)
return TFCBlocks.Grass;
return TFCBlocks.Grass;
if(block == TFCBlocks.DryGrass2)
if(block == TFCBlocks.DryGrass2)
return TFCBlocks.Grass2;
return TFCBlocks.Grass2;
if(block == TFCBlocks.Dirt)
if(block == TFCBlocks.Dirt)
return TFCBlocks.Grass;
return TFCBlocks.Grass;
else
else
return TFCBlocks.Grass2;
return TFCBlocks.Grass2;
}
}
public static Block getTypeForClayGrass(int inMeta)
public static Block getTypeForClayGrass(int inMeta)
{
{
if(inMeta < 16)
if(inMeta < 16)
return TFCBlocks.ClayGrass;
return TFCBlocks.ClayGrass;
else
else
return TFCBlocks.ClayGrass2;
return TFCBlocks.ClayGrass2;
}
}
public static Block getTypeForClayGrass(Block block)
public static Block getTypeForClayGrass(Block block)
{
{
if(isGroundType1(block))
if(isGroundType1(block))
return TFCBlocks.ClayGrass;
return TFCBlocks.ClayGrass;
else
else
return TFCBlocks.ClayGrass2;
return TFCBlocks.ClayGrass2;
}
}
public static Block getTypeForDirt(int inMeta)
public static Block getTypeForDirt(int inMeta)
{
{
if(inMeta < 16)
if(inMeta < 16)
return TFCBlocks.Dirt;
return TFCBlocks.Dirt;
else
else
return TFCBlocks.Dirt2;
return TFCBlocks.Dirt2;
}
}
public static Block getTypeForDirtFromGrass(Block block)
public static Block getTypeForDirtFromGrass(Block block)
{
{
if(isDirt(block))
if(isDirt(block))
return block;
return block;
if(block == TFCBlocks.Grass || block == TFCBlocks.DryGrass)
if(block == TFCBlocks.Grass || block == TFCBlocks.DryGrass)
return TFCBlocks.Dirt;
return TFCBlocks.Dirt;
else
else
return TFCBlocks.Dirt2;
return TFCBlocks.Dirt2;
}
}
public static Block getTypeForClay(int inMeta)
public static Block getTypeForClay(int inMeta)
{
{
if(inMeta < 16)
if(inMeta < 16)
return TFCBlocks.Clay;
return TFCBlocks.Clay;
else
else
return TFCBlocks.Clay2;
return TFCBlocks.Clay2;
}
}
public static Block getTypeForClay(Block block)
public static Block getTypeForClay(Block block)
{
{
if(isGroundType1(block))
if(isGroundType1(block))
return TFCBlocks.Clay;
return TFCBlocks.Clay;
else
else
return TFCBlocks.Clay2;
return TFCBlocks.Clay2;
}
}
public static Block getTypeForSand(int inMeta)
public static Block getTypeForSand(int inMeta)
{
{
if(inMeta < 16)
if(inMeta < 16)
return TFCBlocks.Sand;
return TFCBlocks.Sand;
else
else
return TFCBlocks.Sand2;
return TFCBlocks.Sand2;
}
}
public static Block getTypeForGravel(int inMeta)
public static Block getTypeForGravel(int inMeta)
{
{
if(inMeta < 16)
if(inMeta < 16)
return TFCBlocks.Gravel;
return TFCBlocks.Gravel;
else
else
return TFCBlocks.Gravel2;
return TFCBlocks.Gravel2;
}
}
public static int getRockLayerFromHeight(World world, int x, int y, int z)
public static int getRockLayerFromHeight(World world, int x, int y, int z)
{
{
ChunkData cd = getCDM(world).getData(x >> 4, z >> 4);
ChunkData cd = getCDM(world).getData(x >> 4, z >> 4);
if(cd != null)
if(cd != null)
{
{
int hm[] = cd.heightmap;
int hm[] = cd.heightmap;
int localX = x & 0xf;
int localX = x & 0xf;
int localZ = z & 0xf;
int localZ = z & 0xf;
int localY = localX + localZ * 16;
int localY = localX + localZ * 16;
if(y <= TFCOptions.RockLayer3Height + hm[localY])
if(y <= TFCOptions.RockLayer3Height + hm[localY])
return 2;
return 2;
return y > TFCOptions.RockLayer2Height + hm[localY] ? 0 : 1;
return y > TFCOptions.RockLayer2Height + hm[localY] ? 0 : 1;
} else
} else
{
{
return 0;
return 0;
}
}
}
}
public static boolean convertGrassToDirt(World world, int i, int j, int k)
public static boolean convertGrassToDirt(World world, int i, int j, int k)
{
{
Block block = world.func_147439_a(i, j, k);
Block block = world.func_147439_a(i, j, k);
int meta = world.func_72805_g(i, j, k);
int meta = world.func_72805_g(i, j, k);
if(isGrass(block))
if(isGrass(block))
{
{
if(isGrassType1(block))
if(isGrassType1(block))
{
{
world.func_147465_d(i, j, k, TFCBlocks.Dirt, meta, 2);
world.func_147465_d(i, j, k, TFCBlocks.Dirt, meta, 2);
return true;
return true;
}
}
if(isGrassType2(block))
if(isGrassType2(block))
{
{
world.func_147465_d(i, j, k, TFCBlocks.Dirt2, meta, 2);
world.func_147465_d(i, j, k, TFCBlocks.Dirt2, meta, 2);
return true;
return true;
}
}
}
}
return false;
return false;
}
}
public static EnumFuelMaterial getFuelMaterial(ItemStack is)
public static EnumFuelMaterial getFuelMaterial(ItemStack is)
{
{
if(is.func_77973_b() == Item.func_150898_a(TFCBlocks.Peat))
if(is.func_77973_b() == Item.func_150898_a(TFCBlocks.Peat))
return EnumFuelMaterial.PEAT;
return EnumFuelMaterial.PEAT;
if(is.func_77973_b() == TFCItems.Coal && is.func_77960_j() == 0)
if(is.func_77973_b() == TFCItems.Coal && is.func_77960_j() == 0)
return EnumFuelMaterial.COAL;
return EnumFuelMaterial.COAL;
if(is.func_77973_b() == TFCItems.Coal && is.func_77960_j() == 1)
if(is.func_77973_b() == TFCItems.Coal && is.func_77960_j() == 1)
return EnumFuelMaterial.CHARCOAL;
return EnumFuelMaterial.CHARCOAL;
if(is.func_77960_j() == 0)
if(is.func_77960_j() == 0)
return EnumFuelMaterial.ASH;
return EnumFuelMaterial.ASH;
if(is.func_77960_j() == 1)
if(is.func_77960_j() == 1)
return EnumFuelMaterial.ASPEN;
return EnumFuelMaterial.ASPEN;
if(is.func_77960_j() == 2)
if(is.func_77960_j() == 2)
return EnumFuelMaterial.BIRCH;
return EnumFuelMaterial.BIRCH;
if(is.func_77960_j() == 3)
if(is.func_77960_j() == 3)
return EnumFuelMaterial.CHESTNUT;
return EnumFuelMaterial.CHESTNUT;
if(is.func_77960_j() == 4)
if(is.func_77960_j() == 4)
return EnumFuelMaterial.DOUGLASFIR;
return EnumFuelMaterial.DOUGLASFIR;
if(is.func_77960_j() == 5)
if(is.func_77960_j() == 5)
return EnumFuelMaterial.HICKORY;
return EnumFuelMaterial.HICKORY;
if(is.func_77960_j() == 6)
if(is.func_77960_j() == 6)
return EnumFuelMaterial.MAPLE;
return EnumFuelMaterial.MAPLE;
if(is.func_77960_j() == 7)
if(is.func_77960_j() == 7)
return EnumFuelMaterial.OAK;
return EnumFuelMaterial.OAK;
if(is.func_77960_j() == 8)
if(is.func_77960_j() == 8)
return EnumFuelMaterial.PINE;
return EnumFuelMaterial.PINE;
if(is.func_77960_j() == 9)
if(is.func_77960_j() == 9)
return EnumFuelMaterial.REDWOOD;
return EnumFuelMaterial.REDWOOD;
if(is.func_77960_j() == 10)
if(is.func_77960_j() == 10)
return EnumFuelMaterial.SPRUCE;
return EnumFuelMaterial.SPRUCE;
if(is.func_77960_j() == 11)
if(is.func_77960_j() == 11)
return EnumFuelMaterial.SYCAMORE;
if(is.func_77960_j() == 12)
return EnumFuelMaterial.WHITECEDAR;