got rid of a few hundred errors

This commit is contained in:
Progwml6 committed 2014-01-16 00:23:01 -05:00
1 parent 5667cce5f6
commit 8931171979
59 files changed
+660 -607

No files matched your search

@@ -399,7 +399,7 @@ public class BlockLandmine extends BlockContainer
}
@Override
public void updateTick (World par1World, int par2, int par3, int par4, Random par5Random)
public void func_149674_a (World par1World, int par2, int par3, int par4, Random par5Random)
{
if (!par1World.isRemote)
{
@@ -25,7 +25,7 @@ public class CastingChannelBlock extends BlockContainer
{
super(par1, Material.rock);
this.setHardness(1F);
this.setResistance(10);
this.func_149752_b(10);
this.setStepSound(soundStoneFootstep);
setCreativeTab(TConstructRegistry.blockTab);
}
@@ -101,11 +101,11 @@ public class ConveyorBase extends MantleBlock
world.setBlockMetadataWithNotify(x, y, z, face | meta, 2);
}
public boolean shouldSideBeRendered (IBlockAccess world, int x, int y, int z, int side)
public boolean func_149646_a (IBlockAccess world, int x, int y, int z, int side)
{
if (side == 1)
return false;
return super.shouldSideBeRendered(world, x, y, z, side);
return super. func_149646_a(world, x, y, z, side);
}
public IIcon[] icons;
@@ -31,7 +31,7 @@ public class CraftingSlab extends InventorySlab
{
super(material);
this.setCreativeTab(TConstructRegistry.blockTab);
this.setHardness(2f);
this.func_149711_c(2f);
this.setStepSound(Block.soundWoodFootstep);
}
@@ -123,7 +123,7 @@ public class CraftingSlab extends InventorySlab
}
@Override
public void getSubBlocks (Block b, CreativeTabs tab, List list)
public void getSubBlocks (Item b, CreativeTabs tab, List list)
{
for (int iter = 0; iter < 6; iter++)
{
@@ -24,7 +24,7 @@ public class CraftingStationBlock extends InventoryBlock
{
super(material);
this.setCreativeTab(TConstructRegistry.blockTab);
this.setHardness(2f);
this.func_149711_c(2f);
this.setStepSound(Block.soundWoodFootstep);
}
@@ -74,7 +74,7 @@ public class CraftingStationBlock extends InventoryBlock
}
@Override
public boolean shouldSideBeRendered (IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
public boolean func_149646_a (IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
{
return true;
}
@@ -29,7 +29,7 @@ public class DryingRack extends InventoryBlock
{
super(Material.field_151575_d);
this.setCreativeTab(TConstructRegistry.blockTab);
setHardness(2.0f);
func_149711_c(2.0f);
setStepSound(soundMetalFootstep);
}
@@ -249,6 +249,12 @@ public class DryingRack extends InventoryBlock
return false;
}
@Override
public TileEntity createTileEntity (World world, int metadata)
{
return new DryingRackLogic();
}
/*@Override
public boolean shouldSideBeRendered (IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
{
@@ -29,7 +29,7 @@ public class EquipBlock extends InventoryBlock
public EquipBlock(Material material)
{
super(material);
this.setHardness(0.3f);
this.func_149711_c(0.3f);
this.setBlockBounds(0, 0, 0, 1, 0.25f, 1);
//this.setCreativeTab(ToolConstruct.materialTab);
}
@@ -185,4 +185,10 @@ public class EquipBlock extends InventoryBlock
return TConstruct.instance;
}
@Override
public TileEntity createTileEntity (World world, int metadata)
{
return new FrypanLogic();
}
}
@@ -22,11 +22,11 @@ public class FurnaceSlab extends InventorySlab
{
super(material);
this.func_149647_a(TConstructRegistry.blockTab);
this.setHardness(3.5f);
this.func_149711_c(3.5f);
}
@Override
public TileEntity func_149915_a (World world, int metadata)
public TileEntity createTileEntity (World world, int metadata)
{
switch (metadata % 8)
{
@@ -110,4 +110,15 @@ public class FurnaceSlab extends InventorySlab
this.icons[i] = iconRegister.registerIcon("tinker:" + textureNames[i]);
}
}
@Override
public TileEntity func_149915_a (World var1, int metadata)
{
switch (metadata % 8)
{
case 0:
return new FurnaceLogic();
}
return null;
}
}
@@ -23,10 +23,10 @@ public class GlassBlock extends TConstructBlock
}
@SideOnly(Side.CLIENT)
public boolean shouldSideBeRendered (IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
public boolean func_149646_a (IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
{
Block i1 = par1IBlockAccess.func_147439_a(par2, par3, par4);
return i1 == (Block) this ? false : super.shouldSideBeRendered(par1IBlockAccess, par2, par3, par4, par5);
return i1 == (Block) this ? false : super.func_149646_a(par1IBlockAccess, par2, par3, par4, par5);
}
@Override
@@ -28,7 +28,7 @@ public class GlassBlockConnected extends MantleBlock
this.setStepSound(soundGlassFootstep);
folder = location;
renderPass = hasAlpha ? 1 : 0;
setHardness(0.3F);
func_149711_c(0.3F);
this.setCreativeTab(TConstructRegistry.blockTab);
}
@@ -585,10 +585,10 @@ public class GlassBlockConnected extends MantleBlock
}
@Override
public boolean shouldSideBeRendered (IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
public boolean func_149646_a (IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
{
Block b = par1IBlockAccess.func_147439_a(par2, par3, par4);
return b == (Block) this ? false : super.shouldSideBeRendered(par1IBlockAccess, par2, par3, par4, par5);
return b == (Block) this ? false : super. func_149646_a(par1IBlockAccess, par2, par3, par4, par5);
}
@Override
@@ -31,10 +31,10 @@ public class GlassBlockStained extends TConstructBlock
}
@SideOnly(Side.CLIENT)
public boolean shouldSideBeRendered (IBlockAccess world, int x, int y, int z, int side)
public boolean func_149646_a (IBlockAccess world, int x, int y, int z, int side)
{
Block block = world.getBlock(x, y, z);
return block == this ? false : super.shouldSideBeRendered(world, x, y, z, side);
return block == this ? false : super. func_149646_a(world, x, y, z, side);
}
@Override
@@ -12,7 +12,7 @@ public class GlassPane extends PaneBase
super(Material.field_151592_s, "glass/", blockTextures);
this.func_149711_c(0.3F);
this.setStepSound(soundGlassFootstep);
this.setUnlocalizedName("tconstruct.glasspane");
this.func_149663_c("tconstruct.glasspane");
this.setCreativeTab(TConstructRegistry.blockTab);
}
}
@@ -681,11 +681,11 @@ public class GlassPaneConnected extends GlassBlockConnected
public boolean canPaneConnectTo (IBlockAccess access, int x, int y, int z, ForgeDirection dir)
{
return canThisPaneConnectToThisBlock(access.func_147439_a(x + dir.offsetX, y + dir.offsetY, z + dir.offsetZ))
|| access.isBlockSolidOnSide(x + dir.offsetX, y + dir.offsetY, z + dir.offsetZ, dir.getOpposite(), false);
|| access.isSideSolid(x + dir.offsetX, y + dir.offsetY, z + dir.offsetZ, dir.getOpposite(), false);
}
@Override
public boolean shouldSideBeRendered (IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
public boolean func_149646_a (IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
{
// if(par5 == 0 || par5 == 1){
// return par1IBlockAccess.func_147439_a(par2, par3, par4) != this.blockID;
@@ -13,7 +13,7 @@ public class GlassPaneStained extends PaneBase
//TODO setHardness
this.func_149711_c(0.3F);
this.setStepSound(soundGlassFootstep);
this.setUnlocalizedName("tconstruct.glasspanestained");
this.func_149663_c("tconstruct.glasspanestained");
this.setCreativeTab(TConstructRegistry.blockTab);
}
@@ -34,10 +34,10 @@ public class LavaTankBlock extends BlockContainer
public LavaTankBlock()
{
super(Material.rock);
setHardness(3F);
setResistance(20F);
func_149711_c(3F);
func_149752_b(20F);
setCreativeTab(TConstructRegistry.blockTab);
setUnlocalizedName("TConstruct.LavaTank");
func_149663_c("TConstruct.LavaTank");
setStepSound(Block.soundGlassFootstep);
}
@@ -88,12 +88,12 @@ public class LavaTankBlock extends BlockContainer
}
@Override
public boolean shouldSideBeRendered (IBlockAccess world, int x, int y, int z, int side)
public boolean func_149646_a (IBlockAccess world, int x, int y, int z, int side)
{
//if (side == 0 && world.getBlockMetadata(x, y, z) == 0)
//return super.shouldSideBeRendered(world, x, y, z, side);
//return super. func_149646_a(world, x, y, z, side);
Block b = world.func_147439_a(x, y, z);
return b == (Block)this ? false : super.shouldSideBeRendered(world, x, y, z, side);
return b == (Block)this ? false : super. func_149646_a(world, x, y, z, side);
//return true;
}
@@ -23,7 +23,7 @@ public class LiquidMetalFinite extends BlockFluidFinite
{
super(id, fluid, TRepo.liquidMetal);
this.texture = texture;
this.setCreativeTab(TConstructRegistry.blockTab);
this.func_149647_a(TConstructRegistry.blockTab);
}
@Override
@@ -23,10 +23,10 @@ public class MeatBlock extends Block
public MeatBlock()
{
super(Material.field_151575_d);
this.setHardness(1.0F);
this.func_149711_c(1.0F);
this.setStepSound(Block.soundWoodFootstep);
//setBurnProperties(this.blockID, 5, 20);
this.setCreativeTab(TConstructRegistry.blockTab);
this.func_149647_a(TConstructRegistry.blockTab);
}
@Override
@@ -47,9 +47,9 @@ public class OreberryBush extends BlockLeavesBase implements IPlantable
this.oreTypes = oreTypes;
this.setTickRandomly(true);
random = new Random();
this.setHardness(0.3F);
this.func_149711_c(0.3F);
this.setStepSound(Block.soundMetalFootstep);
this.setCreativeTab(TConstructRegistry.blockTab);
this.func_149647_a(TConstructRegistry.blockTab);
}
/* Berries show up at meta 12-15 */
@@ -237,11 +237,11 @@ public class OreberryBush extends BlockLeavesBase implements IPlantable
return OreberryRender.model;
}
public boolean shouldSideBeRendered (IBlockAccess iblockaccess, int x, int y, int z, int meta)
public boolean func_149646_a (IBlockAccess iblockaccess, int x, int y, int z, int meta)
{
if (meta > 7 || graphicsLevel)
{
return super.shouldSideBeRendered(iblockaccess, x, y, z, meta);
return super.func_149646_a(iblockaccess, x, y, z, meta);
}
else
{
@@ -252,7 +252,7 @@ public class OreberryBush extends BlockLeavesBase implements IPlantable
/* Bush growth */
@Override
public void updateTick (World world, int x, int y, int z, Random random1)
public void func_149674_a (World world, int x, int y, int z, Random random1)
{
if (world.isRemote)
{
@@ -324,19 +324,13 @@ public class OreberryBush extends BlockLeavesBase implements IPlantable
}
@Override
public EnumPlantType getPlantType (World world, int x, int y, int z)
public Block getPlant (IBlockAccess world, int x, int y, int z)
{
return EnumPlantType.Cave;
return this;
}
@Override
public int getPlantID (World world, int x, int y, int z)
{
return this.blockID;
}
@Override
public int getPlantMetadata (World world, int x, int y, int z)
public int getPlantMetadata (IBlockAccess world, int x, int y, int z)
{
return world.getBlockMetadata(x, y, z) - 4;
}
@@ -347,4 +341,11 @@ public class OreberryBush extends BlockLeavesBase implements IPlantable
if (!(entity instanceof EntityItem))
entity.attackEntityFrom(DamageSource.cactus, 1);
}
@Override
public EnumPlantType getPlantType (IBlockAccess world, int x, int y, int z)
{
return EnumPlantType.Cave;
}
}
@@ -16,7 +16,7 @@ public class OreberryBushEssence extends OreberryBush implements IPlantable
/* Bush growth */
@Override
public void updateTick (World world, int x, int y, int z, Random random1)
public void func_149674_a (World world, int x, int y, int z, Random random1)
{
if (world.isRemote)
{
@@ -89,7 +89,7 @@ public class PaneBase extends Block
return PaneRender.model;
}
public boolean shouldSideBeRendered (IBlockAccess iblockaccess, int i, int j, int k, int l)
public boolean func_149646_a (IBlockAccess iblockaccess, int i, int j, int k, int l)
{
Block b = iblockaccess.func_147439_a(i, j, k);
if (b instanceof PaneBase || b instanceof BlockPane)
@@ -98,7 +98,7 @@ public class PaneBase extends Block
}
else
{
return super.shouldSideBeRendered(iblockaccess, i, j, k, l);
return super. func_149646_a(iblockaccess, i, j, k, l);
}
}
@@ -27,8 +27,8 @@ public class SearedBlock extends InventoryBlock
{
super(Material.rock);
this.setCreativeTab(TConstructRegistry.blockTab);
setHardness(3F);
setResistance(20F);
func_149711_c(3F);
func_149752_b(20F);
setStepSound(soundMetalFootstep);
}
@@ -242,7 +242,7 @@ public class SearedBlock extends InventoryBlock
}
@Override
public boolean shouldSideBeRendered (IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
public boolean func_149646_a (IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
{
return true;
}
@@ -356,4 +356,21 @@ public class SearedBlock extends InventoryBlock
logic.setActive(true);
}
}
@Override
public TileEntity func_149915_a (World var1, int metadata)
{
switch (metadata)
{
case 0:
return new CastingTableLogic();
case 1:
return new FaucetLogic();
case 2:
return new CastingBasinLogic();
default:
return null;
}
}
}
@@ -20,8 +20,8 @@ public class SearedSlab extends SlabBase
{
//TODO material.rock
super(Material.field_151576_e);
this.setCreativeTab(TConstructRegistry.blockTab);
setHardness(12F);
this.func_149647_a(TConstructRegistry.blockTab);
func_149711_c(12F);
}
@Override
@@ -26,13 +26,13 @@ public class SlabBase extends MantleBlock
public SlabBase(Material material)
{
super(material);
this.setCreativeTab(TConstructRegistry.blockTab);
this.func_149647_a(TConstructRegistry.blockTab);
}
public SlabBase(Material material, Block model, int meta, int totalSize)
{
super(material);
this.setCreativeTab(TConstructRegistry.blockTab);
this.func_149647_a(TConstructRegistry.blockTab);
this.modelBlock = model;
this.startingMeta = meta;
this.totalSize = totalSize;
@@ -26,7 +26,7 @@ public class SlimePad extends MantleBlock
{
super(par2Material);
setBlockBounds(0.125F, 0.0F, 0.125F, 0.875F, 0.625F, 0.875F);
this.setCreativeTab(TConstructRegistry.blockTab);
this.func_149647_a(TConstructRegistry.blockTab);
}
@Override
@@ -36,12 +36,12 @@ public class SmelteryBlock extends InventoryBlock
public SmelteryBlock()
{
super(Material.rock);
setHardness(3F);
setResistance(20F);
func_149711_c(3F);
func_149752_b(20F);
setStepSound(soundMetalFootstep);
rand = new Random();
this.func_149647_a(TConstructRegistry.blockTab);
this.setUnlocalizedName("tconstruct.Smeltery");
this.func_149663_c("tconstruct.Smeltery");
}
public SmelteryBlock(String prefix)
@@ -93,7 +93,7 @@ public class SmelteryBlock extends InventoryBlock
public IIcon getBlockTexture (IBlockAccess world, int x, int y, int z, int side)
{
TileEntity logic = world.getBlockTileEntity(x, y, z);
TileEntity logic = world.func_147438_o(x, y, z);
short direction = (logic instanceof IFacingLogic) ? ((IFacingLogic) logic).getRenderDirection() : 0;
int meta = world.getBlockMetadata(x, y, z);
if (meta == 0) //Smeltery
@@ -163,7 +163,7 @@ public class SmelteryBlock extends InventoryBlock
{
if (isActive(world, x, y, z))
{
TileEntity logic = world.getBlockTileEntity(x, y, z);
TileEntity logic = world.func_147438_o(x, y, z);
byte face = 0;
if (logic instanceof IFacingLogic)
face = ((IFacingLogic) logic).getRenderDirection();
@@ -259,7 +259,7 @@ public class SmelteryBlock extends InventoryBlock
public void onBlockPlacedElsewhere (World world, int x, int y, int z, EntityLivingBase entityliving)
{
SmelteryLogic logic = (SmelteryLogic) world.getBlockTileEntity(x, y, z);
SmelteryLogic logic = (SmelteryLogic) world.func_147438_o(x, y, z);
logic.checkValidPlacement();
}
@@ -284,7 +284,7 @@ public class SmelteryBlock extends InventoryBlock
public void onNeighborBlockChange (World world, int x, int y, int z, int nBlockID)
{
//System.out.println("Neighbor changed");
TileEntity logic = world.getBlockTileEntity(x, y, z);
TileEntity logic = world.func_147438_o(x, y, z);
if (logic instanceof IServantLogic)
{
((IServantLogic) logic).notifyMasterOfChange();
@@ -298,7 +298,7 @@ public class SmelteryBlock extends InventoryBlock
@Override
public void breakBlock (World world, int x, int y, int z, Block block, int meta)
{
TileEntity logic = world.getBlockTileEntity(x, y, z);
TileEntity logic = world.func_147438_o(x, y, z);
if (logic instanceof IServantLogic)
{
((IServantLogic) logic).notifyMasterOfChange();
@@ -22,7 +22,7 @@ public class SoilSlab extends SlabBase
public SoilSlab()
{
super(Material.field_151578_c);
this.setCreativeTab(TConstructRegistry.blockTab);
this.func_149647_a(TConstructRegistry.blockTab);
}
@Override
@@ -21,8 +21,8 @@ public class SpeedSlab extends SlabBase
public SpeedSlab()
{
super(Material.rock);
this.setCreativeTab(TConstructRegistry.blockTab);
setHardness(3F);
this.func_149647_a(TConstructRegistry.blockTab);
func_149711_c(3F);
}
@Override
@@ -18,7 +18,7 @@ public class StoneLadder extends BlockLadder
public StoneLadder()
{
super();
this.setUnlocalizedName("decoration.stoneladder");
this.func_149663_c("decoration.stoneladder");
this.func_149647_a(CreativeTabs.tabDecorations);
}
@@ -22,7 +22,7 @@ public class TConstructBlock extends MantleBlock
public TConstructBlock( Material material, float hardness, String[] tex)
{
super( material);
setHardness(hardness);
func_149711_c(hardness);
this.func_149647_a(TConstructRegistry.blockTab);
textureNames = tex;
}
@@ -29,7 +29,7 @@ public class ToolForgeBlock extends InventoryBlock
{
super(material);
this.setCreativeTab(TConstructRegistry.blockTab);
this.setHardness(2f);
this.func_149711_c(2f);
this.setStepSound(Block.soundWoodFootstep);
}
@@ -104,7 +104,7 @@ public class ToolForgeBlock extends InventoryBlock
}
@Override
public boolean shouldSideBeRendered (IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
public boolean func_149646_a (IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
{
return true;
}
@@ -31,7 +31,7 @@ public class ToolStationBlock extends InventoryBlock
{
super(material);
this.setCreativeTab(TConstructRegistry.blockTab);
this.setHardness(2f);
this.func_149711_c(2f);
this.setStepSound(Block.soundWoodFootstep);
}
@@ -102,7 +102,7 @@ public class ToolStationBlock extends InventoryBlock
}
@Override
public boolean shouldSideBeRendered (IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
public boolean func_149646_a (IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
{
return true;
}
@@ -156,9 +156,9 @@ public class AdaptiveDrainLogic extends MultiServantLogic implements IFluidHandl
}
@Override
public void writeToNBT (NBTTagCompound tags)
public void func_145839_a (NBTTagCompound tags)
{
super.writeToNBT(tags);
super.func_145839_a(tags);
tags.setByte("Direction", direction);
}
@@ -167,7 +167,7 @@ public class AdaptiveDrainLogic extends MultiServantLogic implements IFluidHandl
public Packet getDescriptionPacket ()
{
NBTTagCompound tag = new NBTTagCompound();
writeToNBT(tag);
func_145839_a(tag);
return new Packet132TileEntityData(field_145851_c, field_145848_d, field_145849_e, 1, tag);
}
@@ -549,14 +549,14 @@ public class AdaptiveSmelteryLogic extends AdaptiveInventoryLogic implements IAc
}
@Override
public void writeToNBT (NBTTagCompound tags)
public void func_145839_a (NBTTagCompound tags)
{
super.writeToNBT(tags);
super.func_145839_a(tags);
writeNetworkNBT(tags);
structure.writeToNBT(tags);
multitank.writeToNBT(tags);
smeltery.writeToNBT(tags);
structure.func_145839_a(tags);
multitank.func_145839_a(tags);
smeltery.func_145839_a(tags);
}
public void writeNetworkNBT (NBTTagCompound tags)
@@ -365,9 +365,9 @@ public class CastingBasinLogic extends InventoryLogic implements IFluidTank, IFl
}
@Override
public void writeToNBT (NBTTagCompound tags)
public void func_145839_a (NBTTagCompound tags)
{
super.writeToNBT(tags);
super.func_145839_a(tags);
writeCustomNBT(tags);
}
@@ -377,7 +377,7 @@ public class CastingBasinLogic extends InventoryLogic implements IFluidTank, IFl
if (liquid != null)
{
NBTTagCompound nbt = new NBTTagCompound();
liquid.writeToNBT(nbt);
liquid.func_145839_a(nbt);
tags.setTag("Fluid", nbt);
}
tags.setBoolean("Initialized", init);
@@ -390,7 +390,7 @@ public class CastingBasinLogic extends InventoryLogic implements IFluidTank, IFl
public Packet getDescriptionPacket ()
{
NBTTagCompound tag = new NBTTagCompound();
writeToNBT(tag);
func_145839_a(tag);
return new Packet132TileEntityData(field_145851_c, field_145848_d, field_145849_e, 1, tag);
}
@@ -542,9 +542,9 @@ public class CastingChannelLogic extends TileEntity implements IFluidTank, IFlui
}
@Override
public void writeToNBT (NBTTagCompound tags)
public void func_145839_a (NBTTagCompound tags)
{
super.writeToNBT(tags);
super.func_145839_a(tags);
writeCustomNBT(tags);
tags.setBoolean("PullingLiquids", pullingLiquids);
}
@@ -555,7 +555,7 @@ public class CastingChannelLogic extends TileEntity implements IFluidTank, IFlui
if (liquid != null)
{
NBTTagCompound nbt = new NBTTagCompound();
liquid.writeToNBT(nbt);
liquid.func_145839_a(nbt);
tags.setTag("Fluid", nbt);
}
tags.setInteger("LastProvider", this.convertFDToInt(this.lastProvider));
@@ -363,9 +363,9 @@ public class CastingTableLogic extends InventoryLogic implements IFluidTank, IFl
}
@Override
public void writeToNBT (NBTTagCompound tags)
public void func_145839_a (NBTTagCompound tags)
{
super.writeToNBT(tags);
super.func_145839_a(tags);
writeCustomNBT(tags);
}
@@ -375,7 +375,7 @@ public class CastingTableLogic extends InventoryLogic implements IFluidTank, IFl
if (liquid != null)
{
NBTTagCompound nbt = new NBTTagCompound();
liquid.writeToNBT(nbt);
liquid.func_145839_a(nbt);
tags.setTag("Fluid", nbt);
}
tags.setBoolean("Initialized", init);
@@ -388,7 +388,7 @@ public class CastingTableLogic extends InventoryLogic implements IFluidTank, IFl
public Packet getDescriptionPacket ()
{
NBTTagCompound tag = new NBTTagCompound();
writeToNBT(tag);
func_145839_a(tag);
return new Packet132TileEntityData(field_145851_c, field_145848_d, field_145849_e, 1, tag);
}
@@ -85,7 +85,7 @@ public class DryingRackLogic extends InventoryLogic
}
@Override
public void writeToNBT (NBTTagCompound tags)
public void func_145839_a (NBTTagCompound tags)
{
tags.setInteger("Time", currentTime);
tags.setInteger("MaxTime", maxTime);
@@ -99,7 +99,7 @@ public class DryingRackLogic extends InventoryLogic
public void writeCustomNBT (NBTTagCompound tags)
{
super.writeToNBT(tags);
super.func_145839_a(tags);
}
/* Packets */
@@ -149,9 +149,9 @@ public class FaucetLogic extends TileEntity implements IFacingLogic, IActiveLogi
}
@Override
public void writeToNBT (NBTTagCompound tags)
public void func_145839_a (NBTTagCompound tags)
{
super.writeToNBT(tags);
super.func_145839_a(tags);
writeCustomNBT(tags);
}
@@ -162,7 +162,7 @@ public class FaucetLogic extends TileEntity implements IFacingLogic, IActiveLogi
if (liquid != null)
{
NBTTagCompound nbt = new NBTTagCompound();
liquid.writeToNBT(nbt);
liquid.func_145839_a(nbt);
tags.setTag("Fluid", nbt);
}
}
@@ -278,9 +278,9 @@ public class FrypanLogic extends EquipLogic implements IActiveLogic
fuelGague = tags.getInteger("FuelGague");
}
public void writeToNBT (NBTTagCompound tags)
public void func_145839_a (NBTTagCompound tags)
{
super.writeToNBT(tags);
super.func_145839_a(tags);
tags.setBoolean("Active", active);
tags.setInteger("Fuel", fuel);
tags.setInteger("FuelGague", fuelGague);
@@ -264,9 +264,9 @@ public class FurnaceLogic extends InventoryLogic implements IActiveLogic, IFacin
readNetworkNBT(tags);
}
public void writeToNBT (NBTTagCompound tags)
public void func_145839_a (NBTTagCompound tags)
{
super.writeToNBT(tags);
super.func_145839_a(tags);
tags.setBoolean("Active", active);
tags.setInteger("Fuel", fuel);
tags.setInteger("FuelGague", fuelGague);
@@ -121,9 +121,9 @@ public class LavaTankLogic extends MultiServantLogic implements IFluidHandler
}
@Override
public void writeToNBT (NBTTagCompound tags)
public void func_145839_a (NBTTagCompound tags)
{
super.writeToNBT(tags);
super.func_145839_a(tags);
writeCustomNBT(tags);
}
@@ -37,9 +37,9 @@ public class LiquidTextureLogic extends TileEntity
texturePos = tags.getInteger("Texture");
}
public void writeToNBT (NBTTagCompound tags)
public void func_145839_a (NBTTagCompound tags)
{
super.writeToNBT(tags);
super.func_145839_a(tags);
writeCustomNBT(tags);
}
@@ -48,9 +48,9 @@ public class RedwireLogic extends TileEntity
}
@Override
public void writeToNBT (NBTTagCompound tags)
public void func_145839_a (NBTTagCompound tags)
{
super.writeToNBT(tags);
super.func_145839_a(tags);
writeCustomNBT(tags);
}
@@ -162,9 +162,9 @@ public class SmelteryDrainLogic extends MultiServantLogic implements IFluidHandl
}
@Override
public void writeToNBT (NBTTagCompound tags)
public void func_145839_a (NBTTagCompound tags)
{
super.writeToNBT(tags);
super.func_145839_a(tags);
tags.setByte("Direction", direction);
}
@@ -173,7 +173,7 @@ public class SmelteryDrainLogic extends MultiServantLogic implements IFluidHandl
public Packet getDescriptionPacket ()
{
NBTTagCompound tag = new NBTTagCompound();
writeToNBT(tag);
func_145839_a(tag);
return new Packet132TileEntityData(field_145851_c, field_145848_d, field_145849_e, 1, tag);
}
@@ -929,7 +929,7 @@ public class SmelteryLogic extends InventoryLogic implements IActiveLogic, IFaci
MultiServantLogic servant = (MultiServantLogic) te;
if (servant.hasValidMaster())
{
if (servant.verifyMaster(this, this.field_145851_c, this.field_145848_d, this.field_145849_e))
if (servant.verifyMaster(this, field_145850_b, this.field_145851_c, this.field_145848_d, this.field_145849_e))
tempBricks++;
}
else if (servant.setMaster(this.field_145851_c, this.field_145848_d, this.field_145849_e))
@@ -1108,9 +1108,9 @@ public class SmelteryLogic extends InventoryLogic implements IActiveLogic, IFaci
}
@Override
public void writeToNBT (NBTTagCompound tags)
public void func_145839_a (NBTTagCompound tags)
{
super.writeToNBT(tags);
super.func_145839_a(tags);
//tags.setBoolean("ValidStructure", validStructure);
tags.setInteger("InternalTemp", internalTemp);
@@ -1135,7 +1135,7 @@ public class SmelteryLogic extends InventoryLogic implements IActiveLogic, IFaci
for (FluidStack liquid : moltenMetal)
{
NBTTagCompound nbt = new NBTTagCompound();
liquid.writeToNBT(nbt);
liquid.func_145839_a(nbt);
taglist.appendTag(nbt);
}
@@ -1147,7 +1147,7 @@ public class SmelteryLogic extends InventoryLogic implements IActiveLogic, IFaci
public Packet getDescriptionPacket ()
{
NBTTagCompound tag = new NBTTagCompound();
writeToNBT(tag);
func_145839_a(tag);
return new Packet132TileEntityData(field_145851_c, field_145848_d, field_145849_e, 1, tag);
}
@@ -18,6 +18,7 @@ import tconstruct.TConstruct;
import tconstruct.blocks.component.TankAirComponent;
import mantle.blocks.abstracts.InventoryLogic;
import mantle.world.CoordTuple;
import mantle.world.WorldHelper;
import mantle.blocks.iface.IMasterLogic;
import mantle.blocks.iface.IServantLogic;
@@ -107,7 +108,7 @@ public class TankAirLogic extends InventoryLogic implements IServantLogic, ISide
@Override
public void invalidateMaster (IMasterLogic master, World world, int xMaster, int yMaster, int zMaster)
{
world.setBlockToAir(field_145851_c, field_145848_d, field_145849_e);
WorldHelper.setBlockToAir(world, field_145851_c, field_145848_d, field_145849_e);
}
@Override
@@ -137,7 +138,7 @@ public class TankAirLogic extends InventoryLogic implements IServantLogic, ISide
//DELETE
public void updateEntity ()
{
field_145850_b.setBlockToAir(field_145851_c, field_145848_d, field_145849_e);
WorldHelper.setBlockToAir(field_145850_b,field_145851_c, field_145848_d, field_145849_e);
}
//Keep TE regardless of metadata
@@ -163,11 +164,11 @@ public class TankAirLogic extends InventoryLogic implements IServantLogic, ISide
}
@Override
public void writeToNBT (NBTTagCompound tags)
public void func_145839_a (NBTTagCompound tags)
{
super.writeToNBT(tags);
super.func_145839_a(tags);
writeNetworkNBT(tags);
multitank.writeToNBT(tags);
multitank.func_145839_a(tags);
}
public void writeNetworkNBT (NBTTagCompound tags)
@@ -44,9 +44,9 @@ public class TileEntityLandmine extends TileEntity implements IInventory
}
@Override
public void writeToNBT (NBTTagCompound par1NBTTagCompound)
public void func_145839_a (NBTTagCompound par1NBTTagCompound)
{
super.writeToNBT(par1NBTTagCompound);
super.func_145839_a(par1NBTTagCompound);
NBTTagList nbttaglist = new NBTTagList();
for (int i = 0; i < this.inventory.length; ++i)
@@ -55,7 +55,7 @@ public class TileEntityLandmine extends TileEntity implements IInventory
{
NBTTagCompound nbttagcompound1 = new NBTTagCompound();
nbttagcompound1.setByte("Slot", (byte) i);
this.inventory[i].writeToNBT(nbttagcompound1);
this.inventory[i].func_145839_a(nbttagcompound1);
nbttaglist.appendTag(nbttagcompound1);
}
}
@@ -100,7 +100,7 @@ public class TileEntityLandmine extends TileEntity implements IInventory
public Packet getDescriptionPacket ()
{
NBTTagCompound nbt = new NBTTagCompound();
writeToNBT(nbt);
func_145839_a(nbt);
return new Packet132TileEntityData(field_145851_c, field_145848_d, field_145849_e, 0, nbt);
}
@@ -42,9 +42,9 @@ public class SlimeFluid extends BlockFluidClassic
return flowIcon;
}
public void updateTick (World world, int x, int y, int z, Random rand)
public void func_149674_a (World world, int x, int y, int z, Random rand)
{
super.updateTick(world, x, y, z, rand);
super.func_149674_a(world, x, y, z, rand);
if (rand.nextInt(100) == 0 && world.getBlockMetadata(x, y, z) == 0 && world.checkNoEntityCollision(AxisAlignedBB.getBoundingBox(x - 1, y - 1, z - 1, x + 2, y + 2, z + 2)))
{
BlueSlime entityslime = new BlueSlime(world);
@@ -22,7 +22,7 @@ public class SlimeGel extends TConstructBlock
public SlimeGel()
{
super(Material.sponge, 0.5f, new String[] { "slimeblock_blue", "slimeblock_green", "slimeblock_purple" });
setCreativeTab(TConstructRegistry.blockTab);
func_149647_a(TConstructRegistry.blockTab);
}
public boolean getEnableStats ()
@@ -32,7 +32,7 @@ public class SlimeGrass extends MantleBlock
super(Material.field_151577_b);
func_149711_c(0.6f);
this.setTickRandomly(true);
this.setCreativeTab(TConstructRegistry.blockTab);
this.func_149647_a(TConstructRegistry.blockTab);
}
@Override
@@ -33,7 +33,7 @@ public class SlimeSapling extends BlockSapling
setBlockBounds(0.5F - f, 0.0F, 0.5F - f, 0.5F + f, f * 2.0F, 0.5F + f);
this.func_149711_c(0.0F);
this.setStepSound(Block.soundGrassFootstep);
this.setCreativeTab(TConstructRegistry.blockTab);
this.func_149647_a(TConstructRegistry.blockTab);
}
@Override
@@ -53,13 +53,13 @@ public class SlimeSapling extends BlockSapling
return b == Blocks.grass || b == Blocks.dirt || b == TRepo.slimeGrass || b == TRepo.craftedSoil;
}
public void updateTick (World world, int x, int y, int z, Random random)
public void func_149674_a (World world, int x, int y, int z, Random random)
{
if (world.isRemote)
{
return;
}
super.updateTick(world, x, y, z, random);
super.func_149674_a(world, x, y, z, random);
int md = world.getBlockMetadata(x, y, z);
if (random.nextInt(10) == 0 && world.getBlockLightValue(x, y + 1, z) >= 9)
{
@@ -11,6 +11,7 @@ import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.ItemStack;
import net.minecraft.util.IIcon;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import net.minecraftforge.common.ForgeHooks;
import net.minecraftforge.common.IShearable;
@@ -29,7 +30,7 @@ public class SlimeTallGrass extends BlockFlower implements IShearable
super(Material.field_151582_l);
float f = 0.4F;
this.setBlockBounds(0.5F - f, 0.0F, 0.5F - f, 0.5F + f, 0.8F, 0.5F + f);
setCreativeTab(TConstructRegistry.blockTab);
func_149647_a(TConstructRegistry.blockTab);
}
@SideOnly(Side.CLIENT)
@@ -114,14 +115,15 @@ public class SlimeTallGrass extends BlockFlower implements IShearable
return ret;
}
@Override
public boolean isShearable (ItemStack item, World world, int x, int y, int z)
public boolean isShearable (ItemStack item, IBlockAccess world, int x, int y, int z)
{
return true;
}
@Override
public ArrayList<ItemStack> onSheared (ItemStack item, World world, int x, int y, int z, int fortune)
public ArrayList<ItemStack> onSheared (ItemStack item, IBlockAccess world, int x, int y, int z, int fortune)
{
ArrayList<ItemStack> ret = new ArrayList<ItemStack>();
ret.add(new ItemStack(this, 1, world.getBlockMetadata(x, y, z)));
@@ -124,7 +124,7 @@ public class BarricadeBlock extends MantleBlock
@Override
@SideOnly(Side.CLIENT)
public boolean shouldSideBeRendered (IBlockAccess world, int x, int y, int z, int side)
public boolean func_149646_a (IBlockAccess world, int x, int y, int z, int side)
{
return true;
}
@@ -111,7 +111,7 @@ public class Punji extends MantleBlock
@Override
@SideOnly(Side.CLIENT)
public boolean shouldSideBeRendered (IBlockAccess world, int x, int y, int z, int side)
public boolean func_149646_a (IBlockAccess world, int x, int y, int z, int side)
{
return true;
}
File diff suppressed because it is too large. Load diff
@@ -2,6 +2,7 @@ package tconstruct.client.block;
import tconstruct.blocks.PaneBase;
import tconstruct.client.TProxyClient;
import mantle.world.WorldHelper;
import net.minecraft.block.Block;
import net.minecraft.client.renderer.EntityRenderer;
import net.minecraft.client.renderer.RenderBlocks;
@@ -130,8 +131,8 @@ public class PaneRender implements ISimpleBlockRenderingHandler
boolean east = pane.canConnectTo(iblockaccess.func_147439_a(x, y, z + 1));
boolean south = pane.canConnectTo(iblockaccess.func_147439_a(x - 1, y, z));
boolean north = pane.canConnectTo(iblockaccess.func_147439_a(x + 1, y, z));
boolean renderAbove = pane.shouldSideBeRendered(iblockaccess, x, y + 1, z, 1);
boolean renderBelow = pane.shouldSideBeRendered(iblockaccess, x, y - 1, z, 0);
boolean renderAbove = pane.func_149646_a(iblockaccess, x, y + 1, z, 1);
boolean renderBelow = pane.func_149646_a(iblockaccess, x, y - 1, z, 0);
if ((!south || !north) && (south || north || west || east))
{
if (south && !north)
@@ -151,14 +152,14 @@ public class PaneRender implements ISimpleBlockRenderingHandler
tessellator.addVertexWithUV(xMid, y + 0, zMidDown, d6, d9);
tessellator.addVertexWithUV(xMid, y + 1, zMidDown, d6, d7);
}
if (renderAbove || y < l - 1 && iblockaccess.isAirBlock(x - 1, y + 1, z))
if (renderAbove || y < l - 1 && WorldHelper.isAirBlock(iblockaccess, x - 1, y + 1, z))
{
tessellator.addVertexWithUV(xBot, (double) (y + 1) + 0.01D, zMidUp, d6, d8);
tessellator.addVertexWithUV(xMid, (double) (y + 1) + 0.01D, zMidUp, d6, d9);
tessellator.addVertexWithUV(xMid, (double) (y + 1) + 0.01D, zMidDown, d5, d9);
tessellator.addVertexWithUV(xBot, (double) (y + 1) + 0.01D, zMidDown, d5, d8);
}
if (renderBelow || y > 1 && iblockaccess.isAirBlock(x - 1, y - 1, z))
if (renderBelow || y > 1 && WorldHelper.isAirBlock(iblockaccess, x - 1, y - 1, z))
{
tessellator.addVertexWithUV(xBot, (double) y - 0.01D, zMidUp, d6, d8);
tessellator.addVertexWithUV(xMid, (double) y - 0.01D, zMidUp, d6, d9);
File diff suppressed because it is too large. Load diff
+50 -50
View File
@@ -54,7 +54,7 @@ import tconstruct.util.config.*;
public class TContent implements IFuelHandler
{
//Temporary items
//public static Item armorTest = new ArmorStandard(2445, 4, EnumArmorPart.HELMET).setCreativeTab(CreativeTabs.tabAllSearch);
//public static Item armorTest = new ArmorStandard(2445, 4, EnumArmorPart.HELMET).func_149647_a(CreativeTabs.tabAllSearch);
public TContent()
{
@@ -98,7 +98,7 @@ public class TContent implements IFuelHandler
TRepo.heldItemBlock = new EquipBlock(Material.field_151575_d).func_149663_c("Frypan");
TRepo.craftedSoil = new SoilBlock().setLightOpacity(0).func_149663_c("TConstruct.Soil");
TRepo.craftedSoil = new SoilBlock().func_149713_g(0).func_149663_c("TConstruct.Soil");
TRepo.craftedSoil.field_149762_H = Block.soundGravelFootstep;
TRepo.searedSlab = new SearedSlab().func_149663_c("SearedSlab");
@@ -111,19 +111,19 @@ public class TContent implements IFuelHandler
TRepo.metalBlock.field_149762_H = Block.soundMetalFootstep;
TRepo.meatBlock = new MeatBlock().func_149663_c("tconstruct.meatblock");
TRepo.glueBlock = new GlueBlock().func_149663_c("GlueBlock").setCreativeTab(TConstructRegistry.blockTab);
TRepo.glueBlock = new GlueBlock().func_149663_c("GlueBlock").func_149647_a(TConstructRegistry.blockTab);
TRepo.woolSlab1 = new SlabBase(Material.field_151580_n, Blocks.wool, 0, 8).func_149663_c("cloth");
TRepo.woolSlab1.setStepSound(Block.soundClothFootstep).setCreativeTab(CreativeTabs.tabDecorations);
TRepo.woolSlab1.func_149672_a(Block.soundClothFootstep).func_149647_a(CreativeTabs.tabDecorations);
TRepo.woolSlab2 = new SlabBase(Material.field_151580_n, Blocks.wool, 8, 8).func_149663_c("cloth");
TRepo.woolSlab2.setStepSound(Block.soundClothFootstep).setCreativeTab(CreativeTabs.tabDecorations);
TRepo.woolSlab2.func_149672_a(Block.soundClothFootstep).func_149647_a(CreativeTabs.tabDecorations);
//Smeltery
TRepo.smeltery = new SmelteryBlock().func_149663_c("Smeltery");
TRepo.smelteryNether = new SmelteryBlock("nether").func_149663_c("Smeltery");
TRepo.lavaTank = new LavaTankBlock().func_149663_c("LavaTank");
TRepo.lavaTank.setStepSound(Block.soundGlassFootstep);
TRepo.lavaTankNether = new LavaTankBlock("nether").setStepSound(Block.soundGlassFootstep).func_149663_c("LavaTank");
TRepo.lavaTank.func_149672_a(Block.soundGlassFootstep);
TRepo.lavaTankNether = new LavaTankBlock("nether").func_149672_a(Block.soundGlassFootstep).func_149663_c("LavaTank");
TRepo.searedBlock = new SearedBlock().func_149663_c("SearedBlock");
TRepo.searedBlockNether = new SearedBlock("nether").func_149663_c("SearedBlock");
@@ -133,14 +133,14 @@ public class TContent implements IFuelHandler
TRepo.tankAir = new TankAirBlock(Material.field_151584_j).setBlockUnbreakable().func_149663_c("tconstruct.tank.air");
//Traps
TRepo.landmine = new BlockLandmine().setHardness(0.5F).setResistance(0F).setStepSound(Block.soundMetalFootstep).setCreativeTab(CreativeTabs.tabRedstone)
TRepo.landmine = new BlockLandmine().func_149711_c(0.5F).setResistance(0F).func_149672_a(Block.soundMetalFootstep).func_149647_a(CreativeTabs.tabRedstone)
.func_149663_c("landmine");
TRepo.punji = new Punji().func_149663_c("trap.punji");
TRepo.barricadeOak = new BarricadeBlock(Blocks.log, 0).func_149663_c("trap.barricade.oak");
TRepo.barricadeSpruce = new BarricadeBlock(Blocks.log, 1).func_149663_c("trap.barricade.spruce");
TRepo.barricadeBirch = new BarricadeBlock(Blocks.log, 2).func_149663_c("trap.barricade.birch");
TRepo.barricadeJungle = new BarricadeBlock(Blocks.log, 3).func_149663_c("trap.barricade.jungle");
TRepo.slimeExplosive = new SlimeExplosive().setHardness(0.0F).setStepSound(Block.field_149779_h).func_149663_c("explosive.slime");
TRepo.slimeExplosive = new SlimeExplosive().func_149711_c(0.0F).func_149672_a(Block.field_149779_h).func_149663_c("explosive.slime");
TRepo.dryingRack = new DryingRack().func_149663_c("Armor.DryingRack");
@@ -353,7 +353,7 @@ public class TContent implements IFuelHandler
TRepo.blueSlimeFluid = new Fluid("slime.blue");
if (!FluidRegistry.registerFluid(TRepo.blueSlimeFluid))
TRepo.blueSlimeFluid = FluidRegistry.getFluid("slime.blue");
TRepo.slimePool = new SlimeFluid(PHConstruct.slimePoolBlue, TRepo.blueSlimeFluid, Material.field_151586_h).setCreativeTab(TConstructRegistry.blockTab).setStepSound(TRepo.slimeStep)
TRepo.slimePool = new SlimeFluid(PHConstruct.slimePoolBlue, TRepo.blueSlimeFluid, Material.field_151586_h).func_149647_a(TConstructRegistry.blockTab).func_149672_a(TRepo.slimeStep)
.func_149663_c("liquid.slime");
GameRegistry.registerBlock(TRepo.slimePool, "liquid.slime");
TRepo.blueSlimeFluid.setBlockID(TRepo.slimePool);
@@ -363,7 +363,7 @@ public class TContent implements IFuelHandler
TRepo.glueFluid = new Fluid("glue").setDensity(6000).setViscosity(6000).setTemperature(200);
if (!FluidRegistry.registerFluid(TRepo.glueFluid))
TRepo.glueFluid = FluidRegistry.getFluid("glue");
TRepo.glueFluidBlock = new GlueFluid(PHConstruct.glueFluidBlock, TRepo.glueFluid, Material.field_151586_h).setCreativeTab(TConstructRegistry.blockTab).setStepSound(TRepo.slimeStep)
TRepo.glueFluidBlock = new GlueFluid(PHConstruct.glueFluidBlock, TRepo.glueFluid, Material.field_151586_h).func_149647_a(TConstructRegistry.blockTab).func_149672_a(TRepo.slimeStep)
.func_149663_c("liquid.glue");
GameRegistry.registerBlock(TRepo.glueFluidBlock, "liquid.glue");
TRepo.glueFluid.setBlockID(TRepo.glueFluidBlock);
@@ -382,14 +382,14 @@ public class TContent implements IFuelHandler
TRepo.moltenAlubrass, TRepo.moltenManyullyn, TRepo.moltenAlumite, TRepo.moltenObsidian, TRepo.moltenSteel, TRepo.moltenGlass, TRepo.moltenStone, TRepo.moltenEmerald, TRepo.blood,
TRepo.moltenNickel, TRepo.moltenLead, TRepo.moltenSilver, TRepo.moltenShiny, TRepo.moltenInvar, TRepo.moltenElectrum, TRepo.moltenEnder, TRepo.slimePool, TRepo.glueFluidBlock };
//Slime Islands
TRepo.slimeGel = new SlimeGel().setStepSound(TRepo.slimeStep).setLightOpacity(0).func_149663_c("slime.gel");
TRepo.slimeGrass = new SlimeGrass().setStepSound(Block.field_149779_h).setLightOpacity(0).func_149663_c("slime.grass");
TRepo.slimeTallGrass = new SlimeTallGrass().setStepSound(Block.field_149779_h).func_149663_c("slime.grass.tall");
TRepo.slimeLeaves = (SlimeLeaves) new SlimeLeaves().setStepSound(TRepo.slimeStep).setLightOpacity(0).func_149663_c("slime.leaves");
TRepo.slimeSapling = (SlimeSapling) new SlimeSapling().setStepSound(TRepo.slimeStep).func_149663_c("slime.sapling");
TRepo.slimeChannel = new ConveyorBase(Material.field_151586_h, "greencurrent").setHardness(0.3f).setStepSound(TRepo.slimeStep).func_149663_c("slime.channel");
TRepo.bloodChannel = new ConveyorBase(Material.field_151586_h, "liquid_cow").setHardness(0.3f).setStepSound(TRepo.slimeStep).func_149663_c("blood.channel");
TRepo.slimePad = new SlimePad(Material.field_151580_n).setStepSound(TRepo.slimeStep).setHardness(0.3f).func_149663_c("slime.pad");
TRepo.slimeGel = new SlimeGel().func_149672_a(TRepo.slimeStep).func_149713_g(0).func_149663_c("slime.gel");
TRepo.slimeGrass = new SlimeGrass().func_149672_a(Block.field_149779_h).func_149713_g(0).func_149663_c("slime.grass");
TRepo.slimeTallGrass = new SlimeTallGrass().func_149672_a(Block.field_149779_h).func_149663_c("slime.grass.tall");
TRepo.slimeLeaves = (SlimeLeaves) new SlimeLeaves().func_149672_a(TRepo.slimeStep).func_149713_g(0).func_149663_c("slime.leaves");
TRepo.slimeSapling = (SlimeSapling) new SlimeSapling().func_149672_a(TRepo.slimeStep).func_149663_c("slime.sapling");
TRepo.slimeChannel = new ConveyorBase(Material.field_151586_h, "greencurrent").func_149711_c(0.3f).func_149672_a(TRepo.slimeStep).func_149663_c("slime.channel");
TRepo.bloodChannel = new ConveyorBase(Material.field_151586_h, "liquid_cow").func_149711_c(0.3f).func_149672_a(TRepo.slimeStep).func_149663_c("blood.channel");
TRepo.slimePad = new SlimePad(Material.field_151580_n).func_149672_a(TRepo.slimeStep).func_149711_c(0.3f).func_149663_c("slime.pad");
//Decoration
TRepo.stoneTorch = new StoneTorch().func_149663_c("decoration.stonetorch");
@@ -432,7 +432,7 @@ public class TContent implements IFuelHandler
TRepo.stainedGlassClearPane = new GlassPaneStained(PHConstruct.stainedGlassClearPane);
//Rail
TRepo.woodenRail = new WoodRail().setStepSound(Block.soundWoodFootstep).setCreativeTab(TConstructRegistry.blockTab).func_149663_c("rail.wood");
TRepo.woodenRail = new WoodRail().func_149672_a(Block.soundWoodFootstep).func_149647_a(TConstructRegistry.blockTab).func_149663_c("rail.wood");
}
@@ -477,34 +477,34 @@ public class TContent implements IFuelHandler
TConstructRegistry.addItemStackToDirectory(armorPartTypes[i] + "Cast", new ItemStack(armorPattern, 1, i));
}*/
TRepo.manualBook = new Manual(PHConstruct.manual);
TRepo.manualBook = new Manual();
GameRegistry.registerItem(TRepo.manualBook, "manualBook");
TRepo.buckets = new FilledBucket(PHConstruct.buckets);
GameRegistry.registerItem(TRepo.buckets, "buckets");
TRepo.pickaxe = new Pickaxe(PHConstruct.pickaxe);
TRepo.shovel = new Shovel(PHConstruct.shovel);
TRepo.hatchet = new Hatchet(PHConstruct.axe);
TRepo.broadsword = new Broadsword(PHConstruct.broadsword);
TRepo.longsword = new Longsword(PHConstruct.longsword);
TRepo.rapier = new Rapier(PHConstruct.rapier);
TRepo.dagger = new Dagger(PHConstruct.dagger);
TRepo.cutlass = new Cutlass(PHConstruct.cutlass);
TRepo.pickaxe = new Pickaxe();
TRepo.shovel = new Shovel();
TRepo.hatchet = new Hatchet();
TRepo.broadsword = new Broadsword();
TRepo.longsword = new Longsword();
TRepo.rapier = new Rapier();
TRepo.dagger = new Dagger();
TRepo.cutlass = new Cutlass();
TRepo.frypan = new FryingPan(PHConstruct.frypan);
TRepo.battlesign = new BattleSign(PHConstruct.battlesign);
TRepo.mattock = new Mattock(PHConstruct.mattock);
TRepo.chisel = new Chisel(PHConstruct.chisel);
TRepo.frypan = new FryingPan();
TRepo.battlesign = new BattleSign();
TRepo.mattock = new Mattock();
TRepo.chisel = new Chisel();
TRepo.lumberaxe = new LumberAxe(PHConstruct.lumberaxe);
TRepo.cleaver = new Cleaver(PHConstruct.cleaver);
TRepo.scythe = new Scythe(PHConstruct.scythe);
TRepo.excavator = new Excavator(PHConstruct.excavator);
TRepo.hammer = new Hammer(PHConstruct.hammer);
TRepo.battleaxe = new Battleaxe(PHConstruct.battleaxe);
TRepo.lumberaxe = new LumberAxe();
TRepo.cleaver = new Cleaver();
TRepo.scythe = new Scythe();
TRepo.excavator = new Excavator();
TRepo.hammer = new Hammer();
TRepo.battleaxe = new Battleaxe();
TRepo.shortbow = new Shortbow(PHConstruct.shortbow);
TRepo.arrow = new Arrow(PHConstruct.arrow);
TRepo.shortbow = new Shortbow();
TRepo.arrow = new Arrow();
Item[] tools = { TRepo.pickaxe, TRepo.shovel, TRepo.hatchet, TRepo.broadsword, TRepo.longsword, TRepo.rapier, TRepo.dagger, TRepo.cutlass, TRepo.frypan, TRepo.battlesign, TRepo.mattock,
TRepo.chisel, TRepo.lumberaxe, TRepo.cleaver, TRepo.scythe, TRepo.excavator, TRepo.hammer, TRepo.battleaxe, TRepo.shortbow, TRepo.arrow };
@@ -517,18 +517,18 @@ public class TContent implements IFuelHandler
TConstructRegistry.addItemToDirectory(toolStrings[i], tools[i]);
}
TRepo.potionLauncher = new PotionLauncher(PHConstruct.potionLauncher).func_149663_c("tconstruct.PotionLauncher");
TRepo.potionLauncher = new PotionLauncher().func_149663_c("tconstruct.PotionLauncher");
GameRegistry.registerItem(TRepo.potionLauncher, "potionLauncher");
TRepo.pickaxeHead = new ToolPart(PHConstruct.pickaxeHead, "_pickaxe_head", "PickHead").func_149663_c("tconstruct.PickaxeHead");
TRepo.shovelHead = new ToolPart(PHConstruct.shovelHead, "_shovel_head", "ShovelHead").func_149663_c("tconstruct.ShovelHead");
TRepo.hatchetHead = new ToolPart(PHConstruct.axeHead, "_axe_head", "AxeHead").func_149663_c("tconstruct.AxeHead");
TRepo.binding = new ToolPart(PHConstruct.binding, "_binding", "Binding").func_149663_c("tconstruct.Binding");
TRepo.toughBinding = new ToolPart(PHConstruct.toughBinding, "_toughbind", "ToughBind").func_149663_c("tconstruct.ThickBinding");
TRepo.toughRod = new ToolPart(PHConstruct.toughRod, "_toughrod", "ToughRod").func_149663_c("tconstruct.ThickRod");
TRepo.largePlate = new ToolPart(PHConstruct.largePlate, "_largeplate", "LargePlate").func_149663_c("tconstruct.LargePlate");
TRepo.pickaxeHead = new ToolPart("_pickaxe_head", "PickHead").func_149663_c("tconstruct.PickaxeHead");
TRepo.shovelHead = new ToolPart("_shovel_head", "ShovelHead").func_149663_c("tconstruct.ShovelHead");
TRepo.hatchetHead = new ToolPart( "_axe_head", "AxeHead").func_149663_c("tconstruct.AxeHead");
TRepo.binding = new ToolPart( "_binding", "Binding").func_149663_c("tconstruct.Binding");
TRepo.toughBinding = new ToolPart("_toughbind", "ToughBind").func_149663_c("tconstruct.ThickBinding");
TRepo.toughRod = new ToolPart("_toughrod", "ToughRod").func_149663_c("tconstruct.ThickRod");
TRepo.largePlate = new ToolPart("_largeplate", "LargePlate").func_149663_c("tconstruct.LargePlate");
TRepo.swordBlade = new ToolPart(PHConstruct.swordBlade, "_sword_blade", "SwordBlade").func_149663_c("tconstruct.SwordBlade");
TRepo.swordBlade = new ToolPart("_sword_blade", "SwordBlade").func_149663_c("tconstruct.SwordBlade");
TRepo.wideGuard = new ToolPart(PHConstruct.largeGuard, "_large_guard", "LargeGuard").func_149663_c("tconstruct.LargeGuard");
TRepo.handGuard = new ToolPart(PHConstruct.medGuard, "_medium_guard", "MediumGuard").func_149663_c("tconstruct.MediumGuard");
TRepo.crossbar = new ToolPart(PHConstruct.crossbar, "_crossbar", "Crossbar").func_149663_c("tconstruct.Crossbar");
@@ -7,7 +7,7 @@ import net.minecraft.item.Item;
public class Cutlass extends Weapon
{
public Cutlass(int itemID)
public Cutlass()
{
super(4);
this.setUnlocalizedName("InfiTool.Cutlass");