mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 03:49:29 +00:00
run through remap script
This commit is contained in:
1 parent
689aeba09b
commit
b8cf7cdc5e
208 files changed
+4117
-4117
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user