TContent refactor Part 1

This commit is contained in:
Progwml6 committed 2013-11-29 23:16:32 -05:00
1 parent 241bfcf0d5
commit 1a74c0768f
77 files changed
+1884 -5647

No files matched your search

@@ -14,6 +14,7 @@ import net.minecraftforge.common.EnumPlantType;
import net.minecraftforge.common.ForgeDirection;
import net.minecraftforge.common.IPlantable;
import tconstruct.common.TContent;
import tconstruct.common.TRepo;
import tconstruct.library.TConstructRegistry;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
@@ -93,7 +94,7 @@ public class SlimeGrass extends Block
public void onPlantGrow (World world, int x, int y, int z, int sourceX, int sourceY, int sourceZ)
{
world.setBlock(x, y, z, TContent.craftedSoil.blockID, 5, 3);
world.setBlock(x, y, z, TRepo.craftedSoil.blockID, 5, 3);
}
public void updateTick (World par1World, int par2, int par3, int par4, Random par5Random)
@@ -102,7 +103,7 @@ public class SlimeGrass extends Block
{
if (par1World.getBlockLightValue(par2, par3 + 1, par4) < 4 && par1World.getBlockLightOpacity(par2, par3 + 1, par4) > 2)
{
par1World.setBlock(par2, par3, par4, TContent.craftedSoil.blockID, 5, 3);
par1World.setBlock(par2, par3, par4, TRepo.craftedSoil.blockID, 5, 3);
}
else if (par1World.getBlockLightValue(par2, par3 + 1, par4) >= 9)
{
@@ -122,7 +123,7 @@ public class SlimeGrass extends Block
return;
}
int blockMeta = par1World.getBlockMetadata(posX, posY, posZ);
if (blockID == TContent.craftedSoil.blockID)
if (blockID == TRepo.craftedSoil.blockID)
{
if (blockMeta == 5)
par1World.setBlock(posX, posY, posZ, this.blockID, 0, 3);
@@ -136,7 +137,7 @@ public class SlimeGrass extends Block
public int idDropped (int metadata, Random random, int fortune)
{
if (metadata == 1)
return TContent.craftedSoil.blockID;
return TRepo.craftedSoil.blockID;
else
return Block.dirt.blockID;
}
@@ -11,6 +11,7 @@ import net.minecraft.util.Icon;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import tconstruct.common.TContent;
import tconstruct.common.TRepo;
import tconstruct.library.TConstructRegistry;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
@@ -96,7 +97,7 @@ public class SlimeLeaves extends BlockLeaves
*/
public int idDropped (int par1, Random par2Random, int par3)
{
return TContent.slimeSapling.blockID;
return TRepo.slimeSapling.blockID;
}
/**
@@ -143,7 +144,7 @@ public class SlimeLeaves extends BlockLeaves
if ((meta & 3) == 0 && world.rand.nextInt(dropChance) == 0)
{
this.dropBlockAsItem_do(world, x, y, z, new ItemStack(TContent.strangeFood, 1, 0));
this.dropBlockAsItem_do(world, x, y, z, new ItemStack(TRepo.strangeFood, 1, 0));
}
}
}
@@ -13,6 +13,7 @@ import net.minecraft.util.Icon;
import net.minecraft.world.World;
import net.minecraft.world.gen.feature.WorldGenerator;
import tconstruct.common.TContent;
import tconstruct.common.TRepo;
import tconstruct.library.TConstructRegistry;
import tconstruct.worldgen.SlimeTreeGen;
import cpw.mods.fml.relauncher.Side;
@@ -47,7 +48,7 @@ public class SlimeSapling extends BlockSapling
public boolean canThisPlantGrowOnThisBlockID (int id)
{
return id == Block.grass.blockID || id == Block.dirt.blockID || id == TContent.slimeGrass.blockID || id == TContent.craftedSoil.blockID;
return id == Block.grass.blockID || id == Block.dirt.blockID || id == TRepo.slimeGrass.blockID || id == TRepo.craftedSoil.blockID;
}
public void updateTick (World world, int x, int y, int z, Random random)