run through remap script

This commit is contained in:
Progwml6 committed 2014-02-05 08:28:53 -05:00
1 parent 689aeba09b
commit b8cf7cdc5e
208 files changed
+4117 -4117

No files matched your search

@@ -27,7 +27,7 @@ public class SlimeFluid extends BlockFluidClassic
@Override
@SideOnly(Side.CLIENT)
public void func_149651_a (IIconRegister iconRegister)
public void registerBlockIcons (IIconRegister iconRegister)
{
stillIcon = iconRegister.registerIcon("tinker:slime_blue");
flowIcon = iconRegister.registerIcon("tinker:slime_blue_flow");
@@ -35,16 +35,16 @@ public class SlimeFluid extends BlockFluidClassic
@Override
@SideOnly(Side.CLIENT)
public IIcon func_149691_a (int side, int meta)
public IIcon getIcon (int side, int meta)
{
if (side == 0 || side == 1)
return stillIcon;
return flowIcon;
}
public void func_149674_a (World world, int x, int y, int z, Random rand)
public void updateTick (World world, int x, int y, int z, Random rand)
{
super.func_149674_a(world, x, y, z, rand);
super.updateTick(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);
@@ -21,8 +21,8 @@ public class SlimeGel extends TConstructBlock
{
public SlimeGel()
{
super(Material.field_151583_m, 0.5f, new String[] { "slimeblock_blue", "slimeblock_green", "slimeblock_purple" });
func_149647_a(TConstructRegistry.blockTab);
super(Material.sponge, 0.5f, new String[] { "slimeblock_blue", "slimeblock_green", "slimeblock_purple" });
setCreativeTab(TConstructRegistry.blockTab);
}
public boolean getEnableStats ()
@@ -41,14 +41,14 @@ public class SlimeGel extends TConstructBlock
}
@Override
public void func_149670_a (World world, int x, int y, int z, Entity entity)
public void onEntityCollidedWithBlock (World world, int x, int y, int z, Entity entity)
{
if (entity.motionY < 0)
{
if (entity.motionY < -0.08F)
{
Block var9 = (Block) this;
world.playSoundEffect(x + 0.5F, y + 0.5F, z + 0.5F, var9.field_149762_H.field_150501_a, (var9.field_149762_H.func_150497_c()) / 2.0F, var9.field_149762_H.func_150494_d() * 0.65F);
world.playSoundEffect(x + 0.5F, y + 0.5F, z + 0.5F, var9.stepSound.soundName, (var9.stepSound.getVolume()) / 2.0F, var9.stepSound.getPitch() * 0.65F);
}
entity.motionY *= -1.2F;
if (entity instanceof EntityLivingBase)
@@ -60,7 +60,7 @@ public class SlimeGel extends TConstructBlock
}
@Override
public AxisAlignedBB func_149668_a (World world, int x, int y, int z)
public AxisAlignedBB getCollisionBoundingBoxFromPool (World world, int x, int y, int z)
{
return AxisAlignedBB.getBoundingBox(x, y, z, (double) x + 1.0D, (double) y + 0.625D, (double) z + 1.0D);
}
@@ -30,14 +30,14 @@ public class SlimeGrass extends MantleBlock
public SlimeGrass()
{
super(Material.field_151577_b);
func_149711_c(0.6f);
this.func_149675_a(true);
this.func_149647_a(TConstructRegistry.blockTab);
super(Material.grass);
setHardness(0.6f);
this.setTickRandomly(true);
this.setCreativeTab(TConstructRegistry.blockTab);
}
@Override
public int func_149692_a (int meta)
public int damageDropped (int meta)
{
if (meta == 1) //dirt
return 0;
@@ -49,7 +49,7 @@ public class SlimeGrass extends MantleBlock
@Override
@SideOnly(Side.CLIENT)
public void func_149651_a (IIconRegister iconRegister)
public void registerBlockIcons (IIconRegister iconRegister)
{
this.icons = new IIcon[textureNames.length];
@@ -61,14 +61,14 @@ public class SlimeGrass extends MantleBlock
@Override
@SideOnly(Side.CLIENT)
public IIcon func_149691_a (int side, int meta)
public IIcon getIcon (int side, int meta)
{
if (meta >= 2)
meta = 0;
if (side == 0)
{
return meta % 2 == 1 ? Blocks.dirt.func_149691_a(0, 0) : icons[1];
return meta % 2 == 1 ? Blocks.dirt.getIcon(0, 0) : icons[1];
}
else if (side == 1)
{
@@ -81,7 +81,7 @@ public class SlimeGrass extends MantleBlock
}
@Override
public void func_149666_a (Item b, CreativeTabs tab, List list)
public void getSubBlocks (Item b, CreativeTabs tab, List list)
{
for (int iter = 0; iter < 1; iter++)
{
@@ -98,7 +98,7 @@ public class SlimeGrass extends MantleBlock
public void onPlantGrow (World world, int x, int y, int z, int sourceX, int sourceY, int sourceZ)
{
world.func_147465_d(x, y, z, TRepo.craftedSoil, 5, 3);
world.setBlock(x, y, z, TRepo.craftedSoil, 5, 3);
}
public void updateTick (World par1World, int par2, int par3, int par4, Random par5Random)
@@ -107,7 +107,7 @@ public class SlimeGrass extends MantleBlock
{
if (par1World.getBlockLightValue(par2, par3 + 1, par4) < 4 && par1World.getBlockLightOpacity(par2, par3 + 1, par4) > 2)
{
par1World.func_147465_d(par2, par3, par4, TRepo.craftedSoil, 5, 3);
par1World.setBlock(par2, par3, par4, TRepo.craftedSoil, 5, 3);
}
else if (par1World.getBlockLightValue(par2, par3 + 1, par4) >= 9)
{
@@ -116,21 +116,21 @@ public class SlimeGrass extends MantleBlock
int posX = par2 + par5Random.nextInt(3) - 1;
int posY = par3 + par5Random.nextInt(5) - 3;
int posZ = par4 + par5Random.nextInt(3) - 1;
Block l1 = par1World.func_147439_a(posX, posY + 1, posZ);
Block l1 = par1World.getBlock(posX, posY + 1, posZ);
if (par1World.getBlockLightValue(posX, posY + 1, posZ) >= 4 && par1World.getBlockLightOpacity(posX, posY + 1, posZ) <= 2)
{
Block block = par1World.func_147439_a(posX, posY, posZ);
Block block = par1World.getBlock(posX, posY, posZ);
if (block == Blocks.dirt)
{
par1World.func_147465_d(posX, posY, posZ,(Block) this, 1, 3);
par1World.setBlock(posX, posY, posZ,(Block) this, 1, 3);
return;
}
int blockMeta = par1World.getBlockMetadata(posX, posY, posZ);
if (block == TRepo.craftedSoil)
{
if (blockMeta == 5)
par1World.func_147465_d(posX, posY, posZ, (Block) this, 0, 3);
par1World.setBlock(posX, posY, posZ, (Block) this, 0, 3);
}
}
}
@@ -28,9 +28,9 @@ public class SlimeLeaves extends BlockLeaves
public SlimeLeaves()
{
super();
func_149647_a(TConstructRegistry.blockTab);
func_149713_g(1);
this.func_149711_c(0.3f);
setCreativeTab(TConstructRegistry.blockTab);
setLightOpacity(1);
this.setHardness(0.3f);
}
@SideOnly(Side.CLIENT)
@@ -53,7 +53,7 @@ public class SlimeLeaves extends BlockLeaves
@SideOnly(Side.CLIENT)
@Override
public void func_149651_a (IIconRegister iconRegister)
public void registerBlockIcons (IIconRegister iconRegister)
{
this.fastIcons = new IIcon[fastLeaves.length];
this.fancyIcons = new IIcon[fancyLeaves.length];
@@ -67,7 +67,7 @@ public class SlimeLeaves extends BlockLeaves
@Override
@SideOnly(Side.CLIENT)
public IIcon func_149691_a (int side, int meta)
public IIcon getIcon (int side, int meta)
{
int tex = meta % 4;
@@ -78,7 +78,7 @@ public class SlimeLeaves extends BlockLeaves
}
@Override
public void func_149666_a (Item b, CreativeTabs tab, List list)
public void getSubBlocks (Item b, CreativeTabs tab, List list)
{
for (int iter = 0; iter < fastIcons.length; iter++)
{
@@ -97,7 +97,7 @@ public class SlimeLeaves extends BlockLeaves
/**
* Returns the ID of the items to drop on destruction.
*/
public Item func_149650_a (int par1, Random par2Random, int par3)
public Item getItemDropped (int par1, Random par2Random, int par3)
{
return new ItemStack(TRepo.slimeSapling).getItem();
}
@@ -128,8 +128,8 @@ public class SlimeLeaves extends BlockLeaves
if (world.rand.nextInt(dropChance) == 0)
{
Item k1 = this.func_149650_a(meta, world.rand, fortune);
this.func_149642_a(world, x, y, z, new ItemStack(k1, 1, this.func_149692_a(meta)));
Item k1 = this.getItemDropped(meta, world.rand, fortune);
this.dropBlockAsItem(world, x, y, z, new ItemStack(k1, 1, this.damageDropped(meta)));
}
dropChance = 80;
@@ -146,7 +146,7 @@ public class SlimeLeaves extends BlockLeaves
if ((meta & 3) == 0 && world.rand.nextInt(dropChance) == 0)
{
this.func_149642_a(world, x, y, z, new ItemStack(TRepo.strangeFood, 1, 0));
this.dropBlockAsItem(world, x, y, z, new ItemStack(TRepo.strangeFood, 1, 0));
}
}
}
@@ -30,15 +30,15 @@ public class SlimeSapling extends BlockSapling
{
super();
float f = 0.4F;
func_149676_a(0.5F - f, 0.0F, 0.5F - f, 0.5F + f, f * 2.0F, 0.5F + f);
this.func_149711_c(0.0F);
this.field_149762_H = Block.field_149779_h;
this.func_149647_a(TConstructRegistry.blockTab);
setBlockBounds(0.5F - f, 0.0F, 0.5F - f, 0.5F + f, f * 2.0F, 0.5F + f);
this.setHardness(0.0F);
this.stepSound = Block.soundTypeGrass;
this.setCreativeTab(TConstructRegistry.blockTab);
}
@Override
@SideOnly(Side.CLIENT)
public void func_149651_a (IIconRegister iconRegister)
public void registerBlockIcons (IIconRegister iconRegister)
{
this.icons = new IIcon[textureNames.length];
@@ -53,13 +53,13 @@ public class SlimeSapling extends BlockSapling
return b == Blocks.grass || b == Blocks.dirt || b == TRepo.slimeGrass || b == TRepo.craftedSoil;
}
public void func_149674_a (World world, int x, int y, int z, Random random)
public void updateTick (World world, int x, int y, int z, Random random)
{
if (world.isRemote)
{
return;
}
super.func_149674_a(world, x, y, z, random);
super.updateTick(world, x, y, z, random);
int md = world.getBlockMetadata(x, y, z);
if (random.nextInt(10) == 0 && world.getBlockLightValue(x, y + 1, z) >= 9)
{
@@ -73,7 +73,7 @@ public class SlimeSapling extends BlockSapling
@Override
@SideOnly(Side.CLIENT)
public IIcon func_149691_a (int side, int meta)
public IIcon getIcon (int side, int meta)
{
return icons[meta % 8];
}
@@ -106,13 +106,13 @@ public class SlimeSapling extends BlockSapling
public void growTree (World world, int x, int y, int z, Random random)
{
int md = world.getBlockMetadata(x, y, z) % 8;
world.func_147449_b(x, y, z, Blocks.air);
world.setBlock(x, y, z, Blocks.air);
WorldGenerator obj = null;
obj = new SlimeTreeGen(true, 5, 4, 1, 0);
if (!(obj.generate(world, random, x, y, z)))
world.func_147465_d(x, y, z, Blocks.air, md + 8, 3);
world.setBlock(x, y, z, Blocks.air, md + 8, 3);
}
public int damageDropped (int i)
@@ -122,7 +122,7 @@ public class SlimeSapling extends BlockSapling
@SideOnly(Side.CLIENT)
@Override
public void func_149666_a (Item b, CreativeTabs par2CreativeTabs, List par3List)
public void getSubBlocks (Item b, CreativeTabs par2CreativeTabs, List par3List)
{
for (int i = 0; i < 1; i++)
par3List.add(new ItemStack(b, 1, i));
@@ -28,17 +28,17 @@ public class SlimeTallGrass extends BlockBush implements IShearable
public SlimeTallGrass()
{
super(Material.field_151582_l);
super(Material.vine);
float f = 0.4F;
this.func_149676_a(0.5F - f, 0.0F, 0.5F - f, 0.5F + f, 0.8F, 0.5F + f);
func_149647_a(TConstructRegistry.blockTab);
this.setBlockBounds(0.5F - f, 0.0F, 0.5F - f, 0.5F + f, 0.8F, 0.5F + f);
setCreativeTab(TConstructRegistry.blockTab);
}
@SideOnly(Side.CLIENT)
/**
* From the specified side and block metadata retrieves the blocks texture. Args: side, metadata
*/
public IIcon func_149691_a (int side, int meta)
public IIcon getIcon (int side, int meta)
{
/*if (meta >= this.iconArray.length)
{
@@ -89,7 +89,7 @@ public class SlimeTallGrass extends BlockBush implements IShearable
* When this method is called, your block should register all the icons it needs with the given IconRegister. This
* is the only chance you get to register icons.
*/
public void func_149651_a (IIconRegister par1IconRegister)
public void registerBlockIcons (IIconRegister par1IconRegister)
{
this.iconArray = new IIcon[grassTypes.length];