mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-20 04:09:40 +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
@@ -58,7 +58,7 @@ public class TConstruct
|
||||
public static TProxyCommon proxy;
|
||||
|
||||
//The name of the enum is accompanied by numbers because I have no idea what will happen if another mod will try to add the same enum, just to be safe
|
||||
//public static EnumCreatureType creatureTypePlayer = EnumHelper.addCreatureType("PLAYER_5821443", EntityPlayer.class, 0, Material.field_151579_a, true);
|
||||
//public static EnumCreatureType creatureTypePlayer = EnumHelper.addCreatureType("PLAYER_5821443", EntityPlayer.class, 0, Material.air, true);
|
||||
|
||||
//The packet pipeline
|
||||
public static final PacketPipeline packetPipeline = new PacketPipeline();
|
||||
|
||||
@@ -11,12 +11,12 @@ import net.minecraft.world.World;
|
||||
|
||||
public class BlockFalling extends Block
|
||||
{
|
||||
public static boolean field_149832_M;
|
||||
public static boolean fallInstantly;
|
||||
|
||||
public BlockFalling()
|
||||
{
|
||||
super(Material.field_151596_z);
|
||||
this.func_149647_a(CreativeTabs.tabBlock);
|
||||
super(Material.craftedSnow);
|
||||
this.setCreativeTab(CreativeTabs.tabBlock);
|
||||
}
|
||||
|
||||
public BlockFalling(Material p_i45405_1_)
|
||||
@@ -24,17 +24,17 @@ public class BlockFalling extends Block
|
||||
super(p_i45405_1_);
|
||||
}
|
||||
|
||||
public void func_149726_b(World p_149726_1_, int p_149726_2_, int p_149726_3_, int p_149726_4_)
|
||||
public void onBlockAdded(World p_149726_1_, int p_149726_2_, int p_149726_3_, int p_149726_4_)
|
||||
{
|
||||
p_149726_1_.func_147464_a(p_149726_2_, p_149726_3_, p_149726_4_, this, this.func_149738_a(p_149726_1_));
|
||||
p_149726_1_.scheduleBlockUpdate(p_149726_2_, p_149726_3_, p_149726_4_, this, this.tickRate(p_149726_1_));
|
||||
}
|
||||
|
||||
public void func_149695_a(World p_149695_1_, int p_149695_2_, int p_149695_3_, int p_149695_4_, Block p_149695_5_)
|
||||
public void onNeighborBlockChange(World p_149695_1_, int p_149695_2_, int p_149695_3_, int p_149695_4_, Block p_149695_5_)
|
||||
{
|
||||
p_149695_1_.func_147464_a(p_149695_2_, p_149695_3_, p_149695_4_, this, this.func_149738_a(p_149695_1_));
|
||||
p_149695_1_.scheduleBlockUpdate(p_149695_2_, p_149695_3_, p_149695_4_, this, this.tickRate(p_149695_1_));
|
||||
}
|
||||
|
||||
public void func_149674_a(World p_149674_1_, int p_149674_2_, int p_149674_3_, int p_149674_4_, Random p_149674_5_)
|
||||
public void updateTick(World p_149674_1_, int p_149674_2_, int p_149674_3_, int p_149674_4_, Random p_149674_5_)
|
||||
{
|
||||
if (!p_149674_1_.isRemote)
|
||||
{
|
||||
@@ -48,7 +48,7 @@ public class BlockFalling extends Block
|
||||
{
|
||||
byte b0 = 32;
|
||||
|
||||
if (!field_149832_M && p_149830_1_.checkChunksExist(p_149830_2_ - b0, p_149830_3_ - b0, p_149830_4_ - b0, p_149830_2_ + b0, p_149830_3_ + b0, p_149830_4_ + b0))
|
||||
if (!fallInstantly && p_149830_1_.checkChunksExist(p_149830_2_ - b0, p_149830_3_ - b0, p_149830_4_ - b0, p_149830_2_ + b0, p_149830_3_ + b0, p_149830_4_ + b0))
|
||||
{
|
||||
if (!p_149830_1_.isRemote)
|
||||
{
|
||||
@@ -59,7 +59,7 @@ public class BlockFalling extends Block
|
||||
}
|
||||
else
|
||||
{
|
||||
p_149830_1_.func_147468_f(p_149830_2_, p_149830_3_, p_149830_4_);
|
||||
p_149830_1_.setBlockToAir(p_149830_2_, p_149830_3_, p_149830_4_);
|
||||
|
||||
while (func_149831_e(p_149830_1_, p_149830_2_, p_149830_3_ - 1, p_149830_4_) && p_149830_3_ > 0)
|
||||
{
|
||||
@@ -68,7 +68,7 @@ public class BlockFalling extends Block
|
||||
|
||||
if (p_149830_3_ > 0)
|
||||
{
|
||||
p_149830_1_.func_147449_b(p_149830_2_, p_149830_3_, p_149830_4_, this);
|
||||
p_149830_1_.setBlock(p_149830_2_, p_149830_3_, p_149830_4_, this);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -76,14 +76,14 @@ public class BlockFalling extends Block
|
||||
|
||||
protected void func_149829_a(EntityFallingBlock p_149829_1_) {}
|
||||
|
||||
public int func_149738_a(World p_149738_1_)
|
||||
public int tickRate(World p_149738_1_)
|
||||
{
|
||||
return 2;
|
||||
}
|
||||
|
||||
public static boolean func_149831_e(World p_149831_0_, int p_149831_1_, int p_149831_2_, int p_149831_3_)
|
||||
{
|
||||
Block block = p_149831_0_.func_147439_a(p_149831_1_, p_149831_2_, p_149831_3_);
|
||||
Block block = p_149831_0_.getBlock(p_149831_1_, p_149831_2_, p_149831_3_);
|
||||
|
||||
if (block.isAir(p_149831_0_, p_149831_1_, p_149831_2_, p_149831_3_))
|
||||
{
|
||||
@@ -96,8 +96,8 @@ public class BlockFalling extends Block
|
||||
else
|
||||
{
|
||||
//TODO: King, take a look here when doing liquids!
|
||||
//Material material = block.field_149764_J;
|
||||
//return material == Material.field_151586_h ? true : material == Material.field_151587_i;
|
||||
//Material material = block.blockMaterial;
|
||||
//return material == Material.water ? true : material == Material.lava;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -57,23 +57,23 @@ public class BlockLandmine extends BlockContainer
|
||||
|
||||
public BlockLandmine()
|
||||
{
|
||||
super(Material.field_151590_u);
|
||||
this.func_149675_a(true);
|
||||
this.func_149676_a(0.0625F, 0.0F, 0.0625F, 1.0F - 0.0625F, 0.0625F, 1.0F - 0.0625F);
|
||||
super(Material.tnt);
|
||||
this.setTickRandomly(true);
|
||||
this.setBlockBounds(0.0625F, 0.0F, 0.0625F, 1.0F - 0.0625F, 0.0625F, 1.0F - 0.0625F);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getLightValue (IBlockAccess world, int x, int y, int z)
|
||||
{
|
||||
if (world.func_147439_a(x, y, z) == (Block) this && world.func_147438_o(x, y, z) instanceof TileEntityLandmine)
|
||||
if (world.getBlock(x, y, z) == (Block) this && world.getTileEntity(x, y, z) instanceof TileEntityLandmine)
|
||||
{
|
||||
TileEntityLandmine te = (TileEntityLandmine) world.func_147438_o(x, y, z);
|
||||
TileEntityLandmine te = (TileEntityLandmine) world.getTileEntity(x, y, z);
|
||||
|
||||
if (te != null)
|
||||
{
|
||||
if (te.getStackInSlot(3) != null && te.getStackInSlot(3).getItem() instanceof ItemBlock)
|
||||
{
|
||||
return (BlockUtils.getBlockFromItem(te.getStackInSlot(3).getItem())).func_149750_m();
|
||||
return (BlockUtils.getBlockFromItem(te.getStackInSlot(3).getItem())).getLightValue();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -81,49 +81,49 @@ public class BlockLandmine extends BlockContainer
|
||||
}
|
||||
|
||||
@Override
|
||||
public int func_149738_a (World par1World)
|
||||
public int tickRate (World par1World)
|
||||
{
|
||||
return 20;
|
||||
}
|
||||
|
||||
@Override
|
||||
public IIcon func_149673_e (IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
|
||||
public IIcon getIcon (IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
|
||||
{
|
||||
TileEntityLandmine te = (TileEntityLandmine) par1IBlockAccess.func_147438_o(par2, par3, par4);
|
||||
TileEntityLandmine te = (TileEntityLandmine) par1IBlockAccess.getTileEntity(par2, par3, par4);
|
||||
|
||||
ItemStack camo = te.getStackInSlot(3);
|
||||
if (camo != null)
|
||||
{
|
||||
return BlockUtils.getBlockFromItem(camo.getItem()).func_149691_a(par5, camo.getItemDamage());
|
||||
return BlockUtils.getBlockFromItem(camo.getItem()).getIcon(par5, camo.getItemDamage());
|
||||
}
|
||||
else
|
||||
{
|
||||
return this.func_149691_a(par5, par1IBlockAccess.getBlockMetadata(par2, par3, par4));
|
||||
return this.getIcon(par5, par1IBlockAccess.getBlockMetadata(par2, par3, par4));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_149662_c ()
|
||||
public boolean isOpaqueCube ()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_149686_d ()
|
||||
public boolean renderAsNormalBlock ()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int func_149645_b ()
|
||||
public int getRenderType ()
|
||||
{
|
||||
return RenderLandmine.model;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_149699_a (World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer)
|
||||
public void onBlockClicked (World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer)
|
||||
{
|
||||
super.func_149699_a(par1World, par2, par3, par4, par5EntityPlayer);
|
||||
super.onBlockClicked(par1World, par2, par3, par4, par5EntityPlayer);
|
||||
|
||||
if (this.explodeOnBroken)
|
||||
{
|
||||
@@ -132,22 +132,22 @@ public class BlockLandmine extends BlockContainer
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_149651_a (IIconRegister par1IconRegister)
|
||||
public void registerBlockIcons (IIconRegister par1IconRegister)
|
||||
{
|
||||
this.field_149761_L = par1IconRegister.registerIcon("tinker:Landmine");
|
||||
this.blockIcon = par1IconRegister.registerIcon("tinker:Landmine");
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_149727_a (World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer, int par6, float par7, float par8, float par9)
|
||||
public boolean onBlockActivated (World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer, int par6, float par7, float par8, float par9)
|
||||
{
|
||||
par5EntityPlayer.openGui(TConstruct.instance, TProxyCommon.landmineID, par1World, par2, par3, par4);
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_149749_a (World par1World, int par2, int par3, int par4, Block par5Block, int par6)
|
||||
public void breakBlock (World par1World, int par2, int par3, int par4, Block par5Block, int par6)
|
||||
{
|
||||
TileEntityLandmine tileentity = (TileEntityLandmine) par1World.func_147438_o(par2, par3, par4);
|
||||
TileEntityLandmine tileentity = (TileEntityLandmine) par1World.getTileEntity(par2, par3, par4);
|
||||
|
||||
int metadata = par1World.getBlockMetadata(par2, par3, par4);
|
||||
|
||||
@@ -155,12 +155,12 @@ public class BlockLandmine extends BlockContainer
|
||||
{
|
||||
if (this != null)
|
||||
{
|
||||
ItemStack is = new ItemStack(this, 1, func_149692_a(tileentity.triggerType));
|
||||
if (tileentity.func_145818_k_())
|
||||
ItemStack is = new ItemStack(this, 1, damageDropped(tileentity.triggerType));
|
||||
if (tileentity.hasCustomInventoryName())
|
||||
{
|
||||
is.func_151001_c(tileentity.func_145825_b());
|
||||
is.setStackDisplayName(tileentity.getInventoryName());
|
||||
}
|
||||
func_149642_a(par1World, par2, par3, par4, new ItemStack(this, 1, func_149692_a(tileentity.triggerType)));
|
||||
dropBlockAsItem(par1World, par2, par3, par4, new ItemStack(this, 1, damageDropped(tileentity.triggerType)));
|
||||
}
|
||||
|
||||
for (int j1 = 0; j1 < tileentity.getSizeInventory(); ++j1)
|
||||
@@ -191,18 +191,18 @@ public class BlockLandmine extends BlockContainer
|
||||
}
|
||||
}
|
||||
|
||||
par1World.func_147449_b(par2, par3, par4, par5Block);
|
||||
par1World.setBlock(par2, par3, par4, par5Block);
|
||||
}
|
||||
else if (explodeOnBroken)
|
||||
{
|
||||
checkExplosion(par1World, par2, par3, par4, true);
|
||||
}
|
||||
|
||||
super.func_149749_a(par1World, par2, par3, par4, par5Block, par6);
|
||||
super.breakBlock(par1World, par2, par3, par4, par5Block, par6);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_149666_a (Item par1, CreativeTabs par2CreativeTabs, List par3List)
|
||||
public void getSubBlocks (Item par1, CreativeTabs par2CreativeTabs, List par3List)
|
||||
{
|
||||
par3List.add(new ItemStack(par1, 1, 0));
|
||||
par3List.add(new ItemStack(par1, 1, 1));
|
||||
@@ -211,13 +211,13 @@ public class BlockLandmine extends BlockContainer
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_149655_b (IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
|
||||
public boolean getBlocksMovement (IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_149707_d (World par1World, int par2, int par3, int par4, int par5)
|
||||
public boolean canPlaceBlockOnSide (World par1World, int par2, int par3, int par4, int par5)
|
||||
{
|
||||
ForgeDirection dir = ForgeDirection.getOrientation(par5);
|
||||
return (dir == DOWN && par1World.isSideSolid(par2, par3 + 1, par4, DOWN)) || (dir == UP && par1World.isSideSolid(par2, par3 - 1, par4, UP))
|
||||
@@ -226,14 +226,14 @@ public class BlockLandmine extends BlockContainer
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_149742_c (World par1World, int par2, int par3, int par4)
|
||||
public boolean canPlaceBlockAt (World par1World, int par2, int par3, int par4)
|
||||
{
|
||||
return par1World.isSideSolid(par2 - 1, par3, par4, EAST) || par1World.isSideSolid(par2 + 1, par3, par4, WEST) || par1World.isSideSolid(par2, par3, par4 - 1, SOUTH)
|
||||
|| par1World.isSideSolid(par2, par3, par4 + 1, NORTH) || par1World.isSideSolid(par2, par3 - 1, par4, UP) || par1World.isSideSolid(par2, par3 + 1, par4, DOWN);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int func_149660_a (World par1World, int par2, int par3, int par4, int par5, float par6, float par7, float par8, int par9)
|
||||
public int onBlockPlaced (World par1World, int par2, int par3, int par4, int par5, float par6, float par7, float par8, int par9)
|
||||
{
|
||||
int j1 = par9 & 8;
|
||||
int k1 = par9 & 7;
|
||||
@@ -273,7 +273,7 @@ public class BlockLandmine extends BlockContainer
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_149689_a (World par1World, int par2, int par3, int par4, EntityLivingBase par5EntityLivingBase, ItemStack par6ItemStack)
|
||||
public void onBlockPlacedBy (World par1World, int par2, int par3, int par4, EntityLivingBase par5EntityLivingBase, ItemStack par6ItemStack)
|
||||
{
|
||||
int l = par1World.getBlockMetadata(par2, par3, par4);
|
||||
int i1 = l & 7;
|
||||
@@ -304,7 +304,7 @@ public class BlockLandmine extends BlockContainer
|
||||
|
||||
if (par6ItemStack.hasDisplayName())
|
||||
{
|
||||
((TileEntityLandmine) par1World.func_147438_o(par2, par3, par4)).setGuiDisplayName(par6ItemStack.getDisplayName());
|
||||
((TileEntityLandmine) par1World.getTileEntity(par2, par3, par4)).setGuiDisplayName(par6ItemStack.getDisplayName());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -330,7 +330,7 @@ public class BlockLandmine extends BlockContainer
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_149695_a (World par1World, int par2, int par3, int par4, Block par5Block)
|
||||
public void onNeighborBlockChange (World par1World, int par2, int par3, int par4, Block par5Block)
|
||||
{
|
||||
checkPlacement(par1World, par2, par3, par4, par5Block);
|
||||
|
||||
@@ -386,7 +386,7 @@ public class BlockLandmine extends BlockContainer
|
||||
|
||||
if (flag)
|
||||
{
|
||||
this.func_149697_b(par1World, par2, par3, par4, par1World.getBlockMetadata(par2, par3, par4), 0);
|
||||
this.dropBlockAsItem(par1World, par2, par3, par4, par1World.getBlockMetadata(par2, par3, par4), 0);
|
||||
WorldHelper.setBlockToAir(par1World, par2, par3, par4);
|
||||
}
|
||||
}
|
||||
@@ -394,9 +394,9 @@ public class BlockLandmine extends BlockContainer
|
||||
|
||||
private boolean checkIfAttachedToBlock (World par1World, int par2, int par3, int par4)
|
||||
{
|
||||
if (!this.func_149742_c(par1World, par2, par3, par4))
|
||||
if (!this.canPlaceBlockAt(par1World, par2, par3, par4))
|
||||
{
|
||||
this.func_149697_b(par1World, par2, par3, par4, par1World.getBlockMetadata(par2, par3, par4), 0);
|
||||
this.dropBlockAsItem(par1World, par2, par3, par4, par1World.getBlockMetadata(par2, par3, par4), 0);
|
||||
WorldHelper.setBlockToAir(par1World, par2, par3, par4);
|
||||
return false;
|
||||
}
|
||||
@@ -407,7 +407,7 @@ public class BlockLandmine extends BlockContainer
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_149674_a (World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
public void updateTick (World par1World, int par2, int par3, int par4, Random par5Random)
|
||||
{
|
||||
if (!par1World.isRemote)
|
||||
{
|
||||
@@ -429,7 +429,7 @@ public class BlockLandmine extends BlockContainer
|
||||
{
|
||||
if (hasItems(par1World, par2, par3, par4))
|
||||
{
|
||||
TileEntityLandmine te = (TileEntityLandmine) par1World.func_147438_o(par2, par3, par4);
|
||||
TileEntityLandmine te = (TileEntityLandmine) par1World.getTileEntity(par2, par3, par4);
|
||||
if (te.soundcountything <= 0)
|
||||
{
|
||||
par1World.playSoundEffect((double) par2 + 0.5D, (double) par3 + 0.1D, (double) par4 + 0.5D, "random.click", 0.3F, 0.6F);
|
||||
@@ -441,14 +441,14 @@ public class BlockLandmine extends BlockContainer
|
||||
}
|
||||
|
||||
@Override
|
||||
public AxisAlignedBB func_149668_a (World par1World, int par2, int par3, int par4)
|
||||
public AxisAlignedBB getCollisionBoundingBoxFromPool (World par1World, int par2, int par3, int par4)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
private boolean hasItems (World par1World, int par2, int par3, int par4)
|
||||
{
|
||||
TileEntityLandmine te = (TileEntityLandmine) par1World.func_147438_o(par2, par3, par4);
|
||||
TileEntityLandmine te = (TileEntityLandmine) par1World.getTileEntity(par2, par3, par4);
|
||||
if (te != null && te.getStackInSlot(0) != null || te.getStackInSlot(1) != null || te.getStackInSlot(2) != null)
|
||||
{
|
||||
return true;
|
||||
@@ -466,7 +466,7 @@ public class BlockLandmine extends BlockContainer
|
||||
|
||||
protected int getMineState (World par1World, int par2, int par3, int par4)
|
||||
{
|
||||
TileEntityLandmine te = (TileEntityLandmine) par1World.func_147438_o(par2, par3, par4);
|
||||
TileEntityLandmine te = (TileEntityLandmine) par1World.getTileEntity(par2, par3, par4);
|
||||
|
||||
// Change to return 1 if you want the landmine to blow up when the block
|
||||
// holding it is broken
|
||||
@@ -517,7 +517,7 @@ public class BlockLandmine extends BlockContainer
|
||||
{
|
||||
Entity entity = (Entity) iterator.next();
|
||||
|
||||
if (!entity.func_145773_az())
|
||||
if (!entity.doesEntityNotTriggerPressurePlate())
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
@@ -562,7 +562,7 @@ public class BlockLandmine extends BlockContainer
|
||||
public Entity getMineTriggerer (World par1World, int par2, int par3, int par4)
|
||||
{
|
||||
|
||||
TileEntityLandmine te = (TileEntityLandmine) par1World.func_147438_o(par2, par3, par4);
|
||||
TileEntityLandmine te = (TileEntityLandmine) par1World.getTileEntity(par2, par3, par4);
|
||||
|
||||
// Change to return 1 if you want the landmine to blow up when the
|
||||
// block holding it is broken
|
||||
@@ -613,7 +613,7 @@ public class BlockLandmine extends BlockContainer
|
||||
{
|
||||
Entity entity = (Entity) iterator.next();
|
||||
|
||||
if (!entity.func_145773_az())
|
||||
if (!entity.doesEntityNotTriggerPressurePlate())
|
||||
{
|
||||
return entity;
|
||||
}
|
||||
@@ -625,14 +625,14 @@ public class BlockLandmine extends BlockContainer
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_149659_a (Explosion par1Explosion)
|
||||
public boolean canDropFromExplosion (Explosion par1Explosion)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@SuppressWarnings("incomplete-switch")
|
||||
@Override
|
||||
public void func_149719_a (IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
|
||||
public void setBlockBoundsBasedOnState (IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
|
||||
{
|
||||
int l = par1IBlockAccess.getBlockMetadata(par2, par3, par4);
|
||||
int i1 = l & 7;
|
||||
@@ -642,34 +642,34 @@ public class BlockLandmine extends BlockContainer
|
||||
switch (dir)
|
||||
{
|
||||
case DOWN:
|
||||
this.func_149676_a(0.0625F, 0.0F, 0.0625F, 1.0F - 0.0625F, 0.0625F, 1.0F - 0.0625F);
|
||||
this.setBlockBounds(0.0625F, 0.0F, 0.0625F, 1.0F - 0.0625F, 0.0625F, 1.0F - 0.0625F);
|
||||
break;
|
||||
case UP:
|
||||
this.func_149676_a(0.0625F, 1.0F - 0.0625F, 0.0625F, 1.0F - 0.0625F, 1.0F, 1.0F - 0.0625F);
|
||||
this.setBlockBounds(0.0625F, 1.0F - 0.0625F, 0.0625F, 1.0F - 0.0625F, 1.0F, 1.0F - 0.0625F);
|
||||
break;
|
||||
case NORTH:
|
||||
this.func_149676_a(0.0625F, 0.0625F, 0.0F, 1.0F - 0.0625F, 1.0F - 0.0625F, 0.0625F);
|
||||
this.setBlockBounds(0.0625F, 0.0625F, 0.0F, 1.0F - 0.0625F, 1.0F - 0.0625F, 0.0625F);
|
||||
break;
|
||||
case SOUTH:
|
||||
this.func_149676_a(0.0625F, 0.0625F, 1.0F - 0.0625F, 1.0F - 0.0625F, 1.0F - 0.0625F, 1.0F);
|
||||
this.setBlockBounds(0.0625F, 0.0625F, 1.0F - 0.0625F, 1.0F - 0.0625F, 1.0F - 0.0625F, 1.0F);
|
||||
break;
|
||||
case EAST:
|
||||
this.func_149676_a(1.0F - 0.0625F, 0.0625F, 0.0625F, 1.0F, 1.0F - 0.0625F, 1.0F - 0.0625F);
|
||||
this.setBlockBounds(1.0F - 0.0625F, 0.0625F, 0.0625F, 1.0F, 1.0F - 0.0625F, 1.0F - 0.0625F);
|
||||
break;
|
||||
case WEST:
|
||||
this.func_149676_a(0.0F, 0.0625F, 0.0625F, 0.0625F, 1.0F - 0.0625F, 1.0F - 0.0625F);
|
||||
this.setBlockBounds(0.0F, 0.0625F, 0.0625F, 0.0625F, 1.0F - 0.0625F, 1.0F - 0.0625F);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Item func_149650_a (int par1, Random par2Random, int par3)
|
||||
public Item getItemDropped (int par1, Random par2Random, int par3)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TileEntity func_149915_a (World world, int meta)
|
||||
public TileEntity createNewTileEntity (World world, int meta)
|
||||
{
|
||||
return new TileEntityLandmine();
|
||||
}
|
||||
|
||||
@@ -23,19 +23,19 @@ public class CastingChannelBlock extends BlockContainer
|
||||
|
||||
public CastingChannelBlock()
|
||||
{
|
||||
super(Material.field_151576_e);
|
||||
this.func_149711_c(1F);
|
||||
this.func_149752_b(10);
|
||||
this.field_149762_H = field_149769_e;
|
||||
func_149647_a(TConstructRegistry.blockTab);
|
||||
super(Material.rock);
|
||||
this.setHardness(1F);
|
||||
this.setResistance(10);
|
||||
this.stepSound = soundTypeStone;
|
||||
setCreativeTab(TConstructRegistry.blockTab);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_149727_a (World world, int x, int y, int z, EntityPlayer player, int side, float hitX, float hitY, float hitZ)
|
||||
public boolean onBlockActivated (World world, int x, int y, int z, EntityPlayer player, int side, float hitX, float hitY, float hitZ)
|
||||
{
|
||||
if (!world.isRemote)
|
||||
{
|
||||
CastingChannelLogic tile = (CastingChannelLogic) world.func_147438_o(x, y, z);
|
||||
CastingChannelLogic tile = (CastingChannelLogic) world.getTileEntity(x, y, z);
|
||||
if (player.isSneaking())
|
||||
{
|
||||
}
|
||||
@@ -56,9 +56,9 @@ public class CastingChannelBlock extends BlockContainer
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_149719_a (IBlockAccess world, int x, int y, int z)
|
||||
public void setBlockBoundsBasedOnState (IBlockAccess world, int x, int y, int z)
|
||||
{
|
||||
CastingChannelLogic tile = (CastingChannelLogic) world.func_147438_o(x, y, z);
|
||||
CastingChannelLogic tile = (CastingChannelLogic) world.getTileEntity(x, y, z);
|
||||
float minX = 0.3125F;
|
||||
float maxX = 0.6875F;
|
||||
float minZ = 0.3125F;
|
||||
@@ -72,35 +72,35 @@ public class CastingChannelBlock extends BlockContainer
|
||||
if (tile.hasTankConnected(ForgeDirection.EAST))
|
||||
maxX = 1F;
|
||||
|
||||
this.func_149676_a(minX, 0.375F, minZ, maxX, 0.625F, maxZ);
|
||||
this.setBlockBounds(minX, 0.375F, minZ, maxX, 0.625F, maxZ);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_149686_d ()
|
||||
public boolean renderAsNormalBlock ()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_149662_c ()
|
||||
public boolean isOpaqueCube ()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int func_149645_b ()
|
||||
public int getRenderType ()
|
||||
{
|
||||
return BlockRenderCastingChannel.renderID;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_149651_a (IIconRegister iconRegister)
|
||||
public void registerBlockIcons (IIconRegister iconRegister)
|
||||
{
|
||||
this.field_149761_L = iconRegister.registerIcon("tinker:searedstone");
|
||||
this.blockIcon = iconRegister.registerIcon("tinker:searedstone");
|
||||
}
|
||||
|
||||
@Override
|
||||
public TileEntity func_149915_a (World var1, int var2)
|
||||
public TileEntity createNewTileEntity (World var1, int var2)
|
||||
{
|
||||
return new CastingChannelLogic();
|
||||
}
|
||||
|
||||
@@ -25,8 +25,8 @@ public class ConveyorBase extends MantleBlock
|
||||
public ConveyorBase(Material material, String name)
|
||||
{
|
||||
super(material);
|
||||
this.func_149647_a(TConstructRegistry.blockTab);
|
||||
func_149676_a(0f, 0f, 0f, 1f, 0.5f, 1f);
|
||||
this.setCreativeTab(TConstructRegistry.blockTab);
|
||||
setBlockBounds(0f, 0f, 0f, 1f, 0.5f, 1f);
|
||||
texturename = name;
|
||||
}
|
||||
|
||||
@@ -36,13 +36,13 @@ public class ConveyorBase extends MantleBlock
|
||||
}
|
||||
|
||||
@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 null;
|
||||
}
|
||||
|
||||
@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 (!world.isBlockIndirectlyGettingPowered(x, y, z))
|
||||
{
|
||||
@@ -94,49 +94,49 @@ public class ConveyorBase extends MantleBlock
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_149689_a (World world, int x, int y, int z, EntityLivingBase entity, ItemStack stack)
|
||||
public void onBlockPlacedBy (World world, int x, int y, int z, EntityLivingBase entity, ItemStack stack)
|
||||
{
|
||||
int face = MathHelper.floor_double((double) (entity.rotationYaw * 8.0F / 360.0F) + 0.5D) + (entity.isSneaking() ? 4 : 0) & 7;
|
||||
int meta = world.getBlockMetadata(x, y, z) & 8;
|
||||
world.setBlockMetadataWithNotify(x, y, z, face | meta, 2);
|
||||
}
|
||||
|
||||
public boolean func_149646_a (IBlockAccess world, int x, int y, int z, int side)
|
||||
public boolean shouldSideBeRendered (IBlockAccess world, int x, int y, int z, int side)
|
||||
{
|
||||
if (side == 1)
|
||||
return false;
|
||||
return super. func_149646_a(world, x, y, z, side);
|
||||
return super. shouldSideBeRendered(world, x, y, z, side);
|
||||
}
|
||||
|
||||
public IIcon[] icons;
|
||||
|
||||
/* Rendering */
|
||||
@Override
|
||||
public boolean func_149686_d ()
|
||||
public boolean renderAsNormalBlock ()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_149662_c ()
|
||||
public boolean isOpaqueCube ()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int func_149701_w ()
|
||||
public int getRenderBlockPass ()
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int func_149645_b ()
|
||||
public int getRenderType ()
|
||||
{
|
||||
return SlimeChannelRender.model;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_149651_a (IIconRegister iconRegister)
|
||||
public void registerBlockIcons (IIconRegister iconRegister)
|
||||
{
|
||||
String[] textureNames = new String[] { texturename, texturename + "_flow" };
|
||||
this.icons = new IIcon[textureNames.length];
|
||||
@@ -149,7 +149,7 @@ public class ConveyorBase extends MantleBlock
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon func_149691_a (int side, int meta)
|
||||
public IIcon getIcon (int side, int meta)
|
||||
{
|
||||
if (meta >= 8)
|
||||
return icons[0];
|
||||
|
||||
@@ -31,9 +31,9 @@ public class CraftingSlab extends InventorySlab
|
||||
public CraftingSlab(Material material)
|
||||
{
|
||||
super(material);
|
||||
this.func_149647_a(TConstructRegistry.blockTab);
|
||||
this.func_149711_c(2f);
|
||||
this.field_149762_H = Block.field_149766_f;
|
||||
this.setCreativeTab(TConstructRegistry.blockTab);
|
||||
this.setHardness(2f);
|
||||
this.stepSound = Block.soundTypeWood;
|
||||
}
|
||||
|
||||
/* Rendering */
|
||||
@@ -48,7 +48,7 @@ public class CraftingSlab extends InventorySlab
|
||||
}
|
||||
|
||||
@Override
|
||||
public IIcon func_149691_a (int side, int meta)
|
||||
public IIcon getIcon (int side, int meta)
|
||||
{
|
||||
return icons[(meta % 8) * 3 + getTextureIndex(side)];
|
||||
}
|
||||
@@ -67,9 +67,9 @@ public class CraftingSlab extends InventorySlab
|
||||
{
|
||||
int metadata = world.getBlockMetadata(x, y, z);
|
||||
if (metadata == 5)
|
||||
return AxisAlignedBB.getAABBPool().getAABB((double) x + this.field_149759_B, (double) y + this.field_149760_C, (double) z + this.field_149754_D, (double) x + this.field_149755_E, (double) y + this.field_149756_F - 0.125,
|
||||
(double) z + this.field_149757_G);
|
||||
return AxisAlignedBB.getAABBPool().getAABB((double) x + this.field_149759_B, (double) y + this.field_149760_C, (double) z + this.field_149754_D, (double) x + this.field_149755_E, (double) y + this.field_149756_F, (double) z + this.field_149757_G);
|
||||
return AxisAlignedBB.getAABBPool().getAABB((double) x + this.minX, (double) y + this.minY, (double) z + this.minZ, (double) x + this.maxX, (double) y + this.maxY - 0.125,
|
||||
(double) z + this.maxZ);
|
||||
return AxisAlignedBB.getAABBPool().getAABB((double) x + this.minX, (double) y + this.minY, (double) z + this.minZ, (double) x + this.maxX, (double) y + this.maxY, (double) z + this.maxZ);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -124,7 +124,7 @@ public class CraftingSlab extends InventorySlab
|
||||
}
|
||||
|
||||
@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 < 6; iter++)
|
||||
{
|
||||
@@ -133,14 +133,14 @@ public class CraftingSlab extends InventorySlab
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_149689_a (World world, int x, int y, int z, EntityLivingBase entityliving, ItemStack stack)
|
||||
public void onBlockPlacedBy (World world, int x, int y, int z, EntityLivingBase entityliving, ItemStack stack)
|
||||
{
|
||||
if (PHConstruct.freePatterns)
|
||||
{
|
||||
int meta = world.getBlockMetadata(x, y, z);
|
||||
if (meta == 4)
|
||||
{
|
||||
PatternChestLogic logic = (PatternChestLogic) world.func_147438_o(x, y, z);
|
||||
PatternChestLogic logic = (PatternChestLogic) world.getTileEntity(x, y, z);
|
||||
for (int i = 1; i <= 13; i++)
|
||||
{
|
||||
logic.setInventorySlotContents(i - 1, new ItemStack(TRepo.woodPattern, 1, i));
|
||||
@@ -148,11 +148,11 @@ public class CraftingSlab extends InventorySlab
|
||||
logic.setInventorySlotContents(13, new ItemStack(TRepo.woodPattern, 1, 22));
|
||||
}
|
||||
}
|
||||
super.func_149689_a(world, x, y, z, entityliving, stack);
|
||||
super.onBlockPlacedBy(world, x, y, z, entityliving, stack);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TileEntity func_149915_a (World var1, int metadata)
|
||||
public TileEntity createNewTileEntity (World var1, int metadata)
|
||||
{
|
||||
switch (metadata % 8)
|
||||
{
|
||||
|
||||
@@ -24,9 +24,9 @@ public class CraftingStationBlock extends InventoryBlock
|
||||
public CraftingStationBlock(Material material)
|
||||
{
|
||||
super(material);
|
||||
this.func_149647_a(TConstructRegistry.blockTab);
|
||||
this.func_149711_c(2f);
|
||||
this.field_149762_H = Block.field_149766_f;
|
||||
this.setCreativeTab(TConstructRegistry.blockTab);
|
||||
this.setHardness(2f);
|
||||
this.stepSound = Block.soundTypeWood;
|
||||
}
|
||||
|
||||
//Block.hasComparatorInputOverride and Block.getComparatorInputOverride
|
||||
@@ -41,7 +41,7 @@ public class CraftingStationBlock extends InventoryBlock
|
||||
}
|
||||
|
||||
@Override
|
||||
public IIcon func_149691_a (int side, int meta)
|
||||
public IIcon getIcon (int side, int meta)
|
||||
{
|
||||
return icons[meta * 3 + getTextureIndex(side)];
|
||||
}
|
||||
@@ -57,25 +57,25 @@ public class CraftingStationBlock extends InventoryBlock
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_149686_d ()
|
||||
public boolean renderAsNormalBlock ()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_149662_c ()
|
||||
public boolean isOpaqueCube ()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int func_149645_b ()
|
||||
public int getRenderType ()
|
||||
{
|
||||
return TableRender.tabelModelID;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_149646_a (IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
|
||||
public boolean shouldSideBeRendered (IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@@ -93,7 +93,7 @@ public class CraftingStationBlock extends InventoryBlock
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_149666_a (Item id, CreativeTabs tab, List list)
|
||||
public void getSubBlocks (Item id, CreativeTabs tab, List list)
|
||||
{
|
||||
for (int iter = 0; iter < 1; iter++)
|
||||
{
|
||||
@@ -102,7 +102,7 @@ public class CraftingStationBlock extends InventoryBlock
|
||||
}
|
||||
|
||||
@Override
|
||||
public TileEntity func_149915_a(World arg0, int arg1) {
|
||||
public TileEntity createNewTileEntity(World arg0, int arg1) {
|
||||
return new CraftingStationLogic();
|
||||
}
|
||||
}
|
||||
@@ -26,20 +26,20 @@ public class DryingRack extends InventoryBlock
|
||||
|
||||
public DryingRack()
|
||||
{
|
||||
super(Material.field_151575_d);
|
||||
this.func_149647_a(TConstructRegistry.blockTab);
|
||||
func_149711_c(2.0f);
|
||||
field_149762_H = field_149777_j;
|
||||
super(Material.wood);
|
||||
this.setCreativeTab(TConstructRegistry.blockTab);
|
||||
setHardness(2.0f);
|
||||
stepSound = soundTypeMetal;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TileEntity func_149915_a (World world, int metadata)
|
||||
public TileEntity createNewTileEntity (World world, int metadata)
|
||||
{
|
||||
return new DryingRackLogic();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int func_149701_w ()
|
||||
public int getRenderBlockPass ()
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
@@ -77,7 +77,7 @@ public class DryingRack extends InventoryBlock
|
||||
|
||||
/* Activation */
|
||||
@Override
|
||||
public boolean func_149727_a (World world, int x, int y, int z, EntityPlayer player, int side, float clickX, float clickY, float clickZ)
|
||||
public boolean onBlockActivated (World world, int x, int y, int z, EntityPlayer player, int side, float clickX, float clickY, float clickZ)
|
||||
{
|
||||
return activateDryingRack(world, x, y, z, player);
|
||||
}
|
||||
@@ -86,7 +86,7 @@ public class DryingRack extends InventoryBlock
|
||||
{
|
||||
if (!world.isRemote)
|
||||
{
|
||||
DryingRackLogic logic = (DryingRackLogic) world.func_147438_o(x, y, z);
|
||||
DryingRackLogic logic = (DryingRackLogic) world.getTileEntity(x, y, z);
|
||||
|
||||
if (!logic.isStackInSlot(0))
|
||||
{
|
||||
@@ -107,7 +107,7 @@ public class DryingRack extends InventoryBlock
|
||||
}
|
||||
}
|
||||
|
||||
world.func_147471_g(x, y, z);
|
||||
world.markBlockForUpdate(x, y, z);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@@ -196,18 +196,18 @@ public class DryingRack extends InventoryBlock
|
||||
yMin = 0.75F;
|
||||
break;
|
||||
}
|
||||
this.func_149676_a(xMin, yMin, zMin, xMax, yMax, zMax);
|
||||
this.setBlockBounds(xMin, yMin, zMin, xMax, yMax, zMax);
|
||||
}
|
||||
|
||||
public void addCollisionBoxesToList (World world, int x, int y, int z, AxisAlignedBB aabb, List list, Entity entity)
|
||||
{
|
||||
this.setBlockBoundsBasedOnState(world, x, y, z);
|
||||
super.func_149743_a(world, x, y, z, aabb, list, entity);
|
||||
super.addCollisionBoxesToList(world, x, y, z, aabb, list, entity);
|
||||
}
|
||||
|
||||
/* Rendering */
|
||||
@Override
|
||||
public int func_149645_b ()
|
||||
public int getRenderType ()
|
||||
{
|
||||
return DryingRackRender.model;
|
||||
}
|
||||
@@ -221,9 +221,9 @@ public class DryingRack extends InventoryBlock
|
||||
}
|
||||
|
||||
@Override
|
||||
public IIcon func_149691_a (int side, int meta)
|
||||
public IIcon getIcon (int side, int meta)
|
||||
{
|
||||
return Blocks.planks.func_149691_a(side, 0);
|
||||
return Blocks.planks.getIcon(side, 0);
|
||||
}
|
||||
|
||||
public int getTextureIndex (int side)
|
||||
@@ -237,13 +237,13 @@ public class DryingRack extends InventoryBlock
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_149686_d ()
|
||||
public boolean renderAsNormalBlock ()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_149662_c ()
|
||||
public boolean isOpaqueCube ()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -30,8 +30,8 @@ public class EquipBlock extends InventoryBlock
|
||||
public EquipBlock(Material material)
|
||||
{
|
||||
super(material);
|
||||
this.func_149711_c(0.3f);
|
||||
this.func_149676_a(0, 0, 0, 1, 0.25f, 1);
|
||||
this.setHardness(0.3f);
|
||||
this.setBlockBounds(0, 0, 0, 1, 0.25f, 1);
|
||||
//this.setCreativeTab(ToolConstruct.materialTab);
|
||||
}
|
||||
|
||||
@@ -41,43 +41,43 @@ public class EquipBlock extends InventoryBlock
|
||||
return new String[] { "toolstation_top" };
|
||||
}
|
||||
|
||||
public IIcon func_149691_a (int side, int meta)
|
||||
public IIcon getIcon (int side, int meta)
|
||||
{
|
||||
return Blocks.iron_block.func_149691_a(side, meta);
|
||||
return Blocks.iron_block.getIcon(side, meta);
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void func_149651_a (IIconRegister par1IconRegister)
|
||||
public void registerBlockIcons (IIconRegister par1IconRegister)
|
||||
{
|
||||
//this.blockIcon = par1iconRegister.registerIcon(Block.blockIron.getUnlocalizedName());
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_149686_d ()
|
||||
public boolean renderAsNormalBlock ()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_149662_c ()
|
||||
public boolean isOpaqueCube ()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int func_149645_b ()
|
||||
public int getRenderType ()
|
||||
{
|
||||
return FrypanRender.frypanModelID;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Item func_149650_a (int par1, Random par2Random, int par3)
|
||||
public Item getItemDropped (int par1, Random par2Random, int par3)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TileEntity func_149915_a (World world, int metadata)
|
||||
public TileEntity createNewTileEntity (World world, int metadata)
|
||||
{
|
||||
return new FrypanLogic();
|
||||
}
|
||||
@@ -95,9 +95,9 @@ public class EquipBlock extends InventoryBlock
|
||||
}
|
||||
}
|
||||
|
||||
public void func_149689_a (World par1World, int par2, int par3, int par4, EntityLivingBase par5EntityLivingBase, ItemStack par6ItemStack)
|
||||
public void onBlockPlacedBy (World par1World, int par2, int par3, int par4, EntityLivingBase par5EntityLivingBase, ItemStack par6ItemStack)
|
||||
{
|
||||
super.func_149689_a(par1World, par2, par3, par4, par5EntityLivingBase, par6ItemStack);
|
||||
super.onBlockPlacedBy(par1World, par2, par3, par4, par5EntityLivingBase, par6ItemStack);
|
||||
int i3 = MathHelper.floor_double((par5EntityLivingBase.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3;
|
||||
|
||||
int newMeta = 0;
|
||||
@@ -121,9 +121,9 @@ public class EquipBlock extends InventoryBlock
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_149749_a (World par1World, int x, int y, int z, Block par5, int meta)
|
||||
public void breakBlock (World par1World, int x, int y, int z, Block par5, int meta)
|
||||
{
|
||||
TileEntity te = par1World.func_147438_o(x, y, z);
|
||||
TileEntity te = par1World.getTileEntity(x, y, z);
|
||||
|
||||
if (te != null && te instanceof EquipLogic)
|
||||
{
|
||||
@@ -166,7 +166,7 @@ public class EquipBlock extends InventoryBlock
|
||||
}
|
||||
}
|
||||
|
||||
super.func_149749_a(par1World, x, y, z, par5, meta);
|
||||
super.breakBlock(par1World, x, y, z, par5, meta);
|
||||
}
|
||||
|
||||
public int getLightValue (IBlockAccess world, int x, int y, int z)
|
||||
|
||||
@@ -21,8 +21,8 @@ public class FurnaceSlab extends InventorySlab
|
||||
public FurnaceSlab(Material material)
|
||||
{
|
||||
super(material);
|
||||
this.func_149647_a(TConstructRegistry.blockTab);
|
||||
this.func_149711_c(3.5f);
|
||||
this.setCreativeTab(TConstructRegistry.blockTab);
|
||||
this.setHardness(3.5f);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -57,14 +57,14 @@ public class FurnaceSlab extends InventorySlab
|
||||
}
|
||||
|
||||
@Override
|
||||
public IIcon func_149691_a (int side, int meta)
|
||||
public IIcon getIcon (int side, int meta)
|
||||
{
|
||||
return icons[(meta % 8) * 3 + getTextureIndex(side)];
|
||||
}
|
||||
|
||||
public IIcon func_149673_e (IBlockAccess world, int x, int y, int z, int side)
|
||||
public IIcon getIcon (IBlockAccess world, int x, int y, int z, int side)
|
||||
{
|
||||
TileEntity logic = world.func_147438_o(x, y, z);
|
||||
TileEntity logic = world.getTileEntity(x, y, z);
|
||||
short direction = (logic instanceof IFacingLogic) ? ((IFacingLogic) logic).getRenderDirection() : 0;
|
||||
int meta = world.getBlockMetadata(x, y, z) % 8;
|
||||
|
||||
@@ -97,7 +97,7 @@ public class FurnaceSlab extends InventorySlab
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_149651_a (IIconRegister iconRegister)
|
||||
public void registerBlockIcons (IIconRegister iconRegister)
|
||||
{
|
||||
String[] textureNames = getTextureNames();
|
||||
this.icons = new IIcon[textureNames.length];
|
||||
@@ -112,7 +112,7 @@ public class FurnaceSlab extends InventorySlab
|
||||
}
|
||||
|
||||
@Override
|
||||
public TileEntity func_149915_a (World var1, int metadata)
|
||||
public TileEntity createNewTileEntity (World var1, int metadata)
|
||||
{
|
||||
switch (metadata % 8)
|
||||
{
|
||||
|
||||
@@ -14,7 +14,7 @@ public class GlassBlock extends TConstructBlock
|
||||
|
||||
public GlassBlock()
|
||||
{
|
||||
super(Material.field_151592_s, 3f, blockTextures);
|
||||
super(Material.glass, 3f, blockTextures);
|
||||
}
|
||||
|
||||
public boolean isOpaqueCube ()
|
||||
@@ -23,14 +23,14 @@ public class GlassBlock extends TConstructBlock
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public boolean func_149646_a (IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
|
||||
public boolean shouldSideBeRendered (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.func_149646_a(par1IBlockAccess, par2, par3, par4, par5);
|
||||
Block i1 = par1IBlockAccess.getBlock(par2, par3, par4);
|
||||
return i1 == (Block) this ? false : super.shouldSideBeRendered(par1IBlockAccess, par2, par3, par4, par5);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float func_149712_f (World world, int x, int y, int z)
|
||||
public float getBlockHardness (World world, int x, int y, int z)
|
||||
{
|
||||
int meta = world.getBlockMetadata(x, y, z);
|
||||
switch (meta)
|
||||
@@ -42,7 +42,7 @@ public class GlassBlock extends TConstructBlock
|
||||
case 2:
|
||||
return 50.0F;
|
||||
default:
|
||||
return field_149782_v;
|
||||
return blockHardness;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -58,13 +58,13 @@ public class GlassBlock extends TConstructBlock
|
||||
case 2:
|
||||
return 2000F;
|
||||
default:
|
||||
return func_149638_a(entity);
|
||||
return getExplosionResistance(entity);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void func_149651_a (IIconRegister iconRegister)
|
||||
public void registerBlockIcons (IIconRegister iconRegister)
|
||||
{
|
||||
this.icons = new IIcon[textureNames.length];
|
||||
|
||||
|
||||
@@ -24,12 +24,12 @@ public class GlassBlockConnected extends MantleBlock
|
||||
|
||||
public GlassBlockConnected(String location, boolean hasAlpha)
|
||||
{
|
||||
super(Material.field_151592_s);
|
||||
this.field_149762_H = field_149778_k;
|
||||
super(Material.glass);
|
||||
this.stepSound = soundTypeGlass;
|
||||
folder = location;
|
||||
renderPass = hasAlpha ? 1 : 0;
|
||||
func_149711_c(0.3F);
|
||||
this.func_149647_a(TConstructRegistry.blockTab);
|
||||
setHardness(0.3F);
|
||||
this.setCreativeTab(TConstructRegistry.blockTab);
|
||||
}
|
||||
|
||||
//For FMP support
|
||||
@@ -39,19 +39,19 @@ public class GlassBlockConnected extends MantleBlock
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_149662_c ()
|
||||
public boolean isOpaqueCube ()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_149686_d ()
|
||||
public boolean renderAsNormalBlock ()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int func_149701_w ()
|
||||
public int getRenderBlockPass ()
|
||||
{
|
||||
return renderPass;
|
||||
}
|
||||
@@ -71,7 +71,7 @@ public class GlassBlockConnected extends MantleBlock
|
||||
}
|
||||
|
||||
@Override
|
||||
public IIcon func_149673_e (IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
|
||||
public IIcon getIcon (IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
|
||||
{
|
||||
return par1IBlockAccess.getBlockMetadata(par2, par3, par4) == 15 ? icons[0] : getConnectedBlockTexture(par1IBlockAccess, par2, par3, par4, par5, icons);
|
||||
}
|
||||
@@ -88,22 +88,22 @@ public class GlassBlockConnected extends MantleBlock
|
||||
switch (par5)
|
||||
{
|
||||
case 0:
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.func_147439_a(par2 - 1, par3, par4), par1IBlockAccess.getBlockMetadata(par2 - 1, par3, par4)))
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2 - 1, par3, par4), par1IBlockAccess.getBlockMetadata(par2 - 1, par3, par4)))
|
||||
{
|
||||
isOpenDown = true;
|
||||
}
|
||||
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.func_147439_a(par2 + 1, par3, par4), par1IBlockAccess.getBlockMetadata(par2 + 1, par3, par4)))
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2 + 1, par3, par4), par1IBlockAccess.getBlockMetadata(par2 + 1, par3, par4)))
|
||||
{
|
||||
isOpenUp = true;
|
||||
}
|
||||
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.func_147439_a(par2, par3, par4 - 1), par1IBlockAccess.getBlockMetadata(par2, par3, par4 - 1)))
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3, par4 - 1), par1IBlockAccess.getBlockMetadata(par2, par3, par4 - 1)))
|
||||
{
|
||||
isOpenLeft = true;
|
||||
}
|
||||
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.func_147439_a(par2, par3, par4 + 1), par1IBlockAccess.getBlockMetadata(par2, par3, par4 + 1)))
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3, par4 + 1), par1IBlockAccess.getBlockMetadata(par2, par3, par4 + 1)))
|
||||
{
|
||||
isOpenRight = true;
|
||||
}
|
||||
@@ -170,22 +170,22 @@ public class GlassBlockConnected extends MantleBlock
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.func_147439_a(par2 - 1, par3, par4), par1IBlockAccess.getBlockMetadata(par2 - 1, par3, par4)))
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2 - 1, par3, par4), par1IBlockAccess.getBlockMetadata(par2 - 1, par3, par4)))
|
||||
{
|
||||
isOpenDown = true;
|
||||
}
|
||||
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.func_147439_a(par2 + 1, par3, par4), par1IBlockAccess.getBlockMetadata(par2 + 1, par3, par4)))
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2 + 1, par3, par4), par1IBlockAccess.getBlockMetadata(par2 + 1, par3, par4)))
|
||||
{
|
||||
isOpenUp = true;
|
||||
}
|
||||
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.func_147439_a(par2, par3, par4 - 1), par1IBlockAccess.getBlockMetadata(par2, par3, par4 - 1)))
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3, par4 - 1), par1IBlockAccess.getBlockMetadata(par2, par3, par4 - 1)))
|
||||
{
|
||||
isOpenLeft = true;
|
||||
}
|
||||
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.func_147439_a(par2, par3, par4 + 1), par1IBlockAccess.getBlockMetadata(par2, par3, par4 + 1)))
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3, par4 + 1), par1IBlockAccess.getBlockMetadata(par2, par3, par4 + 1)))
|
||||
{
|
||||
isOpenRight = true;
|
||||
}
|
||||
@@ -252,22 +252,22 @@ public class GlassBlockConnected extends MantleBlock
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.func_147439_a(par2, par3 - 1, par4), par1IBlockAccess.getBlockMetadata(par2, par3 - 1, par4)))
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3 - 1, par4), par1IBlockAccess.getBlockMetadata(par2, par3 - 1, par4)))
|
||||
{
|
||||
isOpenDown = true;
|
||||
}
|
||||
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.func_147439_a(par2, par3 + 1, par4), par1IBlockAccess.getBlockMetadata(par2, par3 + 1, par4)))
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3 + 1, par4), par1IBlockAccess.getBlockMetadata(par2, par3 + 1, par4)))
|
||||
{
|
||||
isOpenUp = true;
|
||||
}
|
||||
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.func_147439_a(par2 - 1, par3, par4), par1IBlockAccess.getBlockMetadata(par2 - 1, par3, par4)))
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2 - 1, par3, par4), par1IBlockAccess.getBlockMetadata(par2 - 1, par3, par4)))
|
||||
{
|
||||
isOpenLeft = true;
|
||||
}
|
||||
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.func_147439_a(par2 + 1, par3, par4), par1IBlockAccess.getBlockMetadata(par2 + 1, par3, par4)))
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2 + 1, par3, par4), par1IBlockAccess.getBlockMetadata(par2 + 1, par3, par4)))
|
||||
{
|
||||
isOpenRight = true;
|
||||
}
|
||||
@@ -334,22 +334,22 @@ public class GlassBlockConnected extends MantleBlock
|
||||
}
|
||||
break;
|
||||
case 3:
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.func_147439_a(par2, par3 - 1, par4), par1IBlockAccess.getBlockMetadata(par2, par3 - 1, par4)))
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3 - 1, par4), par1IBlockAccess.getBlockMetadata(par2, par3 - 1, par4)))
|
||||
{
|
||||
isOpenDown = true;
|
||||
}
|
||||
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.func_147439_a(par2, par3 + 1, par4), par1IBlockAccess.getBlockMetadata(par2, par3 + 1, par4)))
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3 + 1, par4), par1IBlockAccess.getBlockMetadata(par2, par3 + 1, par4)))
|
||||
{
|
||||
isOpenUp = true;
|
||||
}
|
||||
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.func_147439_a(par2 - 1, par3, par4), par1IBlockAccess.getBlockMetadata(par2 - 1, par3, par4)))
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2 - 1, par3, par4), par1IBlockAccess.getBlockMetadata(par2 - 1, par3, par4)))
|
||||
{
|
||||
isOpenLeft = true;
|
||||
}
|
||||
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.func_147439_a(par2 + 1, par3, par4), par1IBlockAccess.getBlockMetadata(par2 + 1, par3, par4)))
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2 + 1, par3, par4), par1IBlockAccess.getBlockMetadata(par2 + 1, par3, par4)))
|
||||
{
|
||||
isOpenRight = true;
|
||||
}
|
||||
@@ -416,22 +416,22 @@ public class GlassBlockConnected extends MantleBlock
|
||||
}
|
||||
break;
|
||||
case 4:
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.func_147439_a(par2, par3 - 1, par4), par1IBlockAccess.getBlockMetadata(par2, par3 - 1, par4)))
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3 - 1, par4), par1IBlockAccess.getBlockMetadata(par2, par3 - 1, par4)))
|
||||
{
|
||||
isOpenDown = true;
|
||||
}
|
||||
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.func_147439_a(par2, par3 + 1, par4), par1IBlockAccess.getBlockMetadata(par2, par3 + 1, par4)))
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3 + 1, par4), par1IBlockAccess.getBlockMetadata(par2, par3 + 1, par4)))
|
||||
{
|
||||
isOpenUp = true;
|
||||
}
|
||||
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.func_147439_a(par2, par3, par4 - 1), par1IBlockAccess.getBlockMetadata(par2, par3, par4 - 1)))
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3, par4 - 1), par1IBlockAccess.getBlockMetadata(par2, par3, par4 - 1)))
|
||||
{
|
||||
isOpenLeft = true;
|
||||
}
|
||||
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.func_147439_a(par2, par3, par4 + 1), par1IBlockAccess.getBlockMetadata(par2, par3, par4 + 1)))
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3, par4 + 1), par1IBlockAccess.getBlockMetadata(par2, par3, par4 + 1)))
|
||||
{
|
||||
isOpenRight = true;
|
||||
}
|
||||
@@ -498,22 +498,22 @@ public class GlassBlockConnected extends MantleBlock
|
||||
}
|
||||
break;
|
||||
case 5:
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.func_147439_a(par2, par3 - 1, par4), par1IBlockAccess.getBlockMetadata(par2, par3 - 1, par4)))
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3 - 1, par4), par1IBlockAccess.getBlockMetadata(par2, par3 - 1, par4)))
|
||||
{
|
||||
isOpenDown = true;
|
||||
}
|
||||
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.func_147439_a(par2, par3 + 1, par4), par1IBlockAccess.getBlockMetadata(par2, par3 + 1, par4)))
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3 + 1, par4), par1IBlockAccess.getBlockMetadata(par2, par3 + 1, par4)))
|
||||
{
|
||||
isOpenUp = true;
|
||||
}
|
||||
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.func_147439_a(par2, par3, par4 - 1), par1IBlockAccess.getBlockMetadata(par2, par3, par4 - 1)))
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3, par4 - 1), par1IBlockAccess.getBlockMetadata(par2, par3, par4 - 1)))
|
||||
{
|
||||
isOpenLeft = true;
|
||||
}
|
||||
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.func_147439_a(par2, par3, par4 + 1), par1IBlockAccess.getBlockMetadata(par2, par3, par4 + 1)))
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3, par4 + 1), par1IBlockAccess.getBlockMetadata(par2, par3, par4 + 1)))
|
||||
{
|
||||
isOpenRight = true;
|
||||
}
|
||||
@@ -585,24 +585,24 @@ public class GlassBlockConnected extends MantleBlock
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_149646_a (IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
|
||||
public boolean shouldSideBeRendered (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. func_149646_a(par1IBlockAccess, par2, par3, par4, par5);
|
||||
Block b = par1IBlockAccess.getBlock(par2, par3, par4);
|
||||
return b == (Block) this ? false : super. shouldSideBeRendered(par1IBlockAccess, par2, par3, par4, par5);
|
||||
}
|
||||
|
||||
@Override
|
||||
public IIcon func_149691_a (int par1, int par2)
|
||||
public IIcon getIcon (int par1, int par2)
|
||||
{
|
||||
return icons[0];
|
||||
}
|
||||
|
||||
@Override
|
||||
public AxisAlignedBB func_149633_g (World par1World, int par2, int par3, int par4)
|
||||
public AxisAlignedBB getSelectedBoundingBoxFromPool (World par1World, int par2, int par3, int par4)
|
||||
{
|
||||
if (shouldRenderSelectionBox)
|
||||
{
|
||||
return super.func_149633_g(par1World, par2, par3, par4);
|
||||
return super.getSelectedBoundingBoxFromPool(par1World, par2, par3, par4);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -611,7 +611,7 @@ public class GlassBlockConnected extends MantleBlock
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_149651_a (IIconRegister par1IconRegister)
|
||||
public void registerBlockIcons (IIconRegister par1IconRegister)
|
||||
{
|
||||
icons[0] = par1IconRegister.registerIcon("tinker:glass/" + folder + "/glass");
|
||||
icons[1] = par1IconRegister.registerIcon("tinker:glass/" + folder + "/glass_1_d");
|
||||
|
||||
@@ -30,7 +30,7 @@ public class GlassBlockConnectedMeta extends GlassBlockConnected
|
||||
}
|
||||
|
||||
@Override
|
||||
public IIcon func_149673_e (IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
|
||||
public IIcon getIcon (IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
|
||||
{
|
||||
int meta = par1IBlockAccess.getBlockMetadata(par2, par3, par4);
|
||||
if (meta < icons.length)
|
||||
@@ -50,13 +50,13 @@ public class GlassBlockConnectedMeta extends GlassBlockConnected
|
||||
}
|
||||
|
||||
@Override
|
||||
public IIcon func_149691_a (int par1, int par2)
|
||||
public IIcon getIcon (int par1, int par2)
|
||||
{
|
||||
return icons[par2][0];
|
||||
}
|
||||
|
||||
@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 < textures.length; i++)
|
||||
{
|
||||
@@ -65,7 +65,7 @@ public class GlassBlockConnectedMeta extends GlassBlockConnected
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_149651_a (IIconRegister par1IconRegister)
|
||||
public void registerBlockIcons (IIconRegister par1IconRegister)
|
||||
{
|
||||
for (int i = 0; i < textures.length; i++)
|
||||
{
|
||||
@@ -89,7 +89,7 @@ public class GlassBlockConnectedMeta extends GlassBlockConnected
|
||||
}
|
||||
|
||||
@Override
|
||||
public int func_149692_a (int par1)
|
||||
public int damageDropped (int par1)
|
||||
{
|
||||
return par1;
|
||||
}
|
||||
|
||||
@@ -15,12 +15,12 @@ public class GlassBlockStained extends TConstructBlock
|
||||
|
||||
public GlassBlockStained(String tex)
|
||||
{
|
||||
super(Material.field_151592_s, 3f, blockTextures);
|
||||
super(Material.glass, 3f, blockTextures);
|
||||
this.textureName = tex;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int func_149701_w ()
|
||||
public int getRenderBlockPass ()
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
@@ -31,15 +31,15 @@ public class GlassBlockStained extends TConstructBlock
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public boolean func_149646_a (IBlockAccess world, int x, int y, int z, int side)
|
||||
public boolean shouldSideBeRendered (IBlockAccess world, int x, int y, int z, int side)
|
||||
{
|
||||
Block block = world.func_147439_a(x, y, z);
|
||||
return block == this ? false : super. func_149646_a(world, x, y, z, side);
|
||||
Block block = world.getBlock(x, y, z);
|
||||
return block == this ? false : super. shouldSideBeRendered(world, x, y, z, side);
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void func_149651_a (IIconRegister iconRegister)
|
||||
public void registerBlockIcons (IIconRegister iconRegister)
|
||||
{
|
||||
this.icons = new IIcon[textureNames.length];
|
||||
|
||||
|
||||
@@ -9,10 +9,10 @@ public class GlassPane extends PaneBase
|
||||
|
||||
public GlassPane()
|
||||
{
|
||||
super(Material.field_151592_s, "glass/", blockTextures);
|
||||
this.func_149711_c(0.3F);
|
||||
this.field_149762_H = field_149778_k;
|
||||
this.func_149663_c("tconstruct.glasspane");
|
||||
this.func_149647_a(TConstructRegistry.blockTab);
|
||||
super(Material.glass, "glass/", blockTextures);
|
||||
this.setHardness(0.3F);
|
||||
this.stepSound = soundTypeGlass;
|
||||
this.setBlockName("tconstruct.glasspane");
|
||||
this.setCreativeTab(TConstructRegistry.blockTab);
|
||||
}
|
||||
}
|
||||
@@ -26,23 +26,23 @@ public class GlassPaneConnected extends GlassBlockConnected
|
||||
}
|
||||
|
||||
@Override
|
||||
public int func_149645_b ()
|
||||
public int getRenderType ()
|
||||
{
|
||||
return PaneConnectedRender.model;
|
||||
// return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public IIcon func_149673_e (IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
|
||||
public IIcon getIcon (IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
|
||||
{
|
||||
if (par5 == 0 || par5 == 1)
|
||||
{
|
||||
return par1IBlockAccess.func_147439_a(par2, par3 - 1, par4) == this && par5 == 0 ? icons[15]
|
||||
: par1IBlockAccess.func_147439_a(par2, par3 + 1, par4) == this && par5 == 1 ? icons[15] : getSideTextureIndex();
|
||||
return par1IBlockAccess.getBlock(par2, par3 - 1, par4) == this && par5 == 0 ? icons[15]
|
||||
: par1IBlockAccess.getBlock(par2, par3 + 1, par4) == this && par5 == 1 ? icons[15] : getSideTextureIndex();
|
||||
}
|
||||
else
|
||||
{
|
||||
return super.func_149673_e(par1IBlockAccess, par2, par3, par4, par5);
|
||||
return super.getIcon(par1IBlockAccess, par2, par3, par4, par5);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -64,22 +64,22 @@ public class GlassPaneConnected extends GlassBlockConnected
|
||||
switch (par5)
|
||||
{
|
||||
case 0:
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.func_147439_a(par2 - 1, par3, par4), par1IBlockAccess.getBlockMetadata(par2 - 1, par3, par4)))
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2 - 1, par3, par4), par1IBlockAccess.getBlockMetadata(par2 - 1, par3, par4)))
|
||||
{
|
||||
isOpenDown = true;
|
||||
}
|
||||
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.func_147439_a(par2 + 1, par3, par4), par1IBlockAccess.getBlockMetadata(par2 + 1, par3, par4)))
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2 + 1, par3, par4), par1IBlockAccess.getBlockMetadata(par2 + 1, par3, par4)))
|
||||
{
|
||||
isOpenUp = true;
|
||||
}
|
||||
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.func_147439_a(par2, par3, par4 - 1), par1IBlockAccess.getBlockMetadata(par2, par3, par4 - 1)))
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3, par4 - 1), par1IBlockAccess.getBlockMetadata(par2, par3, par4 - 1)))
|
||||
{
|
||||
isOpenLeft = true;
|
||||
}
|
||||
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.func_147439_a(par2, par3, par4 + 1), par1IBlockAccess.getBlockMetadata(par2, par3, par4 + 1)))
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3, par4 + 1), par1IBlockAccess.getBlockMetadata(par2, par3, par4 + 1)))
|
||||
{
|
||||
isOpenRight = true;
|
||||
}
|
||||
@@ -146,22 +146,22 @@ public class GlassPaneConnected extends GlassBlockConnected
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.func_147439_a(par2 - 1, par3, par4), par1IBlockAccess.getBlockMetadata(par2 - 1, par3, par4)))
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2 - 1, par3, par4), par1IBlockAccess.getBlockMetadata(par2 - 1, par3, par4)))
|
||||
{
|
||||
isOpenDown = true;
|
||||
}
|
||||
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.func_147439_a(par2 + 1, par3, par4), par1IBlockAccess.getBlockMetadata(par2 + 1, par3, par4)))
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2 + 1, par3, par4), par1IBlockAccess.getBlockMetadata(par2 + 1, par3, par4)))
|
||||
{
|
||||
isOpenUp = true;
|
||||
}
|
||||
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.func_147439_a(par2, par3, par4 - 1), par1IBlockAccess.getBlockMetadata(par2, par3, par4 - 1)))
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3, par4 - 1), par1IBlockAccess.getBlockMetadata(par2, par3, par4 - 1)))
|
||||
{
|
||||
isOpenLeft = true;
|
||||
}
|
||||
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.func_147439_a(par2, par3, par4 + 1), par1IBlockAccess.getBlockMetadata(par2, par3, par4 + 1)))
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3, par4 + 1), par1IBlockAccess.getBlockMetadata(par2, par3, par4 + 1)))
|
||||
{
|
||||
isOpenRight = true;
|
||||
}
|
||||
@@ -228,22 +228,22 @@ public class GlassPaneConnected extends GlassBlockConnected
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.func_147439_a(par2, par3 - 1, par4), par1IBlockAccess.getBlockMetadata(par2, par3 - 1, par4)))
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3 - 1, par4), par1IBlockAccess.getBlockMetadata(par2, par3 - 1, par4)))
|
||||
{
|
||||
isOpenDown = true;
|
||||
}
|
||||
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.func_147439_a(par2, par3 + 1, par4), par1IBlockAccess.getBlockMetadata(par2, par3 + 1, par4)))
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3 + 1, par4), par1IBlockAccess.getBlockMetadata(par2, par3 + 1, par4)))
|
||||
{
|
||||
isOpenUp = true;
|
||||
}
|
||||
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.func_147439_a(par2 - 1, par3, par4), par1IBlockAccess.getBlockMetadata(par2 - 1, par3, par4)))
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2 - 1, par3, par4), par1IBlockAccess.getBlockMetadata(par2 - 1, par3, par4)))
|
||||
{
|
||||
isOpenLeft = true;
|
||||
}
|
||||
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.func_147439_a(par2 + 1, par3, par4), par1IBlockAccess.getBlockMetadata(par2 + 1, par3, par4)))
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2 + 1, par3, par4), par1IBlockAccess.getBlockMetadata(par2 + 1, par3, par4)))
|
||||
{
|
||||
isOpenRight = true;
|
||||
}
|
||||
@@ -310,22 +310,22 @@ public class GlassPaneConnected extends GlassBlockConnected
|
||||
}
|
||||
break;
|
||||
case 3:
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.func_147439_a(par2, par3 - 1, par4), par1IBlockAccess.getBlockMetadata(par2, par3 - 1, par4)))
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3 - 1, par4), par1IBlockAccess.getBlockMetadata(par2, par3 - 1, par4)))
|
||||
{
|
||||
isOpenDown = true;
|
||||
}
|
||||
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.func_147439_a(par2, par3 + 1, par4), par1IBlockAccess.getBlockMetadata(par2, par3 + 1, par4)))
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3 + 1, par4), par1IBlockAccess.getBlockMetadata(par2, par3 + 1, par4)))
|
||||
{
|
||||
isOpenUp = true;
|
||||
}
|
||||
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.func_147439_a(par2 - 1, par3, par4), par1IBlockAccess.getBlockMetadata(par2 - 1, par3, par4)))
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2 - 1, par3, par4), par1IBlockAccess.getBlockMetadata(par2 - 1, par3, par4)))
|
||||
{
|
||||
isOpenLeft = true;
|
||||
}
|
||||
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.func_147439_a(par2 + 1, par3, par4), par1IBlockAccess.getBlockMetadata(par2 + 1, par3, par4)))
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2 + 1, par3, par4), par1IBlockAccess.getBlockMetadata(par2 + 1, par3, par4)))
|
||||
{
|
||||
isOpenRight = true;
|
||||
}
|
||||
@@ -392,22 +392,22 @@ public class GlassPaneConnected extends GlassBlockConnected
|
||||
}
|
||||
break;
|
||||
case 4:
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.func_147439_a(par2, par3 - 1, par4), par1IBlockAccess.getBlockMetadata(par2, par3 - 1, par4)))
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3 - 1, par4), par1IBlockAccess.getBlockMetadata(par2, par3 - 1, par4)))
|
||||
{
|
||||
isOpenDown = true;
|
||||
}
|
||||
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.func_147439_a(par2, par3 + 1, par4), par1IBlockAccess.getBlockMetadata(par2, par3 + 1, par4)))
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3 + 1, par4), par1IBlockAccess.getBlockMetadata(par2, par3 + 1, par4)))
|
||||
{
|
||||
isOpenUp = true;
|
||||
}
|
||||
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.func_147439_a(par2, par3, par4 - 1), par1IBlockAccess.getBlockMetadata(par2, par3, par4 - 1)))
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3, par4 - 1), par1IBlockAccess.getBlockMetadata(par2, par3, par4 - 1)))
|
||||
{
|
||||
isOpenLeft = true;
|
||||
}
|
||||
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.func_147439_a(par2, par3, par4 + 1), par1IBlockAccess.getBlockMetadata(par2, par3, par4 + 1)))
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3, par4 + 1), par1IBlockAccess.getBlockMetadata(par2, par3, par4 + 1)))
|
||||
{
|
||||
isOpenRight = true;
|
||||
}
|
||||
@@ -474,22 +474,22 @@ public class GlassPaneConnected extends GlassBlockConnected
|
||||
}
|
||||
break;
|
||||
case 5:
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.func_147439_a(par2, par3 - 1, par4), par1IBlockAccess.getBlockMetadata(par2, par3 - 1, par4)))
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3 - 1, par4), par1IBlockAccess.getBlockMetadata(par2, par3 - 1, par4)))
|
||||
{
|
||||
isOpenDown = true;
|
||||
}
|
||||
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.func_147439_a(par2, par3 + 1, par4), par1IBlockAccess.getBlockMetadata(par2, par3 + 1, par4)))
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3 + 1, par4), par1IBlockAccess.getBlockMetadata(par2, par3 + 1, par4)))
|
||||
{
|
||||
isOpenUp = true;
|
||||
}
|
||||
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.func_147439_a(par2, par3, par4 - 1), par1IBlockAccess.getBlockMetadata(par2, par3, par4 - 1)))
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3, par4 - 1), par1IBlockAccess.getBlockMetadata(par2, par3, par4 - 1)))
|
||||
{
|
||||
isOpenLeft = true;
|
||||
}
|
||||
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.func_147439_a(par2, par3, par4 + 1), par1IBlockAccess.getBlockMetadata(par2, par3, par4 + 1)))
|
||||
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3, par4 + 1), par1IBlockAccess.getBlockMetadata(par2, par3, par4 + 1)))
|
||||
{
|
||||
isOpenRight = true;
|
||||
}
|
||||
@@ -561,7 +561,7 @@ public class GlassPaneConnected extends GlassBlockConnected
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_149743_a (World par1World, int par2, int par3, int par4, AxisAlignedBB par5AxisAlignedBB, List par6List, Entity par7Entity)
|
||||
public void addCollisionBoxesToList (World par1World, int par2, int par3, int par4, AxisAlignedBB par5AxisAlignedBB, List par6List, Entity par7Entity)
|
||||
{
|
||||
boolean flag = this.canPaneConnectTo(par1World, par2, par3, par4, ForgeDirection.NORTH);
|
||||
boolean flag1 = this.canPaneConnectTo(par1World, par2, par3, par4, ForgeDirection.SOUTH);
|
||||
@@ -572,49 +572,49 @@ public class GlassPaneConnected extends GlassBlockConnected
|
||||
{
|
||||
if (flag2 && !flag3)
|
||||
{
|
||||
this.func_149676_a(0.0F, 0.0F, 0.4375F, 0.5F, 1.0F, 0.5625F);
|
||||
super.func_149743_a(par1World, par2, par3, par4, par5AxisAlignedBB, par6List, par7Entity);
|
||||
this.setBlockBounds(0.0F, 0.0F, 0.4375F, 0.5F, 1.0F, 0.5625F);
|
||||
super.addCollisionBoxesToList(par1World, par2, par3, par4, par5AxisAlignedBB, par6List, par7Entity);
|
||||
}
|
||||
else if (!flag2 && flag3)
|
||||
{
|
||||
this.func_149676_a(0.5F, 0.0F, 0.4375F, 1.0F, 1.0F, 0.5625F);
|
||||
super.func_149743_a(par1World, par2, par3, par4, par5AxisAlignedBB, par6List, par7Entity);
|
||||
this.setBlockBounds(0.5F, 0.0F, 0.4375F, 1.0F, 1.0F, 0.5625F);
|
||||
super.addCollisionBoxesToList(par1World, par2, par3, par4, par5AxisAlignedBB, par6List, par7Entity);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.func_149676_a(0.0F, 0.0F, 0.4375F, 1.0F, 1.0F, 0.5625F);
|
||||
super.func_149743_a(par1World, par2, par3, par4, par5AxisAlignedBB, par6List, par7Entity);
|
||||
this.setBlockBounds(0.0F, 0.0F, 0.4375F, 1.0F, 1.0F, 0.5625F);
|
||||
super.addCollisionBoxesToList(par1World, par2, par3, par4, par5AxisAlignedBB, par6List, par7Entity);
|
||||
}
|
||||
|
||||
if ((!flag || !flag1) && (flag2 || flag3 || flag || flag1))
|
||||
{
|
||||
if (flag && !flag1)
|
||||
{
|
||||
this.func_149676_a(0.4375F, 0.0F, 0.0F, 0.5625F, 1.0F, 0.5F);
|
||||
super.func_149743_a(par1World, par2, par3, par4, par5AxisAlignedBB, par6List, par7Entity);
|
||||
this.setBlockBounds(0.4375F, 0.0F, 0.0F, 0.5625F, 1.0F, 0.5F);
|
||||
super.addCollisionBoxesToList(par1World, par2, par3, par4, par5AxisAlignedBB, par6List, par7Entity);
|
||||
}
|
||||
else if (!flag && flag1)
|
||||
{
|
||||
this.func_149676_a(0.4375F, 0.0F, 0.5F, 0.5625F, 1.0F, 1.0F);
|
||||
super.func_149743_a(par1World, par2, par3, par4, par5AxisAlignedBB, par6List, par7Entity);
|
||||
this.setBlockBounds(0.4375F, 0.0F, 0.5F, 0.5625F, 1.0F, 1.0F);
|
||||
super.addCollisionBoxesToList(par1World, par2, par3, par4, par5AxisAlignedBB, par6List, par7Entity);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.func_149676_a(0.4375F, 0.0F, 0.0F, 0.5625F, 1.0F, 1.0F);
|
||||
super.func_149743_a(par1World, par2, par3, par4, par5AxisAlignedBB, par6List, par7Entity);
|
||||
this.setBlockBounds(0.4375F, 0.0F, 0.0F, 0.5625F, 1.0F, 1.0F);
|
||||
super.addCollisionBoxesToList(par1World, par2, par3, par4, par5AxisAlignedBB, par6List, par7Entity);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_149683_g ()
|
||||
public void setBlockBoundsForItemRender ()
|
||||
{
|
||||
this.func_149676_a(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
|
||||
this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_149719_a (IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
|
||||
public void setBlockBoundsBasedOnState (IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
|
||||
{
|
||||
float f = 0.4375F;
|
||||
float f1 = 0.5625F;
|
||||
@@ -659,7 +659,7 @@ public class GlassPaneConnected extends GlassBlockConnected
|
||||
f3 = 1.0F;
|
||||
}
|
||||
|
||||
this.func_149676_a(f, 0.0F, f2, f1, 1.0F, f3);
|
||||
this.setBlockBounds(f, 0.0F, f2, f1, 1.0F, f3);
|
||||
}
|
||||
|
||||
public IIcon getSideTextureIndex ()
|
||||
@@ -669,26 +669,26 @@ public class GlassPaneConnected extends GlassBlockConnected
|
||||
|
||||
public final boolean canThisPaneConnectToThisBlock (Block b)
|
||||
{
|
||||
return b.func_149662_c() || b == (Block) this || b == Blocks.glass;
|
||||
return b.isOpaqueCube() || b == (Block) this || b == Blocks.glass;
|
||||
}
|
||||
|
||||
public void func_149651_a (IIconRegister par1IconRegister)
|
||||
public void registerBlockIcons (IIconRegister par1IconRegister)
|
||||
{
|
||||
super.func_149651_a(par1IconRegister);
|
||||
super.registerBlockIcons(par1IconRegister);
|
||||
this.theIcon = par1IconRegister.registerIcon("tinker:glass/" + folder + "/glass_side");
|
||||
}
|
||||
|
||||
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))
|
||||
return canThisPaneConnectToThisBlock(access.getBlock(x + dir.offsetX, y + dir.offsetY, z + dir.offsetZ))
|
||||
|| access.isSideSolid(x + dir.offsetX, y + dir.offsetY, z + dir.offsetZ, dir.getOpposite(), false);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_149646_a (IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
|
||||
public boolean shouldSideBeRendered (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;
|
||||
// return par1IBlockAccess.getBlock(par2, par3, par4) != this.blockID;
|
||||
// }else{
|
||||
// return true;
|
||||
// }
|
||||
|
||||
@@ -9,12 +9,12 @@ public class GlassPaneStained extends PaneBase
|
||||
|
||||
public GlassPaneStained()
|
||||
{
|
||||
super(Material.field_151592_s, "glass/", assembleBlockTextures());
|
||||
super(Material.glass, "glass/", assembleBlockTextures());
|
||||
//TODO setHardness
|
||||
this.func_149711_c(0.3F);
|
||||
this.field_149762_H = field_149778_k;
|
||||
this.func_149663_c("tconstruct.glasspanestained");
|
||||
this.func_149647_a(TConstructRegistry.blockTab);
|
||||
this.setHardness(0.3F);
|
||||
this.stepSound = soundTypeGlass;
|
||||
this.setBlockName("tconstruct.glasspanestained");
|
||||
this.setCreativeTab(TConstructRegistry.blockTab);
|
||||
}
|
||||
|
||||
private static String[] assembleBlockTextures ()
|
||||
@@ -28,13 +28,13 @@ public class GlassPaneStained extends PaneBase
|
||||
}
|
||||
|
||||
@Override
|
||||
public int func_149701_w ()
|
||||
public int getRenderBlockPass ()
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int func_149692_a (int par1)
|
||||
public int damageDropped (int par1)
|
||||
{
|
||||
return par1;
|
||||
}
|
||||
|
||||
@@ -14,11 +14,11 @@ public class GlueBlock extends TConstructBlock {
|
||||
|
||||
public GlueBlock()
|
||||
{
|
||||
super(Material.field_151578_c, 4.0f, new String[]{"glue"});
|
||||
super(Material.ground, 4.0f, new String[]{"glue"});
|
||||
}
|
||||
|
||||
@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)
|
||||
{
|
||||
entity.motionX *= 0.1;
|
||||
entity.motionZ *= 0.1;
|
||||
@@ -43,7 +43,7 @@ public class GlueBlock extends TConstructBlock {
|
||||
|
||||
public AxisAlignedBB getCollisionBoundingBoxFromPool (World world, int x, int y, int z)
|
||||
{
|
||||
return Blocks.soul_sand.func_149668_a(world, x, y, z);
|
||||
return Blocks.soul_sand.getCollisionBoundingBoxFromPool(world, x, y, z);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -25,7 +25,7 @@ public class GlueFluid extends BlockFluidFinite {
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void func_149651_a (IIconRegister iconRegister)
|
||||
public void registerBlockIcons (IIconRegister iconRegister)
|
||||
{
|
||||
stillIcon = iconRegister.registerIcon("tinker:liquid_glue");
|
||||
flowIcon = iconRegister.registerIcon("tinker:liquid_glue_flow");
|
||||
@@ -33,7 +33,7 @@ public class GlueFluid extends BlockFluidFinite {
|
||||
|
||||
@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;
|
||||
@@ -41,7 +41,7 @@ public class GlueFluid extends BlockFluidFinite {
|
||||
}
|
||||
|
||||
@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) {
|
||||
entity.motionX *= 0.1;
|
||||
entity.motionZ *= 0.1;
|
||||
|
||||
|
||||
@@ -22,13 +22,13 @@ public class GravelOre extends BlockFalling
|
||||
public GravelOre()
|
||||
{
|
||||
super();
|
||||
this.func_149647_a(TConstructRegistry.blockTab);
|
||||
this.field_149762_H = field_149767_g;
|
||||
//this.field_149764_J = Material.field_151596_z;
|
||||
this.setCreativeTab(TConstructRegistry.blockTab);
|
||||
this.stepSound = soundTypeGravel;
|
||||
//this.blockMaterial = Material.craftedSnow;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_149651_a (IIconRegister iconRegister)
|
||||
public void registerBlockIcons (IIconRegister iconRegister)
|
||||
{
|
||||
this.icons = new IIcon[textureNames.length];
|
||||
|
||||
@@ -39,7 +39,7 @@ public class GravelOre extends BlockFalling
|
||||
}
|
||||
|
||||
@Override
|
||||
public IIcon func_149691_a (int side, int meta)
|
||||
public IIcon getIcon (int side, int meta)
|
||||
{
|
||||
return icons[meta];
|
||||
}
|
||||
@@ -54,7 +54,7 @@ public class GravelOre extends BlockFalling
|
||||
}
|
||||
|
||||
@Override
|
||||
public int func_149692_a (int meta)
|
||||
public int damageDropped (int meta)
|
||||
{
|
||||
/*if (meta == 1)
|
||||
return 0;*/
|
||||
@@ -69,7 +69,7 @@ public class GravelOre extends BlockFalling
|
||||
}
|
||||
|
||||
@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 < 6; iter++)
|
||||
{
|
||||
|
||||
@@ -35,12 +35,12 @@ public class LavaTankBlock extends BlockContainer
|
||||
|
||||
public LavaTankBlock()
|
||||
{
|
||||
super(Material.field_151576_e);
|
||||
func_149711_c(3F);
|
||||
func_149752_b(20F);
|
||||
func_149647_a(TConstructRegistry.blockTab);
|
||||
func_149663_c("TConstruct.LavaTank");
|
||||
field_149762_H = Block.field_149778_k;
|
||||
super(Material.rock);
|
||||
setHardness(3F);
|
||||
setResistance(20F);
|
||||
setCreativeTab(TConstructRegistry.blockTab);
|
||||
setBlockName("TConstruct.LavaTank");
|
||||
stepSound = Block.soundTypeGlass;
|
||||
}
|
||||
|
||||
public LavaTankBlock(String prefix)
|
||||
@@ -60,7 +60,7 @@ public class LavaTankBlock extends BlockContainer
|
||||
return textureNames;
|
||||
}
|
||||
|
||||
public void func_149651_a (IIconRegister iconRegister)
|
||||
public void registerBlockIcons (IIconRegister iconRegister)
|
||||
{
|
||||
String[] textureNames = getTextureNames();
|
||||
this.icons = new IIcon[textureNames.length];
|
||||
@@ -72,37 +72,37 @@ public class LavaTankBlock extends BlockContainer
|
||||
}
|
||||
|
||||
@Override
|
||||
public int func_149701_w ()
|
||||
public int getRenderBlockPass ()
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_149662_c ()
|
||||
public boolean isOpaqueCube ()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_149686_d ()
|
||||
public boolean renderAsNormalBlock ()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_149646_a (IBlockAccess world, int x, int y, int z, int side)
|
||||
public boolean shouldSideBeRendered (IBlockAccess world, int x, int y, int z, int side)
|
||||
{
|
||||
//if (side == 0 && world.getBlockMetadata(x, y, z) == 0)
|
||||
//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. func_149646_a(world, x, y, z, side);
|
||||
//return super. shouldSideBeRendered(world, x, y, z, side);
|
||||
Block b = world.getBlock(x, y, z);
|
||||
return b == (Block)this ? false : super. shouldSideBeRendered(world, x, y, z, side);
|
||||
//return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getLightValue (IBlockAccess world, int x, int y, int z)
|
||||
{
|
||||
TileEntity logic = world.func_147438_o(x, y, z);
|
||||
TileEntity logic = world.getTileEntity(x, y, z);
|
||||
if (logic != null && logic instanceof LavaTankLogic)
|
||||
return ((LavaTankLogic) logic).getBrightness();
|
||||
return 0;
|
||||
@@ -115,12 +115,12 @@ public class LavaTankBlock extends BlockContainer
|
||||
}*/
|
||||
|
||||
@Override
|
||||
public int func_149645_b ()
|
||||
public int getRenderType ()
|
||||
{
|
||||
return TankRender.tankModelID;
|
||||
}
|
||||
|
||||
public IIcon func_149691_a (int side, int meta)
|
||||
public IIcon getIcon (int side, int meta)
|
||||
{
|
||||
if (meta >= 3)
|
||||
meta = 0;
|
||||
@@ -152,19 +152,19 @@ public class LavaTankBlock extends BlockContainer
|
||||
}
|
||||
|
||||
@Override
|
||||
public TileEntity func_149915_a (World world, int metadata)
|
||||
public TileEntity createNewTileEntity (World world, int metadata)
|
||||
{
|
||||
return new LavaTankLogic();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_149727_a (World world, int x, int y, int z, EntityPlayer player, int side, float clickX, float clickY, float clickZ)
|
||||
public boolean onBlockActivated (World world, int x, int y, int z, EntityPlayer player, int side, float clickX, float clickY, float clickZ)
|
||||
{
|
||||
ItemStack heldItem = player.inventory.getCurrentItem();
|
||||
if (heldItem != null)
|
||||
{
|
||||
FluidStack liquid = FluidContainerRegistry.getFluidForFilledItem(player.getCurrentEquippedItem());
|
||||
LavaTankLogic logic = (LavaTankLogic) world.func_147438_o(x, y, z);
|
||||
LavaTankLogic logic = (LavaTankLogic) world.getTileEntity(x, y, z);
|
||||
if (liquid != null)
|
||||
{
|
||||
int amount = logic.fill(ForgeDirection.UNKNOWN, liquid, false);
|
||||
@@ -232,7 +232,7 @@ public class LavaTankBlock extends BlockContainer
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_149666_a (Item i, CreativeTabs tab, List list)
|
||||
public void getSubBlocks (Item i, CreativeTabs tab, List list)
|
||||
{
|
||||
for (int iter = 0; iter < 3; iter++)
|
||||
{
|
||||
@@ -249,7 +249,7 @@ public class LavaTankBlock extends BlockContainer
|
||||
/* Updates */
|
||||
public void onNeighborBlockChange (World world, int x, int y, int z, int nBlockID)
|
||||
{
|
||||
TileEntity logic = world.func_147438_o(x, y, z);
|
||||
TileEntity logic = world.getTileEntity(x, y, z);
|
||||
if (logic instanceof IServantLogic)
|
||||
{
|
||||
((IServantLogic) logic).notifyMasterOfChange();
|
||||
@@ -262,7 +262,7 @@ public class LavaTankBlock extends BlockContainer
|
||||
player.addExhaustion(0.025F);
|
||||
int meta = world.getBlockMetadata(x, y, z);
|
||||
ItemStack stack = new ItemStack(this, 1, meta);
|
||||
LavaTankLogic logic = (LavaTankLogic) world.func_147438_o(x, y, z);
|
||||
LavaTankLogic logic = (LavaTankLogic) world.getTileEntity(x, y, z);
|
||||
FluidStack liquid = logic.tank.getFluid();
|
||||
if (liquid != null)
|
||||
{
|
||||
@@ -287,7 +287,7 @@ public class LavaTankBlock extends BlockContainer
|
||||
double d1 = (double) (world.rand.nextFloat() * f) + (double) (1.0F - f) * 0.5D;
|
||||
double d2 = (double) (world.rand.nextFloat() * f) + (double) (1.0F - f) * 0.5D;
|
||||
EntityItem entityitem = new EntityItem(world, (double) x + d0, (double) y + d1, (double) z + d2, stack);
|
||||
entityitem.field_145804_b = 10;
|
||||
entityitem.delayBeforeCanPickup = 10;
|
||||
world.spawnEntityInWorld(entityitem);
|
||||
}
|
||||
}
|
||||
@@ -298,7 +298,7 @@ public class LavaTankBlock extends BlockContainer
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_149689_a (World world, int x, int y, int z, EntityLivingBase living, ItemStack stack)
|
||||
public void onBlockPlacedBy (World world, int x, int y, int z, EntityLivingBase living, ItemStack stack)
|
||||
{
|
||||
if (stack.hasTagCompound())
|
||||
{
|
||||
@@ -306,7 +306,7 @@ public class LavaTankBlock extends BlockContainer
|
||||
if (liquidTag != null)
|
||||
{
|
||||
FluidStack liquid = FluidStack.loadFluidStackFromNBT(liquidTag);
|
||||
LavaTankLogic logic = (LavaTankLogic) world.func_147438_o(x, y, z);
|
||||
LavaTankLogic logic = (LavaTankLogic) world.getTileEntity(x, y, z);
|
||||
logic.tank.setFluid(liquid);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,17 +25,17 @@ public class LiquidMetalFinite extends BlockFluidFinite
|
||||
{
|
||||
super(fluid, TRepo.liquidMetal);
|
||||
this.texture = texture;
|
||||
this.func_149647_a(TConstructRegistry.blockTab);
|
||||
this.setCreativeTab(TConstructRegistry.blockTab);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int func_149701_w ()
|
||||
public int getRenderBlockPass ()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_149651_a (IIconRegister iconRegister)
|
||||
public void registerBlockIcons (IIconRegister iconRegister)
|
||||
{
|
||||
stillIcon = iconRegister.registerIcon("tinker:" + texture);
|
||||
flowIcon = iconRegister.registerIcon("tinker:" + texture + "_flow");
|
||||
@@ -43,7 +43,7 @@ public class LiquidMetalFinite extends BlockFluidFinite
|
||||
|
||||
@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;
|
||||
@@ -51,7 +51,7 @@ public class LiquidMetalFinite extends BlockFluidFinite
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_149670_a (World par1World, int x, int y, int z, Entity entity)
|
||||
public void onEntityCollidedWithBlock (World par1World, int x, int y, int z, Entity entity)
|
||||
{
|
||||
if (entity instanceof EntityLivingBase)
|
||||
{
|
||||
|
||||
@@ -23,15 +23,15 @@ public class MeatBlock extends BlockWood
|
||||
|
||||
public MeatBlock()
|
||||
{
|
||||
this.func_149711_c(1.0F);
|
||||
this.func_149672_a(Block.field_149766_f);
|
||||
this.setHardness(1.0F);
|
||||
this.setStepSound(Block.soundTypeWood);
|
||||
//setBurnProperties(this.blockID, 5, 20);
|
||||
this.func_149647_a(TConstructRegistry.blockTab);
|
||||
this.setCreativeTab(TConstructRegistry.blockTab);
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon func_149691_a (int side, int metadata)
|
||||
public IIcon getIcon (int side, int metadata)
|
||||
{
|
||||
int tex = (metadata % 4) * 2;
|
||||
int orientation = metadata / 4;
|
||||
@@ -58,7 +58,7 @@ public class MeatBlock extends BlockWood
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void func_149651_a (IIconRegister iconRegister)
|
||||
public void registerBlockIcons (IIconRegister iconRegister)
|
||||
{
|
||||
this.icons = new IIcon[textureNames.length];
|
||||
|
||||
@@ -68,7 +68,7 @@ public class MeatBlock extends BlockWood
|
||||
}
|
||||
}
|
||||
|
||||
public Item func_149650_a (int par1, Random par2Random, int par3)
|
||||
public Item getItemDropped (int par1, Random par2Random, int par3)
|
||||
{
|
||||
return new ItemStack(this).getItem();
|
||||
}
|
||||
@@ -89,7 +89,7 @@ public class MeatBlock extends BlockWood
|
||||
{
|
||||
for (int i2 = -b0; i2 <= b0; ++i2)
|
||||
{
|
||||
Block j2 = par1World.func_147439_a(par2 + k1, par3 + l1, par4 + i2);
|
||||
Block j2 = par1World.getBlock(par2 + k1, par3 + l1, par4 + i2);
|
||||
|
||||
if (j2 != null)
|
||||
{
|
||||
@@ -166,7 +166,7 @@ public class MeatBlock extends BlockWood
|
||||
|
||||
@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 < icons.length / 2; i++)
|
||||
par3List.add(new ItemStack(b, 1, i));
|
||||
|
||||
@@ -26,7 +26,7 @@ public class MetalOre extends TConstructBlock
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_149666_a (Item b, CreativeTabs tab, List list)
|
||||
public void getSubBlocks (Item b, CreativeTabs tab, List list)
|
||||
{
|
||||
for (int iter = 1; iter < 6; iter++)
|
||||
{
|
||||
|
||||
@@ -19,33 +19,33 @@ public class MultiBrick extends TConstructBlock
|
||||
|
||||
public MultiBrick()
|
||||
{
|
||||
super(Material.field_151576_e, 3f, blockTextures);
|
||||
super(Material.rock, 3f, blockTextures);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float func_149712_f (World world, int x, int y, int z)
|
||||
public float getBlockHardness (World world, int x, int y, int z)
|
||||
{
|
||||
int meta = world.getBlockMetadata(x, y, z);
|
||||
switch (meta)
|
||||
{
|
||||
case 0:
|
||||
return Blocks.obsidian.func_149712_f(world, x, y, z);
|
||||
return Blocks.obsidian.getBlockHardness(world, x, y, z);
|
||||
case 1:
|
||||
return Blocks.sandstone.func_149712_f(world, x, y, z);
|
||||
return Blocks.sandstone.getBlockHardness(world, x, y, z);
|
||||
case 2:
|
||||
return Blocks.netherrack.func_149712_f(world, x, y, z);
|
||||
return Blocks.netherrack.getBlockHardness(world, x, y, z);
|
||||
case 3:
|
||||
return Blocks.stone.func_149712_f(world, x, y, z);
|
||||
return Blocks.stone.getBlockHardness(world, x, y, z);
|
||||
case 4:
|
||||
return Blocks.iron_block.func_149712_f(world, x, y, z);
|
||||
return Blocks.iron_block.getBlockHardness(world, x, y, z);
|
||||
case 5:
|
||||
return Blocks.gold_block.func_149712_f(world, x, y, z);
|
||||
return Blocks.gold_block.getBlockHardness(world, x, y, z);
|
||||
case 6:
|
||||
return Blocks.lapis_block.func_149712_f(world, x, y, z);
|
||||
return Blocks.lapis_block.getBlockHardness(world, x, y, z);
|
||||
case 7:
|
||||
return Blocks.diamond_block.func_149712_f(world, x, y, z);
|
||||
return Blocks.diamond_block.getBlockHardness(world, x, y, z);
|
||||
case 8:
|
||||
return Blocks.redstone_block.func_149712_f(world, x, y, z);
|
||||
return Blocks.redstone_block.getBlockHardness(world, x, y, z);
|
||||
case 9:
|
||||
return 1.0F;
|
||||
case 10:
|
||||
@@ -53,11 +53,11 @@ public class MultiBrick extends TConstructBlock
|
||||
case 11:
|
||||
return 1.5F;
|
||||
case 12:
|
||||
return Blocks.end_stone.func_149712_f(world, x, y, z);
|
||||
return Blocks.end_stone.getBlockHardness(world, x, y, z);
|
||||
case 13:
|
||||
return Blocks.obsidian.func_149712_f(world, x, y, z);
|
||||
return Blocks.obsidian.getBlockHardness(world, x, y, z);
|
||||
default:
|
||||
return field_149782_v;
|
||||
return blockHardness;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -100,7 +100,7 @@ public class MultiBrick 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)
|
||||
{
|
||||
int meta = world.getBlockMetadata(x, y, z);
|
||||
if (meta == 10 || meta == 11)
|
||||
@@ -112,12 +112,12 @@ public class MultiBrick extends TConstructBlock
|
||||
}
|
||||
//TODO getCollisionBoundingBoxFromPool
|
||||
@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)
|
||||
{
|
||||
int meta = world.getBlockMetadata(x, y, z);
|
||||
if (meta == 10 || meta == 11)
|
||||
return AxisAlignedBB.getBoundingBox(x, y, z, (double) x + 1.0D, (double) y + 0.625D, (double) z + 1.0D);
|
||||
return super.func_149668_a(world, x, y, z);
|
||||
return super.getCollisionBoundingBoxFromPool(world, x, y, z);
|
||||
}
|
||||
|
||||
/*@Override
|
||||
@@ -133,7 +133,7 @@ public class MultiBrick extends TConstructBlock
|
||||
}
|
||||
|
||||
@Override
|
||||
public int func_149709_b (IBlockAccess world, int x, int y, int z, int side)
|
||||
public int isProvidingWeakPower (IBlockAccess world, int x, int y, int z, int side)
|
||||
{
|
||||
if (world.getBlockMetadata(x, y, z) == 8)
|
||||
return 4;
|
||||
@@ -142,7 +142,7 @@ public class MultiBrick extends TConstructBlock
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void func_149651_a (IIconRegister iconRegister)
|
||||
public void registerBlockIcons (IIconRegister iconRegister)
|
||||
{
|
||||
this.icons = new IIcon[textureNames.length];
|
||||
|
||||
|
||||
@@ -20,31 +20,31 @@ public class MultiBrickFancy extends TConstructBlock
|
||||
|
||||
public MultiBrickFancy()
|
||||
{
|
||||
super(Material.field_151576_e, 3f, blockTextures);
|
||||
super(Material.rock, 3f, blockTextures);
|
||||
}
|
||||
//TODO func_149712_f
|
||||
//TODO getBlockHardness
|
||||
@Override
|
||||
public float func_149712_f (World world, int x, int y, int z)
|
||||
public float getBlockHardness (World world, int x, int y, int z)
|
||||
{
|
||||
int meta = world.getBlockMetadata(x, y, z);
|
||||
switch (meta)
|
||||
{
|
||||
case 0:
|
||||
return Blocks.obsidian.func_149712_f(world, x, y, z);
|
||||
return Blocks.obsidian.getBlockHardness(world, x, y, z);
|
||||
case 1:
|
||||
return Blocks.sandstone.func_149712_f(world, x, y, z);
|
||||
return Blocks.sandstone.getBlockHardness(world, x, y, z);
|
||||
case 2:
|
||||
return Blocks.netherrack.func_149712_f(world, x, y, z);
|
||||
return Blocks.netherrack.getBlockHardness(world, x, y, z);
|
||||
case 4:
|
||||
return Blocks.iron_block.func_149712_f(world, x, y, z);
|
||||
return Blocks.iron_block.getBlockHardness(world, x, y, z);
|
||||
case 5:
|
||||
return Blocks.gold_block.func_149712_f(world, x, y, z);
|
||||
return Blocks.gold_block.getBlockHardness(world, x, y, z);
|
||||
case 6:
|
||||
return Blocks.lapis_block.func_149712_f(world, x, y, z);
|
||||
return Blocks.lapis_block.getBlockHardness(world, x, y, z);
|
||||
case 7:
|
||||
return Blocks.diamond_block.func_149712_f(world, x, y, z);
|
||||
return Blocks.diamond_block.getBlockHardness(world, x, y, z);
|
||||
case 8:
|
||||
return Blocks.redstone_block.func_149712_f(world, x, y, z);
|
||||
return Blocks.redstone_block.getBlockHardness(world, x, y, z);
|
||||
case 9:
|
||||
return 1.0F;
|
||||
case 10:
|
||||
@@ -52,15 +52,15 @@ public class MultiBrickFancy extends TConstructBlock
|
||||
case 11:
|
||||
return 1.5F;
|
||||
case 12:
|
||||
return Blocks.end_stone.func_149712_f(world, x, y, z);
|
||||
return Blocks.end_stone.getBlockHardness(world, x, y, z);
|
||||
case 13:
|
||||
return Blocks.obsidian.func_149712_f(world, x, y, z);
|
||||
return Blocks.obsidian.getBlockHardness(world, x, y, z);
|
||||
case 3:
|
||||
case 14:
|
||||
case 15:
|
||||
return Blocks.stone.func_149712_f(world, x, y, z);
|
||||
return Blocks.stone.getBlockHardness(world, x, y, z);
|
||||
default:
|
||||
return field_149782_v;
|
||||
return blockHardness;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -106,7 +106,7 @@ public class MultiBrickFancy extends TConstructBlock
|
||||
|
||||
//TODO onEntityCollidedWithBlock
|
||||
@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)
|
||||
{
|
||||
int meta = world.getBlockMetadata(x, y, z);
|
||||
if (meta == 10 || meta == 11)
|
||||
@@ -118,12 +118,12 @@ public class MultiBrickFancy 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)
|
||||
{
|
||||
int meta = world.getBlockMetadata(x, y, z);
|
||||
if (meta == 10 || meta == 11)
|
||||
return AxisAlignedBB.getBoundingBox(x, y, z, (double) x + 1.0D, (double) y + 0.625D, (double) z + 1.0D);
|
||||
return super.func_149668_a(world, x, y, z);
|
||||
return super.getCollisionBoundingBoxFromPool(world, x, y, z);
|
||||
}
|
||||
|
||||
/*@Override
|
||||
@@ -140,14 +140,14 @@ public class MultiBrickFancy extends TConstructBlock
|
||||
|
||||
//TODO canProvidePower
|
||||
@Override
|
||||
public boolean func_149744_f ()
|
||||
public boolean canProvidePower ()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
//TODO isProvindingWeakPower
|
||||
@Override
|
||||
public int func_149709_b (IBlockAccess world, int x, int y, int z, int side)
|
||||
public int isProvidingWeakPower (IBlockAccess world, int x, int y, int z, int side)
|
||||
{
|
||||
if (world.getBlockMetadata(x, y, z) == 8)
|
||||
return 4;
|
||||
@@ -156,7 +156,7 @@ public class MultiBrickFancy extends TConstructBlock
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void func_149651_a (IIconRegister iconRegister)
|
||||
public void registerBlockIcons (IIconRegister iconRegister)
|
||||
{
|
||||
this.icons = new IIcon[textureNames.length];
|
||||
|
||||
|
||||
@@ -42,23 +42,23 @@ public class OreberryBush extends BlockLeavesBase implements IPlantable
|
||||
|
||||
public OreberryBush(String[] textureNames, int meta, int sub, String[] oreTypes)
|
||||
{
|
||||
super(Material.field_151584_j, false);
|
||||
super(Material.leaves, false);
|
||||
this.textureNames = textureNames;
|
||||
this.itemMeat = meta;
|
||||
this.subitems = sub;
|
||||
this.oreTypes = oreTypes;
|
||||
this.func_149675_a(true);
|
||||
this.setTickRandomly(true);
|
||||
random = new Random();
|
||||
this.func_149711_c(0.3F);
|
||||
this.func_149672_a(field_149777_j);
|
||||
this.func_149647_a(TConstructRegistry.blockTab);
|
||||
this.setHardness(0.3F);
|
||||
this.setStepSound(soundTypeMetal);
|
||||
this.setCreativeTab(TConstructRegistry.blockTab);
|
||||
}
|
||||
|
||||
/* Berries show up at meta 12-15 */
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
@Override
|
||||
public void func_149651_a (IIconRegister iconRegister)
|
||||
public void registerBlockIcons (IIconRegister iconRegister)
|
||||
{
|
||||
this.fastIcons = new IIcon[textureNames.length];
|
||||
this.fancyIcons = new IIcon[textureNames.length];
|
||||
@@ -75,7 +75,7 @@ public class OreberryBush extends BlockLeavesBase implements IPlantable
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon func_149691_a (int side, int metadata)
|
||||
public IIcon getIcon (int side, int metadata)
|
||||
{
|
||||
if (net.minecraft.client.Minecraft.getMinecraft().gameSettings.fancyGraphics)
|
||||
{
|
||||
@@ -103,14 +103,14 @@ public class OreberryBush extends BlockLeavesBase implements IPlantable
|
||||
|
||||
/* Bushes are stored by size then type */
|
||||
@Override
|
||||
public int func_149692_a (int metadata)
|
||||
public int damageDropped (int metadata)
|
||||
{
|
||||
return metadata % 4;
|
||||
}
|
||||
|
||||
/* The following methods define a berry bush's size depending on metadata */
|
||||
@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)
|
||||
{
|
||||
int l = world.getBlockMetadata(x, y, z);
|
||||
if (l < 4)
|
||||
@@ -145,7 +145,7 @@ public class OreberryBush extends BlockLeavesBase implements IPlantable
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_149719_a (IBlockAccess iblockaccess, int x, int y, int z)
|
||||
public void setBlockBoundsBasedOnState (IBlockAccess iblockaccess, int x, int y, int z)
|
||||
{
|
||||
int md = iblockaccess.getBlockMetadata(x, y, z);
|
||||
|
||||
@@ -177,19 +177,19 @@ public class OreberryBush extends BlockLeavesBase implements IPlantable
|
||||
maxX = maxZ = 1.0F;
|
||||
maxY = 1.0F;
|
||||
}
|
||||
func_149676_a(minX, minY, minZ, maxX, maxY, maxZ);
|
||||
setBlockBounds(minX, minY, minZ, maxX, maxY, maxZ);
|
||||
}
|
||||
|
||||
/* Left-click harvests berries */
|
||||
@Override
|
||||
public void func_149699_a (World world, int x, int y, int z, EntityPlayer player)
|
||||
public void onBlockClicked (World world, int x, int y, int z, EntityPlayer player)
|
||||
{
|
||||
if (!world.isRemote)
|
||||
{
|
||||
int meta = world.getBlockMetadata(x, y, z);
|
||||
if (meta >= 12)
|
||||
{
|
||||
world.func_147465_d(x, y, z, this, meta - 4, 3);
|
||||
world.setBlock(x, y, z, this, meta - 4, 3);
|
||||
AbilityHelper.spawnItemAtPlayer(player, new ItemStack(TRepo.oreBerries, 1, meta % 4 + itemMeat));
|
||||
}
|
||||
}
|
||||
@@ -197,7 +197,7 @@ public class OreberryBush extends BlockLeavesBase implements IPlantable
|
||||
|
||||
/* Right-click harvests berries */
|
||||
@Override
|
||||
public boolean func_149727_a (World world, int x, int y, int z, EntityPlayer player, int par6, float par7, float par8, float par9)
|
||||
public boolean onBlockActivated (World world, int x, int y, int z, EntityPlayer player, int par6, float par7, float par8, float par9)
|
||||
{
|
||||
/*if (world.isRemote)
|
||||
return false;*/
|
||||
@@ -208,7 +208,7 @@ public class OreberryBush extends BlockLeavesBase implements IPlantable
|
||||
if (world.isRemote)
|
||||
return true;
|
||||
|
||||
world.func_147465_d(x, y, z, this, meta - 4, 3);
|
||||
world.setBlock(x, y, z, this, meta - 4, 3);
|
||||
AbilityHelper.spawnItemAtPlayer(player, new ItemStack(TRepo.oreBerries, random.nextInt(3) + 1, meta % 4 + itemMeat));
|
||||
return true;
|
||||
}
|
||||
@@ -219,13 +219,13 @@ public class OreberryBush extends BlockLeavesBase implements IPlantable
|
||||
/* Render logic */
|
||||
|
||||
@Override
|
||||
public boolean func_149662_c ()
|
||||
public boolean isOpaqueCube ()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_149686_d ()
|
||||
public boolean renderAsNormalBlock ()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -236,11 +236,11 @@ public class OreberryBush extends BlockLeavesBase implements IPlantable
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public boolean func_149646_a (IBlockAccess iblockaccess, int x, int y, int z, int meta)
|
||||
public boolean shouldSideBeRendered (IBlockAccess iblockaccess, int x, int y, int z, int meta)
|
||||
{
|
||||
if (meta > 7 || net.minecraft.client.Minecraft.getMinecraft().gameSettings.fancyGraphics)
|
||||
{
|
||||
return super.func_149646_a(iblockaccess, x, y, z, meta);
|
||||
return super.shouldSideBeRendered(iblockaccess, x, y, z, meta);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -251,7 +251,7 @@ public class OreberryBush extends BlockLeavesBase implements IPlantable
|
||||
/* Bush growth */
|
||||
|
||||
@Override
|
||||
public void func_149674_a (World world, int x, int y, int z, Random random1)
|
||||
public void updateTick (World world, int x, int y, int z, Random random1)
|
||||
{
|
||||
if (world.isRemote)
|
||||
{
|
||||
@@ -265,12 +265,12 @@ public class OreberryBush extends BlockLeavesBase implements IPlantable
|
||||
int meta = world.getBlockMetadata(x, y, z);
|
||||
if (meta < 12)
|
||||
{
|
||||
world.func_147465_d(x, y, z, this, meta + 4, 3);
|
||||
world.setBlock(x, y, z, this, meta + 4, 3);
|
||||
}
|
||||
}
|
||||
/*else if (meta < 8)
|
||||
{
|
||||
world.func_147465_d(x, y, z, blockID, meta + 4, 3);
|
||||
world.setBlock(x, y, z, blockID, meta + 4, 3);
|
||||
}*/
|
||||
}
|
||||
}
|
||||
@@ -285,7 +285,7 @@ public class OreberryBush extends BlockLeavesBase implements IPlantable
|
||||
public boolean canPlaceBlockAt (World world, int x, int y, int z)
|
||||
{
|
||||
if (world.getFullBlockLightValue(x, y, z) < 13)
|
||||
return super.func_149742_c(world, x, y, z);
|
||||
return super.canPlaceBlockAt(world, x, y, z);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -294,7 +294,7 @@ public class OreberryBush extends BlockLeavesBase implements IPlantable
|
||||
*/
|
||||
@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 var4 = 8; var4 < 8 + subitems; ++var4)
|
||||
{
|
||||
@@ -315,7 +315,7 @@ public class OreberryBush extends BlockLeavesBase implements IPlantable
|
||||
}
|
||||
|
||||
@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 instanceof EntityItem))
|
||||
entity.attackEntityFrom(DamageSource.cactus, 1);
|
||||
@@ -328,7 +328,7 @@ public class OreberryBush extends BlockLeavesBase implements IPlantable
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void func_150122_b(boolean p_150122_1_)
|
||||
public void setGraphicsLevel(boolean p_150122_1_)
|
||||
{
|
||||
this.field_150121_P = p_150122_1_;
|
||||
this.field_150127_b = (p_150122_1_ ? 0 : 1);
|
||||
|
||||
@@ -16,7 +16,7 @@ public class OreberryBushEssence extends OreberryBush implements IPlantable
|
||||
/* Bush growth */
|
||||
|
||||
@Override
|
||||
public void func_149674_a (World world, int x, int y, int z, Random random1)
|
||||
public void updateTick (World world, int x, int y, int z, Random random1)
|
||||
{
|
||||
if (world.isRemote)
|
||||
{
|
||||
@@ -30,12 +30,12 @@ public class OreberryBushEssence extends OreberryBush implements IPlantable
|
||||
{
|
||||
if (meta < 12)
|
||||
{
|
||||
world.func_147465_d(x, y, z,(Block) this, meta + 4, 3);
|
||||
world.setBlock(x, y, z,(Block) this, meta + 4, 3);
|
||||
}
|
||||
}
|
||||
/*else if (meta < 8)
|
||||
{
|
||||
world.func_147465_d(x, y, z, blockID, meta + 4, 3);
|
||||
world.setBlock(x, y, z, blockID, meta + 4, 3);
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,14 +34,14 @@ public class PaneBase extends Block
|
||||
this.folder = folder;
|
||||
}
|
||||
|
||||
public final boolean func_150098_a(Block p_150098_1_)
|
||||
public final boolean canPaneConnectToBlock(Block p_150098_1_)
|
||||
{
|
||||
return p_150098_1_.func_149730_j() || p_150098_1_ == this || p_150098_1_ == Blocks.glass || p_150098_1_ == Blocks.stained_glass || p_150098_1_ == Blocks.stained_glass_pane || p_150098_1_ instanceof BlockPane;
|
||||
}
|
||||
|
||||
public boolean canConnectTo(IBlockAccess world, int x, int y, int z, ForgeDirection dir)
|
||||
{
|
||||
return func_150098_a(world.func_147439_a(x, y, z)) || world.isSideSolid(x, y, z, dir.getOpposite(), false);
|
||||
return canPaneConnectToBlock(world.getBlock(x, y, z)) || world.isSideSolid(x, y, z, dir.getOpposite(), false);
|
||||
}
|
||||
|
||||
public IIcon getSideTextureIndex (int meta)
|
||||
@@ -51,7 +51,7 @@ public class PaneBase extends Block
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void func_149651_a (IIconRegister iconRegister)
|
||||
public void registerBlockIcons (IIconRegister iconRegister)
|
||||
{
|
||||
this.icons = new IIcon[textureNames.length];
|
||||
this.sideIcons = new IIcon[textureNames.length];
|
||||
@@ -65,13 +65,13 @@ public class PaneBase extends Block
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon func_149691_a (int side, int meta)
|
||||
public IIcon getIcon (int side, int meta)
|
||||
{
|
||||
return icons[meta];
|
||||
}
|
||||
|
||||
@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 < textureNames.length; iter++)
|
||||
{
|
||||
@@ -94,21 +94,21 @@ public class PaneBase extends Block
|
||||
return PaneRender.model;
|
||||
}
|
||||
|
||||
public boolean func_149646_a (IBlockAccess iblockaccess, int i, int j, int k, int l)
|
||||
public boolean shouldSideBeRendered (IBlockAccess iblockaccess, int i, int j, int k, int l)
|
||||
{
|
||||
Block b = iblockaccess.func_147439_a(i, j, k);
|
||||
Block b = iblockaccess.getBlock(i, j, k);
|
||||
if (b instanceof PaneBase || b instanceof BlockPane)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
return super. func_149646_a(iblockaccess, i, j, k, l);
|
||||
return super. shouldSideBeRendered(iblockaccess, i, j, k, l);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_149743_a (World world, int x, int y, int z, AxisAlignedBB axisalignedbb, List arraylist, Entity entity)
|
||||
public void addCollisionBoxesToList (World world, int x, int y, int z, AxisAlignedBB axisalignedbb, List arraylist, Entity entity)
|
||||
{
|
||||
boolean south = canConnectTo(world, x, y, z - 1, ForgeDirection.NORTH);
|
||||
boolean north = canConnectTo(world, x, y, z + 1, ForgeDirection.SOUTH);
|
||||
@@ -116,39 +116,39 @@ public class PaneBase extends Block
|
||||
boolean west = canConnectTo(world, x + 1, y, z, ForgeDirection.WEST);
|
||||
if (east && west || !east && !west && !south && !north)
|
||||
{
|
||||
func_149676_a(0.0F, 0.0F, 0.4375F, 1.0F, 1.0F, 0.5625F);
|
||||
super.func_149743_a(world, x, y, z, axisalignedbb, arraylist, entity);
|
||||
setBlockBounds(0.0F, 0.0F, 0.4375F, 1.0F, 1.0F, 0.5625F);
|
||||
super.addCollisionBoxesToList(world, x, y, z, axisalignedbb, arraylist, entity);
|
||||
}
|
||||
else if (east && !west)
|
||||
{
|
||||
func_149676_a(0.0F, 0.0F, 0.4375F, 0.5F, 1.0F, 0.5625F);
|
||||
super.func_149743_a(world, x, y, z, axisalignedbb, arraylist, entity);
|
||||
setBlockBounds(0.0F, 0.0F, 0.4375F, 0.5F, 1.0F, 0.5625F);
|
||||
super.addCollisionBoxesToList(world, x, y, z, axisalignedbb, arraylist, entity);
|
||||
}
|
||||
else if (!east && west)
|
||||
{
|
||||
func_149676_a(0.5F, 0.0F, 0.4375F, 1.0F, 1.0F, 0.5625F);
|
||||
super.func_149743_a(world, x, y, z, axisalignedbb, arraylist, entity);
|
||||
setBlockBounds(0.5F, 0.0F, 0.4375F, 1.0F, 1.0F, 0.5625F);
|
||||
super.addCollisionBoxesToList(world, x, y, z, axisalignedbb, arraylist, entity);
|
||||
}
|
||||
if (south && north || !east && !west && !south && !north)
|
||||
{
|
||||
func_149676_a(0.4375F, 0.0F, 0.0F, 0.5625F, 1.0F, 1.0F);
|
||||
super.func_149743_a(world, x, y, z, axisalignedbb, arraylist, entity);
|
||||
setBlockBounds(0.4375F, 0.0F, 0.0F, 0.5625F, 1.0F, 1.0F);
|
||||
super.addCollisionBoxesToList(world, x, y, z, axisalignedbb, arraylist, entity);
|
||||
}
|
||||
else if (south && !north)
|
||||
{
|
||||
func_149676_a(0.4375F, 0.0F, 0.0F, 0.5625F, 1.0F, 0.5F);
|
||||
super.func_149743_a(world, x, y, z, axisalignedbb, arraylist, entity);
|
||||
setBlockBounds(0.4375F, 0.0F, 0.0F, 0.5625F, 1.0F, 0.5F);
|
||||
super.addCollisionBoxesToList(world, x, y, z, axisalignedbb, arraylist, entity);
|
||||
}
|
||||
else if (!south && north)
|
||||
{
|
||||
func_149676_a(0.4375F, 0.0F, 0.5F, 0.5625F, 1.0F, 1.0F);
|
||||
super.func_149743_a(world, x, y, z, axisalignedbb, arraylist, entity);
|
||||
setBlockBounds(0.4375F, 0.0F, 0.5F, 0.5625F, 1.0F, 1.0F);
|
||||
super.addCollisionBoxesToList(world, x, y, z, axisalignedbb, arraylist, entity);
|
||||
}
|
||||
}
|
||||
|
||||
public void setBlockBoundsForItemRender ()
|
||||
{
|
||||
func_149676_a(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
|
||||
setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
|
||||
}
|
||||
|
||||
public void setBlockBoundsBasedOnState (IBlockAccess iblockaccess, int i, int j, int k)
|
||||
@@ -187,7 +187,7 @@ public class PaneBase extends Block
|
||||
{
|
||||
f3 = 1.0F;
|
||||
}
|
||||
func_149676_a(f, 0.0F, f2, f1, 1.0F, f3);
|
||||
setBlockBounds(f, 0.0F, f2, f1, 1.0F, f3);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -30,11 +30,11 @@ public class SearedBlock extends InventoryBlock
|
||||
|
||||
public SearedBlock()
|
||||
{
|
||||
super(Material.field_151576_e);
|
||||
this.func_149647_a(TConstructRegistry.blockTab);
|
||||
func_149711_c(3F);
|
||||
func_149752_b(20F);
|
||||
func_149672_a(field_149777_j);
|
||||
super(Material.rock);
|
||||
this.setCreativeTab(TConstructRegistry.blockTab);
|
||||
setHardness(3F);
|
||||
setResistance(20F);
|
||||
setStepSound(soundTypeMetal);
|
||||
}
|
||||
|
||||
public SearedBlock(String texture)
|
||||
@@ -61,7 +61,7 @@ public class SearedBlock extends InventoryBlock
|
||||
}
|
||||
|
||||
@Override
|
||||
public int func_149701_w ()
|
||||
public int getRenderBlockPass ()
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
@@ -80,7 +80,7 @@ public class SearedBlock extends InventoryBlock
|
||||
|
||||
/* Activation */
|
||||
@Override
|
||||
public boolean func_149727_a (World world, int x, int y, int z, EntityPlayer player, int side, float clickX, float clickY, float clickZ)
|
||||
public boolean onBlockActivated (World world, int x, int y, int z, EntityPlayer player, int side, float clickX, float clickY, float clickZ)
|
||||
{
|
||||
int md = world.getBlockMetadata(x, y, z);
|
||||
if (md == 0)
|
||||
@@ -96,19 +96,19 @@ public class SearedBlock extends InventoryBlock
|
||||
if (player.isSneaking())
|
||||
return false;
|
||||
|
||||
FaucetLogic logic = (FaucetLogic) world.func_147438_o(x, y, z);
|
||||
FaucetLogic logic = (FaucetLogic) world.getTileEntity(x, y, z);
|
||||
logic.setActive(true);
|
||||
return true;
|
||||
}
|
||||
else
|
||||
return super.func_149727_a(world, x, y, z, player, side, clickX, clickY, clickZ);
|
||||
return super.onBlockActivated(world, x, y, z, player, side, clickX, clickY, clickZ);
|
||||
}
|
||||
|
||||
boolean activateCastingTable (World world, int x, int y, int z, EntityPlayer player)
|
||||
{
|
||||
if (!world.isRemote)
|
||||
{
|
||||
CastingTableLogic logic = (CastingTableLogic) world.func_147438_o(x, y, z);
|
||||
CastingTableLogic logic = (CastingTableLogic) world.getTileEntity(x, y, z);
|
||||
if (logic.liquid != null)
|
||||
return true;
|
||||
|
||||
@@ -137,7 +137,7 @@ public class SearedBlock extends InventoryBlock
|
||||
}
|
||||
}
|
||||
|
||||
world.func_147471_g(x, y, z);
|
||||
world.markBlockForUpdate(x, y, z);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@@ -146,7 +146,7 @@ public class SearedBlock extends InventoryBlock
|
||||
{
|
||||
if (!world.isRemote)
|
||||
{
|
||||
CastingBasinLogic logic = (CastingBasinLogic) world.func_147438_o(x, y, z);
|
||||
CastingBasinLogic logic = (CastingBasinLogic) world.getTileEntity(x, y, z);
|
||||
if (logic.liquid != null)
|
||||
return true;
|
||||
|
||||
@@ -175,7 +175,7 @@ public class SearedBlock extends InventoryBlock
|
||||
}
|
||||
}
|
||||
|
||||
world.func_147471_g(x, y, z);
|
||||
world.markBlockForUpdate(x, y, z);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@@ -193,7 +193,7 @@ public class SearedBlock extends InventoryBlock
|
||||
|
||||
/* Rendering */
|
||||
@Override
|
||||
public int func_149645_b ()
|
||||
public int getRenderType ()
|
||||
{
|
||||
return SearedRender.searedModel;
|
||||
}
|
||||
@@ -212,10 +212,10 @@ public class SearedBlock extends InventoryBlock
|
||||
return textureNames;
|
||||
}
|
||||
|
||||
//TODO func_149691_a
|
||||
//TODO getIcon
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon func_149691_a (int side, int meta)
|
||||
public IIcon getIcon (int side, int meta)
|
||||
{
|
||||
if (meta == 0)
|
||||
return icons[getTextureIndex(side)];
|
||||
@@ -236,25 +236,25 @@ public class SearedBlock extends InventoryBlock
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_149686_d ()
|
||||
public boolean renderAsNormalBlock ()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_149662_c ()
|
||||
public boolean isOpaqueCube ()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_149646_a (IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
|
||||
public boolean shouldSideBeRendered (IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@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 < 3; iter++)
|
||||
{
|
||||
@@ -263,16 +263,16 @@ public class SearedBlock extends InventoryBlock
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_149719_a (IBlockAccess world, int x, int y, int z)
|
||||
public void setBlockBoundsBasedOnState (IBlockAccess world, int x, int y, int z)
|
||||
{
|
||||
int meta = world.getBlockMetadata(x, y, z);
|
||||
if (meta != 1)
|
||||
{
|
||||
this.func_149676_a(0, 0, 0, 1, 1, 1);
|
||||
this.setBlockBounds(0, 0, 0, 1, 1, 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
FaucetLogic logic = (FaucetLogic) world.func_147438_o(x, y, z);
|
||||
FaucetLogic logic = (FaucetLogic) world.getTileEntity(x, y, z);
|
||||
float xMin = 0.25F;
|
||||
float xMax = 0.75F;
|
||||
float zMin = 0.25F;
|
||||
@@ -298,12 +298,12 @@ public class SearedBlock extends InventoryBlock
|
||||
break;
|
||||
}
|
||||
|
||||
this.func_149676_a(xMin, 0.25F, zMin, xMax, 0.625F, zMax);
|
||||
this.setBlockBounds(xMin, 0.25F, zMin, xMax, 0.625F, zMax);
|
||||
}
|
||||
}
|
||||
|
||||
@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)
|
||||
{
|
||||
int meta = world.getBlockMetadata(x, y, z);
|
||||
if (meta != 1)
|
||||
@@ -312,7 +312,7 @@ public class SearedBlock extends InventoryBlock
|
||||
}
|
||||
else
|
||||
{
|
||||
FaucetLogic logic = (FaucetLogic) world.func_147438_o(x, y, z);
|
||||
FaucetLogic logic = (FaucetLogic) world.getTileEntity(x, y, z);
|
||||
if (logic != null)
|
||||
{
|
||||
float xMin = 0.25F;
|
||||
@@ -345,7 +345,7 @@ public class SearedBlock extends InventoryBlock
|
||||
}
|
||||
}
|
||||
|
||||
return super.func_149668_a(world, x, y, z);
|
||||
return super.getCollisionBoundingBoxFromPool(world, x, y, z);
|
||||
}
|
||||
|
||||
/* Redstone */
|
||||
@@ -358,13 +358,13 @@ public class SearedBlock extends InventoryBlock
|
||||
{
|
||||
if (world.isBlockIndirectlyGettingPowered(x, y, z) && world.getBlockMetadata(x, y, z) == 1)
|
||||
{
|
||||
FaucetLogic logic = (FaucetLogic) world.func_147438_o(x, y, z);
|
||||
FaucetLogic logic = (FaucetLogic) world.getTileEntity(x, y, z);
|
||||
logic.setActive(true);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public TileEntity func_149915_a (World var1, int metadata)
|
||||
public TileEntity createNewTileEntity (World var1, int metadata)
|
||||
{
|
||||
switch (metadata)
|
||||
{
|
||||
|
||||
@@ -18,32 +18,32 @@ public class SearedSlab extends SlabBase
|
||||
public SearedSlab()
|
||||
{
|
||||
//TODO material.rock
|
||||
super(Material.field_151576_e);
|
||||
this.func_149647_a(TConstructRegistry.blockTab);
|
||||
func_149711_c(12F);
|
||||
super(Material.rock);
|
||||
this.setCreativeTab(TConstructRegistry.blockTab);
|
||||
setHardness(12F);
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void func_149651_a (IIconRegister iconRegister)
|
||||
public void registerBlockIcons (IIconRegister iconRegister)
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon func_149691_a (int side, int meta)
|
||||
public IIcon getIcon (int side, int meta)
|
||||
{
|
||||
meta = meta % 8;
|
||||
if (meta == 0)
|
||||
return TRepo.smeltery.func_149691_a(side, 2);
|
||||
return TRepo.smeltery.getIcon(side, 2);
|
||||
if (meta <= 3)
|
||||
return TRepo.smeltery.func_149691_a(side, meta + 3);
|
||||
return TRepo.smeltery.getIcon(side, meta + 3);
|
||||
|
||||
return TRepo.smeltery.func_149691_a(side, meta + 4);
|
||||
return TRepo.smeltery.getIcon(side, meta + 4);
|
||||
}
|
||||
|
||||
@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 < 8; iter++)
|
||||
{
|
||||
|
||||
@@ -27,28 +27,28 @@ public class SlabBase extends MantleBlock
|
||||
public SlabBase(Material material)
|
||||
{
|
||||
super(material);
|
||||
this.func_149647_a(TConstructRegistry.blockTab);
|
||||
this.setCreativeTab(TConstructRegistry.blockTab);
|
||||
}
|
||||
|
||||
public SlabBase(Material material, Block model, int meta, int totalSize)
|
||||
{
|
||||
super(material);
|
||||
this.func_149647_a(TConstructRegistry.blockTab);
|
||||
this.setCreativeTab(TConstructRegistry.blockTab);
|
||||
this.modelBlock = model;
|
||||
this.startingMeta = meta;
|
||||
this.totalSize = totalSize;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_149743_a (World world, int x, int y, int z, AxisAlignedBB axisalignedbb, List arraylist, Entity entity)
|
||||
public void addCollisionBoxesToList (World world, int x, int y, int z, AxisAlignedBB axisalignedbb, List arraylist, Entity entity)
|
||||
{
|
||||
setBlockBoundsBasedOnState(world, x, y, z);
|
||||
super.func_149743_a(world, x, y, z, axisalignedbb, arraylist, entity);
|
||||
super.addCollisionBoxesToList(world, x, y, z, axisalignedbb, arraylist, entity);
|
||||
}
|
||||
|
||||
public void setBlockBoundsForItemRender ()
|
||||
{
|
||||
func_149676_a(0.0F, 0.0F, 0.0F, 1.0F, 0.5F, 1.0F);
|
||||
setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.5F, 1.0F);
|
||||
}
|
||||
|
||||
public void setBlockBoundsBasedOnState (IBlockAccess world, int x, int y, int z)
|
||||
@@ -56,7 +56,7 @@ public class SlabBase extends MantleBlock
|
||||
int meta = world.getBlockMetadata(x, y, z) / 8;
|
||||
float minY = meta == 1 ? 0.5F : 0.0F;
|
||||
float maxY = meta == 1 ? 1.0F : 0.5F;
|
||||
func_149676_a(0.0F, minY, 0F, 1.0F, maxY, 1.0F);
|
||||
setBlockBounds(0.0F, minY, 0F, 1.0F, maxY, 1.0F);
|
||||
}
|
||||
|
||||
public int onBlockPlaced (World par1World, int blockX, int blockY, int blockZ, int side, float clickX, float clickY, float clickZ, int metadata)
|
||||
@@ -81,20 +81,20 @@ public class SlabBase extends MantleBlock
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void func_149651_a (IIconRegister iconRegister)
|
||||
public void registerBlockIcons (IIconRegister iconRegister)
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon func_149691_a (int side, int meta)
|
||||
public IIcon getIcon (int side, int meta)
|
||||
{
|
||||
meta = meta % 8 + startingMeta;
|
||||
return modelBlock.func_149691_a(side, meta);
|
||||
return modelBlock.getIcon(side, meta);
|
||||
}
|
||||
|
||||
@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 < totalSize; iter++)
|
||||
{
|
||||
|
||||
@@ -25,7 +25,7 @@ public class SlimeExplosive extends TConstructBlock
|
||||
|
||||
public SlimeExplosive()
|
||||
{
|
||||
super(Material.field_151590_u, 0f, getTextureNames());
|
||||
super(Material.tnt, 0f, getTextureNames());
|
||||
}
|
||||
|
||||
static String[] getTextureNames ()
|
||||
@@ -43,13 +43,13 @@ public class SlimeExplosive extends TConstructBlock
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon func_149691_a (int side, int meta)
|
||||
public IIcon getIcon (int side, int meta)
|
||||
{
|
||||
return icons[(meta / 2) * 3 + getSideTextureIndex(side)];
|
||||
}
|
||||
|
||||
@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 < 2; iter++)
|
||||
{
|
||||
@@ -58,29 +58,29 @@ public class SlimeExplosive extends TConstructBlock
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_149726_b (World par1World, int par2, int par3, int par4)
|
||||
public void onBlockAdded (World par1World, int par2, int par3, int par4)
|
||||
{
|
||||
super.func_149726_b(par1World, par2, par3, par4);
|
||||
super.onBlockAdded(par1World, par2, par3, par4);
|
||||
|
||||
if (par1World.isBlockIndirectlyGettingPowered(par2, par3, par4))
|
||||
{
|
||||
this.func_149664_b(par1World, par2, par3, par4, 1);
|
||||
this.onBlockDestroyedByPlayer(par1World, par2, par3, par4, 1);
|
||||
WorldHelper.setBlockToAir(par1World, par2, par3, par4);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_149695_a (World par1World, int par2, int par3, int par4, Block par5Block)
|
||||
public void onNeighborBlockChange (World par1World, int par2, int par3, int par4, Block par5Block)
|
||||
{
|
||||
if (par1World.isBlockIndirectlyGettingPowered(par2, par3, par4))
|
||||
{
|
||||
this.func_149664_b(par1World, par2, par3, par4, 1);
|
||||
this.onBlockDestroyedByPlayer(par1World, par2, par3, par4, 1);
|
||||
WorldHelper.setBlockToAir(par1World, par2, par3, par4);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_149723_a (World par1World, int par2, int par3, int par4, Explosion par5Explosion)
|
||||
public void onBlockDestroyedByExplosion (World par1World, int par2, int par3, int par4, Explosion par5Explosion)
|
||||
{
|
||||
if (!par1World.isRemote)
|
||||
{
|
||||
@@ -92,7 +92,7 @@ public class SlimeExplosive extends TConstructBlock
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_149664_b (World par1World, int par2, int par3, int par4, int par5)
|
||||
public void onBlockDestroyedByPlayer (World par1World, int par2, int par3, int par4, int par5)
|
||||
{
|
||||
this.primeTnt(par1World, par2, par3, par4, par5, (EntityLivingBase) null);
|
||||
}
|
||||
@@ -111,7 +111,7 @@ public class SlimeExplosive extends TConstructBlock
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_149727_a (World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer, int par6, float par7, float par8, float par9)
|
||||
public boolean onBlockActivated (World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer, int par6, float par7, float par8, float par9)
|
||||
{
|
||||
if (par5EntityPlayer.getCurrentEquippedItem() != null && par5EntityPlayer.getCurrentEquippedItem().getItem() == Items.flint_and_steel)
|
||||
{
|
||||
@@ -122,12 +122,12 @@ public class SlimeExplosive extends TConstructBlock
|
||||
}
|
||||
else
|
||||
{
|
||||
return super.func_149727_a(par1World, par2, par3, par4, par5EntityPlayer, par6, par7, par8, par9);
|
||||
return super.onBlockActivated(par1World, par2, par3, par4, par5EntityPlayer, par6, par7, par8, par9);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_149670_a (World par1World, int par2, int par3, int par4, Entity par5Entity)
|
||||
public void onEntityCollidedWithBlock (World par1World, int par2, int par3, int par4, Entity par5Entity)
|
||||
{
|
||||
if (par5Entity instanceof EntityArrow && !par1World.isRemote)
|
||||
{
|
||||
@@ -142,7 +142,7 @@ public class SlimeExplosive extends TConstructBlock
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_149659_a (Explosion par1Explosion)
|
||||
public boolean canDropFromExplosion (Explosion par1Explosion)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -25,18 +25,18 @@ public class SlimePad extends MantleBlock
|
||||
public SlimePad(Material par2Material)
|
||||
{
|
||||
super(par2Material);
|
||||
func_149676_a(0.125F, 0.0F, 0.125F, 0.875F, 0.625F, 0.875F);
|
||||
this.func_149647_a(TConstructRegistry.blockTab);
|
||||
setBlockBounds(0.125F, 0.0F, 0.125F, 0.875F, 0.625F, 0.875F);
|
||||
this.setCreativeTab(TConstructRegistry.blockTab);
|
||||
}
|
||||
|
||||
@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 null;
|
||||
}
|
||||
|
||||
@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 (!world.isBlockIndirectlyGettingPowered(x, y, z))
|
||||
{
|
||||
@@ -83,7 +83,7 @@ public class SlimePad extends MantleBlock
|
||||
entity.posY += 1;
|
||||
}
|
||||
entity.addVelocity(moveX, speed * 2, moveZ);
|
||||
world.playSoundEffect(x + 0.5F, y + 0.5F, z + 0.5F, this.field_149762_H.func_150498_e(), (this.field_149762_H.func_150497_c()) / 2.0F, this.field_149762_H.func_150494_d() * 0.65F);
|
||||
world.playSoundEffect(x + 0.5F, y + 0.5F, z + 0.5F, this.stepSound.getStepResourcePath(), (this.stepSound.getVolume()) / 2.0F, this.stepSound.getPitch() * 0.65F);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -93,7 +93,7 @@ public class SlimePad extends MantleBlock
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_149689_a (World world, int x, int y, int z, EntityLivingBase entity, ItemStack stack)
|
||||
public void onBlockPlacedBy (World world, int x, int y, int z, EntityLivingBase entity, ItemStack stack)
|
||||
{
|
||||
int face = MathHelper.floor_double((double) (entity.rotationYaw * 8.0F / 360.0F) + 0.5D) + (entity.isSneaking() ? 4 : 0) & 7;
|
||||
int meta = world.getBlockMetadata(x, y, z) & 8;
|
||||
@@ -101,50 +101,50 @@ public class SlimePad extends MantleBlock
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_149686_d ()
|
||||
public boolean renderAsNormalBlock ()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_149662_c ()
|
||||
public boolean isOpaqueCube ()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int func_149701_w ()
|
||||
public int getRenderBlockPass ()
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int func_149645_b ()
|
||||
public int getRenderType ()
|
||||
{
|
||||
return SlimePadRender.model;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_149651_a (IIconRegister iconRegister)
|
||||
public void registerBlockIcons (IIconRegister iconRegister)
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon func_149691_a (int side, int meta)
|
||||
public IIcon getIcon (int side, int meta)
|
||||
{
|
||||
return TRepo.slimeGel.func_149691_a(side, 1);
|
||||
return TRepo.slimeGel.getIcon(side, 1);
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon getFluidIcon (int meta)
|
||||
{
|
||||
return TRepo.slimeChannel.func_149691_a(2, 0);
|
||||
return TRepo.slimeChannel.getIcon(2, 0);
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon getNubIcon (int meta)
|
||||
{
|
||||
return TRepo.slimeGel.func_149691_a(0, 0);
|
||||
return TRepo.slimeGel.getIcon(0, 0);
|
||||
}
|
||||
}
|
||||
@@ -35,13 +35,13 @@ public class SmelteryBlock extends InventoryBlock
|
||||
|
||||
public SmelteryBlock()
|
||||
{
|
||||
super(Material.field_151576_e);
|
||||
func_149711_c(3F);
|
||||
func_149752_b(20F);
|
||||
func_149672_a(field_149777_j);
|
||||
super(Material.rock);
|
||||
setHardness(3F);
|
||||
setResistance(20F);
|
||||
setStepSound(soundTypeMetal);
|
||||
rand = new Random();
|
||||
this.func_149647_a(TConstructRegistry.blockTab);
|
||||
this.func_149663_c("tconstruct.Smeltery");
|
||||
this.setCreativeTab(TConstructRegistry.blockTab);
|
||||
this.setBlockName("tconstruct.Smeltery");
|
||||
}
|
||||
|
||||
public SmelteryBlock(String prefix)
|
||||
@@ -52,7 +52,7 @@ public class SmelteryBlock extends InventoryBlock
|
||||
|
||||
/* Rendering */
|
||||
@Override
|
||||
public int func_149645_b ()
|
||||
public int getRenderType ()
|
||||
{
|
||||
return PHConstruct.newSmeltery ? 0 : SmelteryRender.smelteryModel;
|
||||
}
|
||||
@@ -70,7 +70,7 @@ public class SmelteryBlock extends InventoryBlock
|
||||
return textureNames;
|
||||
}
|
||||
|
||||
public IIcon func_149691_a (int side, int meta)
|
||||
public IIcon getIcon (int side, int meta)
|
||||
{
|
||||
if (meta < 2)
|
||||
{
|
||||
@@ -90,9 +90,9 @@ public class SmelteryBlock extends InventoryBlock
|
||||
return icons[3 + meta];
|
||||
}
|
||||
|
||||
public IIcon func_149673_e (IBlockAccess world, int x, int y, int z, int side)
|
||||
public IIcon getIcon (IBlockAccess world, int x, int y, int z, int side)
|
||||
{
|
||||
TileEntity logic = world.func_147438_o(x, y, z);
|
||||
TileEntity logic = world.getTileEntity(x, y, z);
|
||||
short direction = (logic instanceof IFacingLogic) ? ((IFacingLogic) logic).getRenderDirection() : 0;
|
||||
int meta = world.getBlockMetadata(x, y, z);
|
||||
if (meta == 0) //Smeltery
|
||||
@@ -162,7 +162,7 @@ public class SmelteryBlock extends InventoryBlock
|
||||
{
|
||||
if (isActive(world, x, y, z))
|
||||
{
|
||||
TileEntity logic = world.func_147438_o(x, y, z);
|
||||
TileEntity logic = world.getTileEntity(x, y, z);
|
||||
byte face = 0;
|
||||
if (logic instanceof IFacingLogic)
|
||||
face = ((IFacingLogic) logic).getRenderDirection();
|
||||
@@ -208,7 +208,7 @@ public class SmelteryBlock extends InventoryBlock
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_149727_a (World world, int x, int y, int z, EntityPlayer player, int side, float clickX, float clickY, float clickZ)
|
||||
public boolean onBlockActivated (World world, int x, int y, int z, EntityPlayer player, int side, float clickX, float clickY, float clickZ)
|
||||
{
|
||||
if (player.isSneaking() || world.getBlockMetadata(x, y, z) != 0)
|
||||
return false;
|
||||
@@ -220,14 +220,14 @@ public class SmelteryBlock extends InventoryBlock
|
||||
}
|
||||
else
|
||||
{
|
||||
//world.func_147471_g(x, y, z);
|
||||
//world.markBlockForUpdate(x, y, z);
|
||||
player.openGui(getModInstance(), integer, world, x, y, z);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public TileEntity func_149915_a (World world, int metadata)
|
||||
public TileEntity createNewTileEntity (World world, int metadata)
|
||||
{
|
||||
switch (metadata)
|
||||
{
|
||||
@@ -249,16 +249,16 @@ public class SmelteryBlock extends InventoryBlock
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_149689_a (World world, int x, int y, int z, EntityLivingBase entityliving, ItemStack stack)
|
||||
public void onBlockPlacedBy (World world, int x, int y, int z, EntityLivingBase entityliving, ItemStack stack)
|
||||
{
|
||||
super.func_149689_a(world, x, y, z, entityliving, stack);
|
||||
super.onBlockPlacedBy(world, x, y, z, entityliving, stack);
|
||||
if (world.getBlockMetadata(x, y, z) == 0 && !PHConstruct.newSmeltery)
|
||||
onBlockPlacedElsewhere(world, x, y, z, entityliving);
|
||||
}
|
||||
|
||||
public void onBlockPlacedElsewhere (World world, int x, int y, int z, EntityLivingBase entityliving)
|
||||
{
|
||||
SmelteryLogic logic = (SmelteryLogic) world.func_147438_o(x, y, z);
|
||||
SmelteryLogic logic = (SmelteryLogic) world.getTileEntity(x, y, z);
|
||||
logic.checkValidPlacement();
|
||||
}
|
||||
|
||||
@@ -269,7 +269,7 @@ public class SmelteryBlock extends InventoryBlock
|
||||
}*/
|
||||
|
||||
@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 < 12; iter++)
|
||||
{
|
||||
@@ -280,10 +280,10 @@ public class SmelteryBlock extends InventoryBlock
|
||||
|
||||
/* Updating */
|
||||
@Override
|
||||
public void func_149695_a (World world, int x, int y, int z, Block block)
|
||||
public void onNeighborBlockChange (World world, int x, int y, int z, Block block)
|
||||
{
|
||||
//System.out.println("Neighbor changed");
|
||||
TileEntity logic = world.func_147438_o(x, y, z);
|
||||
TileEntity logic = world.getTileEntity(x, y, z);
|
||||
if (logic instanceof IServantLogic)
|
||||
{
|
||||
((IServantLogic) logic).notifyMasterOfChange();
|
||||
@@ -295,14 +295,14 @@ public class SmelteryBlock extends InventoryBlock
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_149749_a (World world, int x, int y, int z, Block block, int meta)
|
||||
public void breakBlock (World world, int x, int y, int z, Block block, int meta)
|
||||
{
|
||||
TileEntity logic = world.func_147438_o(x, y, z);
|
||||
TileEntity logic = world.getTileEntity(x, y, z);
|
||||
if (logic instanceof IServantLogic)
|
||||
{
|
||||
((IServantLogic) logic).notifyMasterOfChange();
|
||||
}
|
||||
super.func_149749_a(world, x, y, z, block, meta);
|
||||
super.breakBlock(world, x, y, z, block, meta);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -18,11 +18,11 @@ public class SoilBlock extends TConstructBlock
|
||||
|
||||
public SoilBlock()
|
||||
{
|
||||
super(Material.field_151578_c, 3.0F, soilTypes);
|
||||
super(Material.ground, 3.0F, soilTypes);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_149724_b (World world, int x, int y, int z, Entity entity)
|
||||
public void onEntityWalking (World world, int x, int y, int z, Entity entity)
|
||||
{
|
||||
if (entity instanceof EntityLivingBase){
|
||||
if (((EntityLivingBase) entity).getCreatureAttribute() == EnumCreatureAttribute.UNDEAD)
|
||||
@@ -56,9 +56,9 @@ public class SoilBlock extends TConstructBlock
|
||||
}
|
||||
}
|
||||
|
||||
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 Blocks.soul_sand.func_149668_a(world, x, y, z);
|
||||
return Blocks.soul_sand.getCollisionBoundingBoxFromPool(world, x, y, z);
|
||||
}
|
||||
|
||||
/*public void setBlockBoundsBasedOnState(IBlockAccess world, int x, int y, int z)
|
||||
|
||||
@@ -20,36 +20,36 @@ public class SoilSlab extends SlabBase
|
||||
{
|
||||
public SoilSlab()
|
||||
{
|
||||
super(Material.field_151578_c);
|
||||
this.func_149647_a(TConstructRegistry.blockTab);
|
||||
super(Material.ground);
|
||||
this.setCreativeTab(TConstructRegistry.blockTab);
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void func_149651_a (IIconRegister iconRegister)
|
||||
public void registerBlockIcons (IIconRegister iconRegister)
|
||||
{
|
||||
this.field_149761_L = iconRegister.registerIcon("tinker:grass_top");
|
||||
this.blockIcon = iconRegister.registerIcon("tinker:grass_top");
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon func_149691_a (int side, int meta)
|
||||
public IIcon getIcon (int side, int meta)
|
||||
{
|
||||
switch (meta % 8)
|
||||
{
|
||||
case 0:
|
||||
return this.field_149761_L;//Block.grass.func_149691_a(1, 0);
|
||||
return this.blockIcon;//Block.grass.getIcon(1, 0);
|
||||
case 1:
|
||||
return Blocks.dirt.func_149691_a(side, 0);
|
||||
return Blocks.dirt.getIcon(side, 0);
|
||||
case 2:
|
||||
return Blocks.mycelium.func_149691_a(1, 0);
|
||||
return Blocks.mycelium.getIcon(1, 0);
|
||||
default:
|
||||
return TRepo.craftedSoil.func_149691_a(side, meta - 3);
|
||||
return TRepo.craftedSoil.getIcon(side, meta - 3);
|
||||
}
|
||||
}
|
||||
|
||||
@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 < 8; iter++)
|
||||
{
|
||||
@@ -59,7 +59,7 @@ public class SoilSlab extends SlabBase
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public int func_149635_D ()
|
||||
public int getBlockColor ()
|
||||
{
|
||||
double d0 = 0.5D;
|
||||
double d1 = 1.0D;
|
||||
@@ -68,16 +68,16 @@ public class SoilSlab extends SlabBase
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public int func_149741_i (int par1)
|
||||
public int getRenderColor (int par1)
|
||||
{
|
||||
//if (par1 % 8 == 0)
|
||||
return this.func_149635_D();
|
||||
return this.getBlockColor();
|
||||
//return 0xFFFFFF;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public int func_149720_d (IBlockAccess world, int x, int y, int z)
|
||||
public int colorMultiplier (IBlockAccess world, int x, int y, int z)
|
||||
{
|
||||
int l = 0;
|
||||
int i1 = 0;
|
||||
@@ -87,7 +87,7 @@ public class SoilSlab extends SlabBase
|
||||
{
|
||||
for (int l1 = -1; l1 <= 1; ++l1)
|
||||
{
|
||||
int i2 = world.getBiomeGenForCoords(x + l1, z + k1).func_150558_b(x, y, z);
|
||||
int i2 = world.getBiomeGenForCoords(x + l1, z + k1).getBiomeGrassColor(x, y, z);
|
||||
l += (i2 & 16711680) >> 16;
|
||||
i1 += (i2 & 65280) >> 8;
|
||||
j1 += i2 & 255;
|
||||
|
||||
@@ -18,12 +18,12 @@ public class SpeedBlock extends TConstructBlock
|
||||
|
||||
public SpeedBlock()
|
||||
{
|
||||
super(Material.field_151576_e, 3.0f, textureNames);
|
||||
super(Material.rock, 3.0f, textureNames);
|
||||
//this.setBlockBounds(0f, 0f, 0f, 1.0f, 0.5f, 1.0f);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_149724_b (World world, int x, int y, int z, Entity entity)
|
||||
public void onEntityWalking (World world, int x, int y, int z, Entity entity)
|
||||
{
|
||||
double boost = 2.2D;
|
||||
int metadata = world.getBlockMetadata(x, y, z);
|
||||
@@ -43,14 +43,14 @@ public class SpeedBlock extends TConstructBlock
|
||||
}
|
||||
|
||||
@Override
|
||||
public int func_149692_a (int meta)
|
||||
public int damageDropped (int meta)
|
||||
{
|
||||
return meta;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
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 < textureNames.length; iter++)
|
||||
{
|
||||
|
||||
@@ -19,27 +19,27 @@ public class SpeedSlab extends SlabBase
|
||||
{
|
||||
public SpeedSlab()
|
||||
{
|
||||
super(Material.field_151576_e);
|
||||
this.func_149647_a(TConstructRegistry.blockTab);
|
||||
func_149711_c(3F);
|
||||
super(Material.rock);
|
||||
this.setCreativeTab(TConstructRegistry.blockTab);
|
||||
setHardness(3F);
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void func_149651_a (IIconRegister iconRegister)
|
||||
public void registerBlockIcons (IIconRegister iconRegister)
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon func_149691_a (int side, int meta)
|
||||
public IIcon getIcon (int side, int meta)
|
||||
{
|
||||
meta = meta % 8;
|
||||
return TRepo.speedBlock.func_149691_a(side, meta);
|
||||
return TRepo.speedBlock.getIcon(side, meta);
|
||||
}
|
||||
|
||||
@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 < 7; iter++)
|
||||
{
|
||||
@@ -48,7 +48,7 @@ public class SpeedSlab extends SlabBase
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_149724_b (World world, int x, int y, int z, Entity entity)
|
||||
public void onEntityWalking (World world, int x, int y, int z, Entity entity)
|
||||
{
|
||||
double boost = 2.2D;
|
||||
int metadata = world.getBlockMetadata(x, y, z) % 8;
|
||||
|
||||
@@ -12,7 +12,7 @@ public class StoneLadder extends BlockLadder
|
||||
{
|
||||
|
||||
// Override ladder material
|
||||
public final Material blockMaterial = Material.field_151576_e;
|
||||
public final Material blockMaterial = Material.rock;
|
||||
|
||||
private IIcon icon;
|
||||
|
||||
@@ -20,19 +20,19 @@ public class StoneLadder extends BlockLadder
|
||||
public StoneLadder()
|
||||
{
|
||||
super();
|
||||
this.func_149663_c("decoration.stoneladder");
|
||||
this.func_149647_a(CreativeTabs.tabDecorations);
|
||||
this.setBlockName("decoration.stoneladder");
|
||||
this.setCreativeTab(CreativeTabs.tabDecorations);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_149651_a (IIconRegister register)
|
||||
public void registerBlockIcons (IIconRegister register)
|
||||
{
|
||||
icon = register.registerIcon("tinker:ladder_stone");
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon func_149691_a (int meta, int side)
|
||||
public IIcon getIcon (int meta, int side)
|
||||
{
|
||||
return icon;
|
||||
}
|
||||
|
||||
@@ -24,9 +24,9 @@ public class StoneTorch extends MantleBlock
|
||||
{
|
||||
public StoneTorch()
|
||||
{
|
||||
super(Material.field_151594_q);
|
||||
this.func_149647_a(CreativeTabs.tabDecorations);
|
||||
func_149715_a(0.9375F);
|
||||
super(Material.circuits);
|
||||
this.setCreativeTab(CreativeTabs.tabDecorations);
|
||||
setLightLevel(0.9375F);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -68,13 +68,13 @@ public class StoneTorch extends MantleBlock
|
||||
*/
|
||||
private boolean canPlaceTorchOn (World par1World, int par2, int par3, int par4)
|
||||
{
|
||||
if (par1World.func_147466_a(par1World, par2, par3, par4))
|
||||
if (par1World.doesBlockHaveSolidTopSurface(par1World, par2, par3, par4))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
Block b = par1World.func_147439_a(par2, par3, par4);
|
||||
Block b = par1World.getBlock(par2, par3, par4);
|
||||
return (b != null && b.canPlaceTorchOnTop(par1World, par2, par3, par4));
|
||||
}
|
||||
}
|
||||
@@ -149,9 +149,9 @@ public class StoneTorch extends MantleBlock
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void func_149651_a (IIconRegister par1IconRegister)
|
||||
public void registerBlockIcons (IIconRegister par1IconRegister)
|
||||
{
|
||||
this.field_149761_L = par1IconRegister.registerIcon("tinker:torch_stone");
|
||||
this.blockIcon = par1IconRegister.registerIcon("tinker:torch_stone");
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -197,7 +197,7 @@ public class StoneTorch extends MantleBlock
|
||||
|
||||
if (flag)
|
||||
{
|
||||
this.func_149697_b(par1World, par2, par3, par4, par1World.getBlockMetadata(par2, par3, par4), 0);
|
||||
this.dropBlockAsItem(par1World, par2, par3, par4, par1World.getBlockMetadata(par2, par3, par4), 0);
|
||||
return true;
|
||||
}
|
||||
else
|
||||
@@ -219,9 +219,9 @@ public class StoneTorch extends MantleBlock
|
||||
{
|
||||
if (!this.canPlaceBlockAt(par1World, par2, par3, par4))
|
||||
{
|
||||
if (par1World.func_147439_a(par2, par3, par4) == (Block) this)
|
||||
if (par1World.getBlock(par2, par3, par4) == (Block) this)
|
||||
{
|
||||
this.func_149697_b(par1World, par2, par3, par4, par1World.getBlockMetadata(par2, par3, par4), 0);
|
||||
this.dropBlockAsItem(par1World, par2, par3, par4, par1World.getBlockMetadata(par2, par3, par4), 0);
|
||||
WorldHelper.setBlockToAir(par1World, par2, par3, par4);
|
||||
}
|
||||
|
||||
@@ -244,27 +244,27 @@ public class StoneTorch extends MantleBlock
|
||||
|
||||
if (l == 1)
|
||||
{
|
||||
this.func_149676_a(0.0F, 0.2F, 0.5F - f, f * 2.0F, 0.8F, 0.5F + f);
|
||||
this.setBlockBounds(0.0F, 0.2F, 0.5F - f, f * 2.0F, 0.8F, 0.5F + f);
|
||||
}
|
||||
else if (l == 2)
|
||||
{
|
||||
this.func_149676_a(1.0F - f * 2.0F, 0.2F, 0.5F - f, 1.0F, 0.8F, 0.5F + f);
|
||||
this.setBlockBounds(1.0F - f * 2.0F, 0.2F, 0.5F - f, 1.0F, 0.8F, 0.5F + f);
|
||||
}
|
||||
else if (l == 3)
|
||||
{
|
||||
this.func_149676_a(0.5F - f, 0.2F, 0.0F, 0.5F + f, 0.8F, f * 2.0F);
|
||||
this.setBlockBounds(0.5F - f, 0.2F, 0.0F, 0.5F + f, 0.8F, f * 2.0F);
|
||||
}
|
||||
else if (l == 4)
|
||||
{
|
||||
this.func_149676_a(0.5F - f, 0.2F, 1.0F - f * 2.0F, 0.5F + f, 0.8F, 1.0F);
|
||||
this.setBlockBounds(0.5F - f, 0.2F, 1.0F - f * 2.0F, 0.5F + f, 0.8F, 1.0F);
|
||||
}
|
||||
else
|
||||
{
|
||||
f = 0.1F;
|
||||
this.func_149676_a(0.5F - f, 0.0F, 0.5F - f, 0.5F + f, 0.6F, 0.5F + f);
|
||||
this.setBlockBounds(0.5F - f, 0.0F, 0.5F - f, 0.5F + f, 0.6F, 0.5F + f);
|
||||
}
|
||||
|
||||
return super.func_149731_a(par1World, par2, par3, par4, par5Vec3, par6Vec3);
|
||||
return super.collisionRayTrace(par1World, par2, par3, par4, par5Vec3, par6Vec3);
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
|
||||
@@ -22,20 +22,20 @@ public class TConstructBlock extends MantleBlock
|
||||
public TConstructBlock( Material material, float hardness, String[] tex)
|
||||
{
|
||||
super( material);
|
||||
func_149711_c(hardness);
|
||||
this.func_149647_a(TConstructRegistry.blockTab);
|
||||
setHardness(hardness);
|
||||
this.setCreativeTab(TConstructRegistry.blockTab);
|
||||
textureNames = tex;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int func_149692_a (int meta)
|
||||
public int damageDropped (int meta)
|
||||
{
|
||||
return meta;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void func_149651_a (IIconRegister iconRegister)
|
||||
public void registerBlockIcons (IIconRegister iconRegister)
|
||||
{
|
||||
this.icons = new IIcon[textureNames.length];
|
||||
|
||||
@@ -47,7 +47,7 @@ public class TConstructBlock extends MantleBlock
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon func_149691_a (int side, int meta)
|
||||
public IIcon getIcon (int side, int meta)
|
||||
{
|
||||
return meta < icons.length ? icons[meta] : icons[0];
|
||||
}
|
||||
@@ -65,7 +65,7 @@ public class TConstructBlock extends MantleBlock
|
||||
|
||||
//TODO getSubBlocks
|
||||
@Override
|
||||
public void func_149666_a (Item block, CreativeTabs tab, List list)
|
||||
public void getSubBlocks (Item block, CreativeTabs tab, List list)
|
||||
{
|
||||
for (int iter = 0; iter < icons.length; iter++)
|
||||
{
|
||||
|
||||
@@ -19,7 +19,7 @@ public class TConstructFluid extends BlockFluidClassic
|
||||
super(fluid, material);
|
||||
this.texture = texture;
|
||||
//TODO setCreativeTab()
|
||||
this.func_149647_a(TConstructRegistry.blockTab);
|
||||
this.setCreativeTab(TConstructRegistry.blockTab);
|
||||
}
|
||||
|
||||
public TConstructFluid(Fluid fluid, Material material, String texture, boolean alpha)
|
||||
@@ -29,21 +29,21 @@ public class TConstructFluid extends BlockFluidClassic
|
||||
}
|
||||
|
||||
@Override
|
||||
public int func_149701_w ()
|
||||
public int getRenderBlockPass ()
|
||||
{
|
||||
return alpha ? 1 : 0;
|
||||
}
|
||||
//TODO func_149651_a
|
||||
//TODO registerBlockIcons
|
||||
@Override
|
||||
public void func_149651_a (IIconRegister iconRegister)
|
||||
public void registerBlockIcons (IIconRegister iconRegister)
|
||||
{
|
||||
stillIcon = iconRegister.registerIcon("tinker:" + texture);
|
||||
flowIcon = iconRegister.registerIcon("tinker:" + texture + "_flow");
|
||||
}
|
||||
|
||||
//TODO func_149691_a()
|
||||
//TODO getIcon()
|
||||
@Override
|
||||
public IIcon func_149691_a (int side, int meta)
|
||||
public IIcon getIcon (int side, int meta)
|
||||
{
|
||||
if (side == 0 || side == 1)
|
||||
return stillIcon;
|
||||
|
||||
@@ -13,7 +13,7 @@ public class TMetalBlock extends TConstructBlock
|
||||
public TMetalBlock(Material material, float hardness)
|
||||
{
|
||||
super(material, hardness, metalTypes);
|
||||
this.func_149672_a(Block.field_149777_j);
|
||||
this.setStepSound(Block.soundTypeMetal);
|
||||
}
|
||||
|
||||
public boolean isBeaconBase (World worldObj, int x, int y, int z, int beaconX, int beaconY, int beaconZ)
|
||||
|
||||
@@ -29,50 +29,50 @@ public class TankAirBlock extends BlockContainer
|
||||
}
|
||||
|
||||
@Override
|
||||
public TileEntity func_149915_a (World world, int i)
|
||||
public TileEntity createNewTileEntity (World world, int i)
|
||||
{
|
||||
return new TankAirLogic();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int func_149645_b ()
|
||||
public int getRenderType ()
|
||||
{
|
||||
return TankAirRender.model;
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void func_149651_a (IIconRegister par1IconRegister)
|
||||
public void registerBlockIcons (IIconRegister par1IconRegister)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_149662_c ()
|
||||
public boolean isOpaqueCube ()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_149686_d ()
|
||||
public boolean renderAsNormalBlock ()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@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)
|
||||
{
|
||||
TankAirLogic tank = (TankAirLogic) world.func_147438_o(x, y, z);
|
||||
TankAirLogic tank = (TankAirLogic) world.getTileEntity(x, y, z);
|
||||
if (tank != null && tank.hasItem())
|
||||
return super.func_149668_a(world, x, y, z);
|
||||
return super.getCollisionBoundingBoxFromPool(world, x, y, z);
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public MovingObjectPosition func_149731_a (World world, int x, int y, int z, Vec3 par5Vec3, Vec3 par6Vec3)
|
||||
public MovingObjectPosition collisionRayTrace (World world, int x, int y, int z, Vec3 par5Vec3, Vec3 par6Vec3)
|
||||
{
|
||||
TankAirLogic tank = (TankAirLogic) world.func_147438_o(x, y, z);
|
||||
TankAirLogic tank = (TankAirLogic) world.getTileEntity(x, y, z);
|
||||
if (tank.hasItem())
|
||||
return super.func_149731_a(world, x, y, z, par5Vec3, par6Vec3);
|
||||
return super.collisionRayTrace(world, x, y, z, par5Vec3, par6Vec3);
|
||||
|
||||
return null;
|
||||
}
|
||||
@@ -102,7 +102,7 @@ public class TankAirBlock extends BlockContainer
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_149666_a (Item i, CreativeTabs tab, List list)
|
||||
public void getSubBlocks (Item i, CreativeTabs tab, List list)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -29,9 +29,9 @@ public class ToolForgeBlock extends InventoryBlock
|
||||
public ToolForgeBlock(Material material)
|
||||
{
|
||||
super(material);
|
||||
this.func_149647_a(TConstructRegistry.blockTab);
|
||||
this.func_149711_c(2f);
|
||||
this.func_149672_a(Block.field_149777_j);
|
||||
this.setCreativeTab(TConstructRegistry.blockTab);
|
||||
this.setHardness(2f);
|
||||
this.setStepSound(Block.soundTypeMetal);
|
||||
}
|
||||
|
||||
String[] textureNames = { "toolforge_iron", "toolforge_gold", "toolforge_diamond", "toolforge_emerald", "toolforge_cobalt", "toolforge_ardite", "toolforge_manyullyn", "toolforge_copper",
|
||||
@@ -47,14 +47,14 @@ public class ToolForgeBlock extends InventoryBlock
|
||||
IIcon textureTop;
|
||||
|
||||
@Override
|
||||
public void func_149651_a (IIconRegister iconRegister)
|
||||
public void registerBlockIcons (IIconRegister iconRegister)
|
||||
{
|
||||
super.func_149651_a(iconRegister);
|
||||
super.registerBlockIcons(iconRegister);
|
||||
textureTop = iconRegister.registerIcon("tinker:toolforge_top");
|
||||
}
|
||||
|
||||
@Override
|
||||
public IIcon func_149691_a (int side, int meta)
|
||||
public IIcon getIcon (int side, int meta)
|
||||
{
|
||||
if (side == 1)
|
||||
{
|
||||
@@ -65,15 +65,15 @@ public class ToolForgeBlock extends InventoryBlock
|
||||
switch (meta)
|
||||
{
|
||||
case 0:
|
||||
return Blocks.iron_block.func_149691_a(side, 0);
|
||||
return Blocks.iron_block.getIcon(side, 0);
|
||||
case 1:
|
||||
return Blocks.gold_block.func_149691_a(side, 0);
|
||||
return Blocks.gold_block.getIcon(side, 0);
|
||||
case 2:
|
||||
return Blocks.diamond_block.func_149691_a(side, 0);
|
||||
return Blocks.diamond_block.getIcon(side, 0);
|
||||
case 3:
|
||||
return Blocks.emerald_block.func_149691_a(side, 0);
|
||||
return Blocks.emerald_block.getIcon(side, 0);
|
||||
default:
|
||||
return TRepo.metalBlock.func_149691_a(side, meta - 4);
|
||||
return TRepo.metalBlock.getIcon(side, meta - 4);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -81,13 +81,13 @@ public class ToolForgeBlock extends InventoryBlock
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_149686_d ()
|
||||
public boolean renderAsNormalBlock ()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_149662_c ()
|
||||
public boolean isOpaqueCube ()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -99,19 +99,19 @@ public class ToolForgeBlock extends InventoryBlock
|
||||
}
|
||||
|
||||
@Override
|
||||
public int func_149645_b ()
|
||||
public int getRenderType ()
|
||||
{
|
||||
return TableForgeRender.model;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_149646_a (IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
|
||||
public boolean shouldSideBeRendered (IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TileEntity func_149915_a (World world, int metadata)
|
||||
public TileEntity createNewTileEntity (World world, int metadata)
|
||||
{
|
||||
return new ToolForgeLogic();
|
||||
}
|
||||
@@ -130,7 +130,7 @@ public class ToolForgeBlock extends InventoryBlock
|
||||
}
|
||||
|
||||
@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 < textureNames.length; iter++)
|
||||
{
|
||||
|
||||
@@ -34,9 +34,9 @@ public class ToolStationBlock extends InventoryBlock
|
||||
public ToolStationBlock(Material material)
|
||||
{
|
||||
super(material);
|
||||
this.func_149647_a(TConstructRegistry.blockTab);
|
||||
this.func_149711_c(2f);
|
||||
this.func_149672_a(Block.field_149766_f);
|
||||
this.setCreativeTab(TConstructRegistry.blockTab);
|
||||
this.setHardness(2f);
|
||||
this.setStepSound(Block.soundTypeWood);
|
||||
}
|
||||
|
||||
//Block.hasComparatorInputOverride and Block.getComparatorInputOverride
|
||||
@@ -56,7 +56,7 @@ public class ToolStationBlock extends InventoryBlock
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon func_149691_a (int side, int meta)
|
||||
public IIcon getIcon (int side, int meta)
|
||||
{
|
||||
if (meta <= 4)
|
||||
{
|
||||
@@ -83,13 +83,13 @@ public class ToolStationBlock extends InventoryBlock
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_149686_d ()
|
||||
public boolean renderAsNormalBlock ()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_149662_c ()
|
||||
public boolean isOpaqueCube ()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -101,13 +101,13 @@ public class ToolStationBlock extends InventoryBlock
|
||||
}
|
||||
|
||||
@Override
|
||||
public int func_149645_b ()
|
||||
public int getRenderType ()
|
||||
{
|
||||
return TableRender.tabelModelID;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_149646_a (IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
|
||||
public boolean shouldSideBeRendered (IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@@ -116,8 +116,8 @@ public class ToolStationBlock extends InventoryBlock
|
||||
{
|
||||
int metadata = world.getBlockMetadata(x, y, z);
|
||||
if (metadata == 5)
|
||||
return AxisAlignedBB.getAABBPool().getAABB((double) x + this.field_149759_B, (double) y + this.field_149760_C, (double) z + this.field_149754_D, (double) x + this.field_149755_E, (double) y + this.field_149756_F - 0.125, (double) z + this.field_149757_G);
|
||||
return AxisAlignedBB.getAABBPool().getAABB((double) x + this.field_149759_B, (double) y + this.field_149760_C, (double) z + this.field_149754_D, (double) x + this.field_149755_E, (double) y + this.field_149756_F, (double) z + this.field_149757_G);
|
||||
return AxisAlignedBB.getAABBPool().getAABB((double) x + this.minX, (double) y + this.minY, (double) z + this.minZ, (double) x + this.maxX, (double) y + this.maxY - 0.125, (double) z + this.maxZ);
|
||||
return AxisAlignedBB.getAABBPool().getAABB((double) x + this.minX, (double) y + this.minY, (double) z + this.minZ, (double) x + this.maxX, (double) y + this.maxY, (double) z + this.maxZ);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -183,7 +183,7 @@ public class ToolStationBlock extends InventoryBlock
|
||||
}
|
||||
|
||||
@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 < 6; iter++)
|
||||
{
|
||||
@@ -197,14 +197,14 @@ public class ToolStationBlock extends InventoryBlock
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_149689_a (World world, int x, int y, int z, EntityLivingBase par5EntityLiving, ItemStack par6ItemStack)
|
||||
public void onBlockPlacedBy (World world, int x, int y, int z, EntityLivingBase par5EntityLiving, ItemStack par6ItemStack)
|
||||
{
|
||||
if (PHConstruct.freePatterns)
|
||||
{
|
||||
int meta = world.getBlockMetadata(x, y, z);
|
||||
if (meta == 5)
|
||||
{
|
||||
PatternChestLogic logic = (PatternChestLogic) world.func_147438_o(x, y, z);
|
||||
PatternChestLogic logic = (PatternChestLogic) world.getTileEntity(x, y, z);
|
||||
for (int i = 1; i <= 13; i++)
|
||||
{
|
||||
logic.setInventorySlotContents(i - 1, new ItemStack(TRepo.woodPattern, 1, i));
|
||||
@@ -212,11 +212,11 @@ public class ToolStationBlock extends InventoryBlock
|
||||
logic.setInventorySlotContents(13, new ItemStack(TRepo.woodPattern, 1, 22));
|
||||
}
|
||||
}
|
||||
super.func_149689_a(world, x, y, z, par5EntityLiving, par6ItemStack);
|
||||
super.onBlockPlacedBy(world, x, y, z, par5EntityLiving, par6ItemStack);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TileEntity func_149915_a (World var1, int var2)
|
||||
public TileEntity createNewTileEntity (World var1, int var2)
|
||||
{
|
||||
return createTileEntity(var1,var2);
|
||||
}
|
||||
|
||||
@@ -24,9 +24,9 @@ public class WoodRail extends BlockRailBase
|
||||
/**
|
||||
* From the specified side and block metadata retrieves the blocks texture. Args: side, metadata
|
||||
*/
|
||||
public IIcon func_149691_a (int par1, int par2)
|
||||
public IIcon getIcon (int par1, int par2)
|
||||
{
|
||||
return par2 >= 6 ? this.theIcon : this.field_149761_L;
|
||||
return par2 >= 6 ? this.theIcon : this.blockIcon;
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
@@ -34,15 +34,15 @@ public class WoodRail extends BlockRailBase
|
||||
* 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.field_149761_L = par1IconRegister.registerIcon("tinker:woodrail");
|
||||
this.blockIcon = par1IconRegister.registerIcon("tinker:woodrail");
|
||||
this.theIcon = par1IconRegister.registerIcon("tinker:woodrail_turn");
|
||||
}
|
||||
|
||||
protected void func_94358_a (World par1World, int par2, int par3, int par4, int par5, int par6, Block par7)
|
||||
{
|
||||
if (par7 != Blocks.air && par7.func_149744_f() && (new Rail(par1World, par2, par3, par4)).func_150650_a() == 3)
|
||||
if (par7 != Blocks.air && par7.canProvidePower() && (new Rail(par1World, par2, par3, par4)).func_150650_a() == 3)
|
||||
{
|
||||
this.func_150052_a(par1World, par2, par3, par4, false);
|
||||
}
|
||||
|
||||
@@ -146,7 +146,7 @@ public class SmelteryComponent extends LogicComponent
|
||||
return;
|
||||
}
|
||||
|
||||
TileEntity tankContainer = world.func_147438_o(activeLavaTank.x, activeLavaTank.y, activeLavaTank.z);
|
||||
TileEntity tankContainer = world.getTileEntity(activeLavaTank.x, activeLavaTank.y, activeLavaTank.z);
|
||||
if (tankContainer == null)
|
||||
{
|
||||
fuelAmount = 0;
|
||||
@@ -183,7 +183,7 @@ public class SmelteryComponent extends LogicComponent
|
||||
while (!foundTank)
|
||||
{
|
||||
CoordTuple possibleTank = structure.lavaTanks.get(iter);
|
||||
TileEntity newTankContainer = world.func_147438_o(possibleTank.x, possibleTank.y, possibleTank.z);
|
||||
TileEntity newTankContainer = world.getTileEntity(possibleTank.x, possibleTank.y, possibleTank.z);
|
||||
if (newTankContainer instanceof IFluidHandler)
|
||||
{
|
||||
FluidStack newliquid = ((IFluidHandler) newTankContainer).drain(ForgeDirection.UNKNOWN, drainFuelAmount(), false);
|
||||
|
||||
@@ -33,7 +33,7 @@ public class SmelteryScan extends TankLayerScan
|
||||
|
||||
protected boolean checkAir (int x, int y, int z)
|
||||
{
|
||||
Block block = world.func_147439_a(x, y, z);
|
||||
Block block = world.getBlock(x, y, z);
|
||||
if (block == null || block == Blocks.air || block == TRepo.tankAir)
|
||||
return true;
|
||||
|
||||
@@ -43,14 +43,14 @@ public class SmelteryScan extends TankLayerScan
|
||||
@Override
|
||||
protected boolean checkServant (int x, int y, int z)
|
||||
{
|
||||
Block block = world.func_147439_a(x, y, z);
|
||||
if (block == null || world.func_147439_a( x, y, z) == Blocks.air || !isValidBlock(x, y, z))
|
||||
Block block = world.getBlock(x, y, z);
|
||||
if (block == null || world.getBlock( x, y, z) == Blocks.air || !isValidBlock(x, y, z))
|
||||
return false;
|
||||
|
||||
if (!block.hasTileEntity(world.getBlockMetadata(x, y, z)))
|
||||
return false;
|
||||
|
||||
TileEntity be = world.func_147438_o(x, y, z);
|
||||
TileEntity be = world.getTileEntity(x, y, z);
|
||||
if (be instanceof IServantLogic)
|
||||
{
|
||||
boolean ret = ((IServantLogic) be).setPotentialMaster(this.imaster, this.world, x, y, z);
|
||||
@@ -72,11 +72,11 @@ public class SmelteryScan extends TankLayerScan
|
||||
{
|
||||
for (CoordTuple coord : airCoords)
|
||||
{
|
||||
if (world.func_147439_a(coord.x, coord.y, coord.z) != TRepo.tankAir)
|
||||
if (world.getBlock(coord.x, coord.y, coord.z) != TRepo.tankAir)
|
||||
{
|
||||
world.func_147449_b(coord.x, coord.y, coord.z, TRepo.tankAir);
|
||||
IServantLogic servant = (IServantLogic) world.func_147438_o(coord.x, coord.y, coord.z);
|
||||
servant.verifyMaster(imaster, world, master.field_145851_c, master.field_145848_d, master.field_145849_e);
|
||||
world.setBlock(coord.x, coord.y, coord.z, TRepo.tankAir);
|
||||
IServantLogic servant = (IServantLogic) world.getTileEntity(coord.x, coord.y, coord.z);
|
||||
servant.verifyMaster(imaster, world, master.xCoord, master.yCoord, master.zCoord);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -88,9 +88,9 @@ public class SmelteryScan extends TankLayerScan
|
||||
super.invalidateStructure();
|
||||
for (CoordTuple coord : airCoords)
|
||||
{
|
||||
TileEntity servant = world.func_147438_o(coord.x, coord.y, coord.z);
|
||||
TileEntity servant = world.getTileEntity(coord.x, coord.y, coord.z);
|
||||
if (servant instanceof IServantLogic)
|
||||
((IServantLogic) servant).invalidateMaster(imaster, world, master.field_145851_c, master.field_145848_d, master.field_145849_e);
|
||||
((IServantLogic) servant).invalidateMaster(imaster, world, master.xCoord, master.yCoord, master.zCoord);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -102,9 +102,9 @@ public class SmelteryScan extends TankLayerScan
|
||||
if (coord.y < height)
|
||||
continue;
|
||||
|
||||
TileEntity servant = world.func_147438_o(coord.x, coord.y, coord.z);
|
||||
TileEntity servant = world.getTileEntity(coord.x, coord.y, coord.z);
|
||||
if (servant instanceof IServantLogic)
|
||||
((IServantLogic) servant).invalidateMaster(imaster, world, master.field_145851_c, master.field_145848_d, master.field_145849_e);
|
||||
((IServantLogic) servant).invalidateMaster(imaster, world, master.xCoord, master.yCoord, master.zCoord);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -116,10 +116,10 @@ public class SmelteryScan extends TankLayerScan
|
||||
while (i.hasNext())
|
||||
{
|
||||
CoordTuple coord = (CoordTuple) i.next();
|
||||
TileEntity te = world.func_147438_o(coord.x, coord.y, coord.z);
|
||||
TileEntity te = world.getTileEntity(coord.x, coord.y, coord.z);
|
||||
if (te != null && te instanceof IServantLogic)
|
||||
{
|
||||
((IServantLogic) te).invalidateMaster(imaster, world, master.field_145851_c, master.field_145848_d, master.field_145849_e);
|
||||
((IServantLogic) te).invalidateMaster(imaster, world, master.xCoord, master.yCoord, master.zCoord);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -130,7 +130,7 @@ public class SmelteryScan extends TankLayerScan
|
||||
{
|
||||
super.readNetworkNBT(tags);
|
||||
|
||||
NBTTagList tanks = tags.func_150295_c("Tanks",11);
|
||||
NBTTagList tanks = tags.getTagList("Tanks",11);
|
||||
if (tanks != null)
|
||||
{
|
||||
lavaTanks.clear();
|
||||
|
||||
@@ -32,7 +32,7 @@ public class AdaptiveDrainLogic extends MultiServantLogic implements IFluidHandl
|
||||
{
|
||||
if (hasValidMaster() && canDrain(from, null))
|
||||
{
|
||||
AdaptiveSmelteryLogic smeltery = (AdaptiveSmelteryLogic) field_145850_b.func_147438_o(getMasterPosition().x, getMasterPosition().y, getMasterPosition().z);
|
||||
AdaptiveSmelteryLogic smeltery = (AdaptiveSmelteryLogic) worldObj.getTileEntity(getMasterPosition().x, getMasterPosition().y, getMasterPosition().z);
|
||||
return smeltery.fill(from, resource, doFill);
|
||||
}
|
||||
return 0;
|
||||
@@ -44,7 +44,7 @@ public class AdaptiveDrainLogic extends MultiServantLogic implements IFluidHandl
|
||||
// TConstruct.logger.info("Attempting drain " + hasValidMaster());
|
||||
if (hasValidMaster() && canDrain(from, null))
|
||||
{
|
||||
AdaptiveSmelteryLogic smeltery = (AdaptiveSmelteryLogic) field_145850_b.func_147438_o(getMasterPosition().x, getMasterPosition().y, getMasterPosition().z);
|
||||
AdaptiveSmelteryLogic smeltery = (AdaptiveSmelteryLogic) worldObj.getTileEntity(getMasterPosition().x, getMasterPosition().y, getMasterPosition().z);
|
||||
// TConstruct.logger.info("Found master");
|
||||
return smeltery.drain(from, maxDrain, doDrain);
|
||||
}
|
||||
@@ -56,7 +56,7 @@ public class AdaptiveDrainLogic extends MultiServantLogic implements IFluidHandl
|
||||
{
|
||||
if (hasValidMaster() && canDrain(from, null))
|
||||
{
|
||||
AdaptiveSmelteryLogic smeltery = (AdaptiveSmelteryLogic) field_145850_b.func_147438_o(getMasterPosition().x, getMasterPosition().y, getMasterPosition().z);
|
||||
AdaptiveSmelteryLogic smeltery = (AdaptiveSmelteryLogic) worldObj.getTileEntity(getMasterPosition().x, getMasterPosition().y, getMasterPosition().z);
|
||||
return smeltery.drain(from, resource, doDrain);
|
||||
}
|
||||
return null;
|
||||
@@ -67,7 +67,7 @@ public class AdaptiveDrainLogic extends MultiServantLogic implements IFluidHandl
|
||||
{
|
||||
if (hasValidMaster())
|
||||
{
|
||||
AdaptiveSmelteryLogic smeltery = (AdaptiveSmelteryLogic) field_145850_b.func_147438_o(getMasterPosition().x, getMasterPosition().y, getMasterPosition().z);
|
||||
AdaptiveSmelteryLogic smeltery = (AdaptiveSmelteryLogic) worldObj.getTileEntity(getMasterPosition().x, getMasterPosition().y, getMasterPosition().z);
|
||||
return smeltery.getFillState() < 2;
|
||||
}
|
||||
return false;
|
||||
@@ -78,7 +78,7 @@ public class AdaptiveDrainLogic extends MultiServantLogic implements IFluidHandl
|
||||
{
|
||||
if (hasValidMaster())
|
||||
{
|
||||
AdaptiveSmelteryLogic smeltery = (AdaptiveSmelteryLogic) field_145850_b.func_147438_o(getMasterPosition().x, getMasterPosition().y, getMasterPosition().z);
|
||||
AdaptiveSmelteryLogic smeltery = (AdaptiveSmelteryLogic) worldObj.getTileEntity(getMasterPosition().x, getMasterPosition().y, getMasterPosition().z);
|
||||
return smeltery.getFillState() > 0;
|
||||
}
|
||||
return false;
|
||||
@@ -89,7 +89,7 @@ public class AdaptiveDrainLogic extends MultiServantLogic implements IFluidHandl
|
||||
{
|
||||
if (hasValidMaster() && (from == getForgeDirection() || from == getForgeDirection().getOpposite() || from == ForgeDirection.UNKNOWN))
|
||||
{
|
||||
AdaptiveSmelteryLogic smeltery = (AdaptiveSmelteryLogic) field_145850_b.func_147438_o(getMasterPosition().x, getMasterPosition().y, getMasterPosition().z);
|
||||
AdaptiveSmelteryLogic smeltery = (AdaptiveSmelteryLogic) worldObj.getTileEntity(getMasterPosition().x, getMasterPosition().y, getMasterPosition().z);
|
||||
return smeltery.getTankInfo(ForgeDirection.UNKNOWN);
|
||||
}
|
||||
return null;
|
||||
@@ -144,32 +144,32 @@ public class AdaptiveDrainLogic extends MultiServantLogic implements IFluidHandl
|
||||
}
|
||||
}
|
||||
|
||||
public void func_145839_a (NBTTagCompound tags)
|
||||
public void readFromNBT (NBTTagCompound tags)
|
||||
{
|
||||
super.func_145839_a(tags);
|
||||
super.readFromNBT(tags);
|
||||
direction = tags.getByte("Direction");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_145841_b (NBTTagCompound tags)
|
||||
public void writeToNBT (NBTTagCompound tags)
|
||||
{
|
||||
super.func_145841_b(tags);
|
||||
super.writeToNBT(tags);
|
||||
tags.setByte("Direction", direction);
|
||||
}
|
||||
|
||||
/* Packets */
|
||||
@Override
|
||||
public Packet func_145844_m ()
|
||||
public Packet getDescriptionPacket ()
|
||||
{
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
func_145841_b(tag);
|
||||
return new S35PacketUpdateTileEntity(field_145851_c, field_145848_d, field_145849_e, 1, tag);
|
||||
writeToNBT(tag);
|
||||
return new S35PacketUpdateTileEntity(xCoord, yCoord, zCoord, 1, tag);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDataPacket (NetworkManager net, S35PacketUpdateTileEntity packet)
|
||||
{
|
||||
func_145839_a(packet.func_148857_g());
|
||||
field_145850_b.func_147479_m(field_145851_c, field_145848_d, field_145849_e);
|
||||
readFromNBT(packet.func_148857_g());
|
||||
worldObj.func_147479_m(xCoord, yCoord, zCoord);
|
||||
}
|
||||
}
|
||||
@@ -51,7 +51,7 @@ public class AdaptiveSmelteryLogic extends AdaptiveInventoryLogic implements IAc
|
||||
if (tick % 4 == 0)
|
||||
smeltery.heatItems();
|
||||
|
||||
if (!field_145850_b.isRemote)
|
||||
if (!worldObj.isRemote)
|
||||
{
|
||||
if (tick % 20 == 0)
|
||||
{
|
||||
@@ -113,9 +113,9 @@ public class AdaptiveSmelteryLogic extends AdaptiveInventoryLogic implements IAc
|
||||
/* Structure */
|
||||
|
||||
@Override
|
||||
public void func_145834_a (World world)
|
||||
public void setWorldObj (World world)
|
||||
{
|
||||
super.func_145834_a(world);
|
||||
super.setWorldObj(world);
|
||||
structure.setWorld(world);
|
||||
smeltery.setWorld(world);
|
||||
}
|
||||
@@ -123,7 +123,7 @@ public class AdaptiveSmelteryLogic extends AdaptiveInventoryLogic implements IAc
|
||||
@Override
|
||||
public void notifyChange (IServantLogic servant, int x, int y, int z)
|
||||
{
|
||||
if (!field_145850_b.isRemote)
|
||||
if (!worldObj.isRemote)
|
||||
{
|
||||
//System.out.println("Notifying of change from "+new CoordTuple(x, y, z));
|
||||
recheckStructure = true;
|
||||
@@ -146,7 +146,7 @@ public class AdaptiveSmelteryLogic extends AdaptiveInventoryLogic implements IAc
|
||||
smeltery.adjustSize(structure.getAirSize(), true);
|
||||
multitank.setCapacity(structure.getAirSize() * (TConstruct.ingotLiquidValue * 18));
|
||||
smeltery.setActiveLavaTank(structure.lavaTanks.get(0));
|
||||
field_145850_b.func_147471_g(field_145851_c, field_145848_d, field_145849_e);
|
||||
worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -271,7 +271,7 @@ public class AdaptiveSmelteryLogic extends AdaptiveInventoryLogic implements IAc
|
||||
CoordTuple air = structure.getAirByIndex(slot);
|
||||
if (air != null)
|
||||
{
|
||||
TileEntity te = field_145850_b.func_147438_o(air.x, air.y, air.z);
|
||||
TileEntity te = worldObj.getTileEntity(air.x, air.y, air.z);
|
||||
if (te != null && te instanceof TankAirLogic)
|
||||
{
|
||||
((TankAirLogic) te).setInventorySlotContents(0, itemstack);
|
||||
@@ -393,7 +393,7 @@ public class AdaptiveSmelteryLogic extends AdaptiveInventoryLogic implements IAc
|
||||
{
|
||||
Map.Entry pairs = (Map.Entry) iter.next();
|
||||
CoordTuple coord = (CoordTuple) pairs.getKey();
|
||||
TileEntity te = field_145850_b.func_147438_o(coord.x, coord.y, coord.z);
|
||||
TileEntity te = worldObj.getTileEntity(coord.x, coord.y, coord.z);
|
||||
if (te instanceof TankAirLogic)
|
||||
{
|
||||
((TankAirLogic) te).overrideFluids(((LiquidDataInstance) pairs.getValue()).fluids);
|
||||
@@ -406,7 +406,7 @@ public class AdaptiveSmelteryLogic extends AdaptiveInventoryLogic implements IAc
|
||||
public void updateAir ()
|
||||
{
|
||||
for (CoordTuple loc : structure.airCoords)
|
||||
field_145850_b.func_147471_g(loc.x, loc.y, loc.z);
|
||||
worldObj.markBlockForUpdate(loc.x, loc.y, loc.z);
|
||||
}
|
||||
|
||||
class LiquidData
|
||||
@@ -513,9 +513,9 @@ public class AdaptiveSmelteryLogic extends AdaptiveInventoryLogic implements IAc
|
||||
/* NBT */
|
||||
|
||||
@Override
|
||||
public void func_145839_a (NBTTagCompound tags)
|
||||
public void readFromNBT (NBTTagCompound tags)
|
||||
{
|
||||
super.func_145839_a(tags);
|
||||
super.readFromNBT(tags);
|
||||
readNetworkNBT(tags);
|
||||
|
||||
structure.readFromNBT(tags);
|
||||
@@ -535,9 +535,9 @@ public class AdaptiveSmelteryLogic extends AdaptiveInventoryLogic implements IAc
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_145841_b (NBTTagCompound tags)
|
||||
public void writeToNBT (NBTTagCompound tags)
|
||||
{
|
||||
super.func_145841_b(tags);
|
||||
super.writeToNBT(tags);
|
||||
writeNetworkNBT(tags);
|
||||
|
||||
structure.writeToNBT(tags);
|
||||
@@ -560,26 +560,26 @@ public class AdaptiveSmelteryLogic extends AdaptiveInventoryLogic implements IAc
|
||||
public void onDataPacket (NetworkManager net, S35PacketUpdateTileEntity packet)
|
||||
{
|
||||
readNetworkNBT(packet.func_148857_g());
|
||||
field_145850_b.func_147479_m(field_145851_c, field_145848_d, field_145849_e);
|
||||
worldObj.func_147479_m(xCoord, yCoord, zCoord);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Packet func_145844_m ()
|
||||
public Packet getDescriptionPacket ()
|
||||
{
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
writeNetworkNBT(tag);
|
||||
return new S35PacketUpdateTileEntity(field_145851_c, field_145848_d, field_145849_e, 1, tag);
|
||||
return new S35PacketUpdateTileEntity(xCoord, yCoord, zCoord, 1, tag);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String func_145825_b ()
|
||||
public String getInventoryName ()
|
||||
{
|
||||
// TODO Auto-generated method stub
|
||||
return getDefaultName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_145818_k_ ()
|
||||
public boolean hasCustomInventoryName ()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -135,7 +135,7 @@ public class CastingBasinLogic extends InventoryLogic implements IFluidTank, IFl
|
||||
castingDelay = recipe.coolTime;
|
||||
}
|
||||
renderOffset = copyLiquid.amount;
|
||||
field_145850_b.func_147479_m(field_145851_c, field_145848_d, field_145849_e);
|
||||
worldObj.func_147479_m(xCoord, yCoord, zCoord);
|
||||
this.liquid = copyLiquid;
|
||||
needsUpdate = true;
|
||||
}
|
||||
@@ -157,7 +157,7 @@ public class CastingBasinLogic extends InventoryLogic implements IFluidTank, IFl
|
||||
renderOffset = roomInTank;
|
||||
castingDelay = TConstruct.basinCasting.getCastingDelay(this.liquid, inventory[0]);
|
||||
this.liquid.amount = this.capacity;
|
||||
field_145850_b.func_147479_m(field_145851_c, field_145848_d, field_145849_e);
|
||||
worldObj.func_147479_m(xCoord, yCoord, zCoord);
|
||||
needsUpdate = true;
|
||||
}
|
||||
return roomInTank;
|
||||
@@ -168,7 +168,7 @@ public class CastingBasinLogic extends InventoryLogic implements IFluidTank, IFl
|
||||
if (doFill)
|
||||
{
|
||||
this.liquid.amount += resource.amount;
|
||||
field_145850_b.func_147479_m(field_145851_c, field_145848_d, field_145849_e);
|
||||
worldObj.func_147479_m(xCoord, yCoord, zCoord);
|
||||
needsUpdate = true;
|
||||
}
|
||||
return resource.amount;
|
||||
@@ -185,14 +185,14 @@ public class CastingBasinLogic extends InventoryLogic implements IFluidTank, IFl
|
||||
public void onInventoryChanged () //Isn't actually called?
|
||||
{
|
||||
super.onInventoryChanged();
|
||||
field_145850_b.func_147479_m(field_145851_c, field_145848_d, field_145849_e);
|
||||
worldObj.func_147479_m(xCoord, yCoord, zCoord);
|
||||
needsUpdate = true;
|
||||
}
|
||||
|
||||
public ItemStack decrStackSize (int slot, int quantity)
|
||||
{
|
||||
ItemStack stack = super.decrStackSize(slot, quantity);
|
||||
field_145850_b.func_147479_m(field_145851_c, field_145848_d, field_145849_e);
|
||||
worldObj.func_147479_m(xCoord, yCoord, zCoord);
|
||||
return stack;
|
||||
}
|
||||
|
||||
@@ -221,7 +221,7 @@ public class CastingBasinLogic extends InventoryLogic implements IFluidTank, IFl
|
||||
liquid = null;
|
||||
|
||||
if (doDrain)
|
||||
FluidEvent.fireEvent(new FluidEvent.FluidDrainingEvent(drained, this.field_145850_b, this.field_145851_c, this.field_145848_d, this.field_145849_e, this));
|
||||
FluidEvent.fireEvent(new FluidEvent.FluidDrainingEvent(drained, this.worldObj, this.xCoord, this.yCoord, this.zCoord, this));
|
||||
|
||||
return drained;
|
||||
}
|
||||
@@ -292,7 +292,7 @@ public class CastingBasinLogic extends InventoryLogic implements IFluidTank, IFl
|
||||
|
||||
/* Updating */
|
||||
@Override
|
||||
public void func_145845_h ()
|
||||
public void updateEntity ()
|
||||
{
|
||||
if (castingDelay > 0)
|
||||
{
|
||||
@@ -304,7 +304,7 @@ public class CastingBasinLogic extends InventoryLogic implements IFluidTank, IFl
|
||||
if (renderOffset > 0)
|
||||
{
|
||||
renderOffset -= 6;
|
||||
field_145850_b.func_147479_m(field_145851_c, field_145848_d, field_145849_e);
|
||||
worldObj.func_147479_m(xCoord, yCoord, zCoord);
|
||||
}
|
||||
|
||||
tick++;
|
||||
@@ -312,7 +312,7 @@ public class CastingBasinLogic extends InventoryLogic implements IFluidTank, IFl
|
||||
{
|
||||
tick = 0;
|
||||
if (needsUpdate)
|
||||
field_145850_b.func_147471_g(field_145851_c, field_145848_d, field_145849_e);
|
||||
worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -325,16 +325,16 @@ public class CastingBasinLogic extends InventoryLogic implements IFluidTank, IFl
|
||||
if (recipe.consumeCast)
|
||||
inventory[0] = null;
|
||||
liquid = null;
|
||||
field_145850_b.func_147471_g(field_145851_c, field_145848_d, field_145849_e);
|
||||
worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
|
||||
}
|
||||
}
|
||||
|
||||
/* NBT */
|
||||
|
||||
@Override
|
||||
public void func_145839_a (NBTTagCompound tags)
|
||||
public void readFromNBT (NBTTagCompound tags)
|
||||
{
|
||||
super.func_145839_a(tags);
|
||||
super.readFromNBT(tags);
|
||||
readCustomNBT(tags);
|
||||
}
|
||||
|
||||
@@ -357,9 +357,9 @@ public class CastingBasinLogic extends InventoryLogic implements IFluidTank, IFl
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_145841_b (NBTTagCompound tags)
|
||||
public void writeToNBT (NBTTagCompound tags)
|
||||
{
|
||||
super.func_145841_b(tags);
|
||||
super.writeToNBT(tags);
|
||||
writeCustomNBT(tags);
|
||||
}
|
||||
|
||||
@@ -379,18 +379,18 @@ public class CastingBasinLogic extends InventoryLogic implements IFluidTank, IFl
|
||||
|
||||
/* Packets */
|
||||
@Override
|
||||
public Packet func_145844_m ()
|
||||
public Packet getDescriptionPacket ()
|
||||
{
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
func_145841_b(tag);
|
||||
return new S35PacketUpdateTileEntity(field_145851_c, field_145848_d, field_145849_e, 1, tag);
|
||||
writeToNBT(tag);
|
||||
return new S35PacketUpdateTileEntity(xCoord, yCoord, zCoord, 1, tag);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDataPacket (NetworkManager net, S35PacketUpdateTileEntity packet)
|
||||
{
|
||||
func_145839_a(packet.func_148857_g());
|
||||
field_145850_b.func_147479_m(field_145851_c, field_145848_d, field_145849_e);
|
||||
readFromNBT(packet.func_148857_g());
|
||||
worldObj.func_147479_m(xCoord, yCoord, zCoord);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -421,13 +421,13 @@ public class CastingBasinLogic extends InventoryLogic implements IFluidTank, IFl
|
||||
}
|
||||
|
||||
@Override
|
||||
public String func_145825_b ()
|
||||
public String getInventoryName ()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_145818_k_ ()
|
||||
public boolean hasCustomInventoryName ()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -33,18 +33,18 @@ public class CastingChannelLogic extends TileEntity implements IFluidTank, IFlui
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_145845_h ()
|
||||
public void updateEntity ()
|
||||
{
|
||||
if (this.field_145850_b.isRemote)
|
||||
if (this.worldObj.isRemote)
|
||||
return;
|
||||
ticks++;
|
||||
ticksLPReset++;
|
||||
if (!field_145850_b.isRemote)
|
||||
if (!worldObj.isRemote)
|
||||
{
|
||||
if (this.pullingLiquids)
|
||||
pullLiquids();
|
||||
}
|
||||
//this.field_145850_b.func_147471_g(this.field_145851_c, this.field_145848_d, this.field_145849_e);
|
||||
//this.worldObj.markBlockForUpdate(this.xCoord, this.yCoord, this.zCoord);
|
||||
if (ticks == 20)
|
||||
{
|
||||
if (recentlyFilledDelay != 0)
|
||||
@@ -62,8 +62,8 @@ public class CastingChannelLogic extends TileEntity implements IFluidTank, IFlui
|
||||
|
||||
void pullLiquids ()
|
||||
{
|
||||
if (pullLiquid(field_145851_c + 1, field_145848_d, field_145849_e, ForgeDirection.EAST) || pullLiquid(field_145851_c - 1, field_145848_d, field_145849_e, ForgeDirection.WEST) || pullLiquid(field_145851_c, field_145848_d, field_145849_e + 1, ForgeDirection.NORTH)
|
||||
|| pullLiquid(field_145851_c, field_145848_d, field_145849_e - 1, ForgeDirection.SOUTH))
|
||||
if (pullLiquid(xCoord + 1, yCoord, zCoord, ForgeDirection.EAST) || pullLiquid(xCoord - 1, yCoord, zCoord, ForgeDirection.WEST) || pullLiquid(xCoord, yCoord, zCoord + 1, ForgeDirection.NORTH)
|
||||
|| pullLiquid(xCoord, yCoord, zCoord - 1, ForgeDirection.SOUTH))
|
||||
{
|
||||
|
||||
}
|
||||
@@ -75,7 +75,7 @@ public class CastingChannelLogic extends TileEntity implements IFluidTank, IFlui
|
||||
|
||||
boolean pullLiquid (int x, int y, int z, ForgeDirection direction)
|
||||
{
|
||||
TileEntity tank = field_145850_b.func_147438_o(x, y, z);
|
||||
TileEntity tank = worldObj.getTileEntity(x, y, z);
|
||||
if (tank instanceof IFluidHandler && !(tank instanceof CastingChannelLogic))
|
||||
{
|
||||
FluidStack templiquid = ((IFluidHandler) tank).drain(direction, 3, false);
|
||||
@@ -283,7 +283,7 @@ public class CastingChannelLogic extends TileEntity implements IFluidTank, IFlui
|
||||
@SideOnly(Side.CLIENT)
|
||||
public float tankBelow ()
|
||||
{
|
||||
TileEntity te = this.field_145850_b.func_147438_o(this.field_145851_c, this.field_145848_d - 1, this.field_145849_e);
|
||||
TileEntity te = this.worldObj.getTileEntity(this.xCoord, this.yCoord - 1, this.zCoord);
|
||||
if (te instanceof CastingChannelLogic)
|
||||
return -0.5f;
|
||||
if (te instanceof LavaTankLogic)
|
||||
@@ -303,15 +303,15 @@ public class CastingChannelLogic extends TileEntity implements IFluidTank, IFlui
|
||||
switch (dir)
|
||||
{
|
||||
case DOWN:
|
||||
return (this.field_145850_b.func_147438_o(this.field_145851_c, this.field_145848_d - 1, this.field_145849_e) instanceof CastingChannelLogic);
|
||||
return (this.worldObj.getTileEntity(this.xCoord, this.yCoord - 1, this.zCoord) instanceof CastingChannelLogic);
|
||||
case NORTH:
|
||||
return (this.field_145850_b.func_147438_o(this.field_145851_c, this.field_145848_d, this.field_145849_e - 1) instanceof CastingChannelLogic);
|
||||
return (this.worldObj.getTileEntity(this.xCoord, this.yCoord, this.zCoord - 1) instanceof CastingChannelLogic);
|
||||
case SOUTH:
|
||||
return (this.field_145850_b.func_147438_o(this.field_145851_c, this.field_145848_d, this.field_145849_e + 1) instanceof CastingChannelLogic);
|
||||
return (this.worldObj.getTileEntity(this.xCoord, this.yCoord, this.zCoord + 1) instanceof CastingChannelLogic);
|
||||
case WEST:
|
||||
return (this.field_145850_b.func_147438_o(this.field_145851_c - 1, this.field_145848_d, this.field_145849_e) instanceof CastingChannelLogic);
|
||||
return (this.worldObj.getTileEntity(this.xCoord - 1, this.yCoord, this.zCoord) instanceof CastingChannelLogic);
|
||||
case EAST:
|
||||
return (this.field_145850_b.func_147438_o(this.field_145851_c + 1, this.field_145848_d, this.field_145849_e) instanceof CastingChannelLogic);
|
||||
return (this.worldObj.getTileEntity(this.xCoord + 1, this.yCoord, this.zCoord) instanceof CastingChannelLogic);
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
@@ -322,15 +322,15 @@ public class CastingChannelLogic extends TileEntity implements IFluidTank, IFlui
|
||||
switch (dir)
|
||||
{
|
||||
case DOWN:
|
||||
return (this.field_145850_b.func_147438_o(this.field_145851_c, this.field_145848_d - 1, this.field_145849_e) instanceof IFluidHandler);
|
||||
return (this.worldObj.getTileEntity(this.xCoord, this.yCoord - 1, this.zCoord) instanceof IFluidHandler);
|
||||
case NORTH:
|
||||
return (this.field_145850_b.func_147438_o(this.field_145851_c, this.field_145848_d, this.field_145849_e - 1) instanceof IFluidHandler);
|
||||
return (this.worldObj.getTileEntity(this.xCoord, this.yCoord, this.zCoord - 1) instanceof IFluidHandler);
|
||||
case SOUTH:
|
||||
return (this.field_145850_b.func_147438_o(this.field_145851_c, this.field_145848_d, this.field_145849_e + 1) instanceof IFluidHandler);
|
||||
return (this.worldObj.getTileEntity(this.xCoord, this.yCoord, this.zCoord + 1) instanceof IFluidHandler);
|
||||
case WEST:
|
||||
return (this.field_145850_b.func_147438_o(this.field_145851_c - 1, this.field_145848_d, this.field_145849_e) instanceof IFluidHandler);
|
||||
return (this.worldObj.getTileEntity(this.xCoord - 1, this.yCoord, this.zCoord) instanceof IFluidHandler);
|
||||
case EAST:
|
||||
return (this.field_145850_b.func_147438_o(this.field_145851_c + 1, this.field_145848_d, this.field_145849_e) instanceof IFluidHandler);
|
||||
return (this.worldObj.getTileEntity(this.xCoord + 1, this.yCoord, this.zCoord) instanceof IFluidHandler);
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
@@ -339,11 +339,11 @@ public class CastingChannelLogic extends TileEntity implements IFluidTank, IFlui
|
||||
private HashMap getOutputs ()
|
||||
{
|
||||
HashMap map = new HashMap();
|
||||
TileEntity tankXplus = this.field_145850_b.func_147438_o(this.field_145851_c + 1, this.field_145848_d, this.field_145849_e);
|
||||
TileEntity tankXminus = this.field_145850_b.func_147438_o(this.field_145851_c - 1, this.field_145848_d, this.field_145849_e);
|
||||
TileEntity tankZplus = this.field_145850_b.func_147438_o(this.field_145851_c, this.field_145848_d, this.field_145849_e + 1);
|
||||
TileEntity tankZminus = this.field_145850_b.func_147438_o(this.field_145851_c, this.field_145848_d, this.field_145849_e - 1);
|
||||
TileEntity tankYminus = this.field_145850_b.func_147438_o(this.field_145851_c, this.field_145848_d - 1, this.field_145849_e);
|
||||
TileEntity tankXplus = this.worldObj.getTileEntity(this.xCoord + 1, this.yCoord, this.zCoord);
|
||||
TileEntity tankXminus = this.worldObj.getTileEntity(this.xCoord - 1, this.yCoord, this.zCoord);
|
||||
TileEntity tankZplus = this.worldObj.getTileEntity(this.xCoord, this.yCoord, this.zCoord + 1);
|
||||
TileEntity tankZminus = this.worldObj.getTileEntity(this.xCoord, this.yCoord, this.zCoord - 1);
|
||||
TileEntity tankYminus = this.worldObj.getTileEntity(this.xCoord, this.yCoord - 1, this.zCoord);
|
||||
|
||||
if (this.pullingLiquids)
|
||||
{
|
||||
@@ -412,7 +412,7 @@ public class CastingChannelLogic extends TileEntity implements IFluidTank, IFlui
|
||||
|
||||
if (doFill)
|
||||
{
|
||||
this.field_145850_b.func_147471_g(this.field_145851_c, this.field_145848_d, this.field_145849_e);
|
||||
this.worldObj.markBlockForUpdate(this.xCoord, this.yCoord, this.zCoord);
|
||||
this.liquid = transfered;
|
||||
}
|
||||
recentlyFilledDelay = 2;
|
||||
@@ -429,7 +429,7 @@ public class CastingChannelLogic extends TileEntity implements IFluidTank, IFlui
|
||||
if ((doFill) && (spaceInTank > 0))
|
||||
{
|
||||
this.liquid.amount = this.fillMax;
|
||||
this.field_145850_b.func_147471_g(this.field_145851_c, this.field_145848_d, this.field_145849_e);
|
||||
this.worldObj.markBlockForUpdate(this.xCoord, this.yCoord, this.zCoord);
|
||||
}
|
||||
return spaceInTank;
|
||||
}
|
||||
@@ -437,7 +437,7 @@ public class CastingChannelLogic extends TileEntity implements IFluidTank, IFlui
|
||||
if (doFill)
|
||||
{
|
||||
this.liquid.amount += stack.amount;
|
||||
this.field_145850_b.func_147471_g(this.field_145851_c, this.field_145848_d, this.field_145849_e);
|
||||
this.worldObj.markBlockForUpdate(this.xCoord, this.yCoord, this.zCoord);
|
||||
}
|
||||
return stack.amount;
|
||||
}
|
||||
@@ -484,8 +484,8 @@ public class CastingChannelLogic extends TileEntity implements IFluidTank, IFlui
|
||||
}
|
||||
if (doDrain)
|
||||
{
|
||||
this.field_145850_b.func_147471_g(this.field_145851_c, this.field_145848_d, this.field_145849_e);
|
||||
FluidEvent.fireEvent(new FluidEvent.FluidDrainingEvent(drained, this.field_145850_b, this.field_145851_c, this.field_145848_d, this.field_145849_e, this));
|
||||
this.worldObj.markBlockForUpdate(this.xCoord, this.yCoord, this.zCoord);
|
||||
FluidEvent.fireEvent(new FluidEvent.FluidDrainingEvent(drained, this.worldObj, this.xCoord, this.yCoord, this.zCoord, this));
|
||||
}
|
||||
return drained;
|
||||
}
|
||||
@@ -514,9 +514,9 @@ public class CastingChannelLogic extends TileEntity implements IFluidTank, IFlui
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_145839_a (NBTTagCompound tags)
|
||||
public void readFromNBT (NBTTagCompound tags)
|
||||
{
|
||||
super.func_145839_a(tags);
|
||||
super.readFromNBT(tags);
|
||||
readCustomNBT(tags);
|
||||
pullingLiquids = tags.getBoolean("PullingLiquids");
|
||||
}
|
||||
@@ -534,9 +534,9 @@ public class CastingChannelLogic extends TileEntity implements IFluidTank, IFlui
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_145841_b (NBTTagCompound tags)
|
||||
public void writeToNBT (NBTTagCompound tags)
|
||||
{
|
||||
super.func_145841_b(tags);
|
||||
super.writeToNBT(tags);
|
||||
writeCustomNBT(tags);
|
||||
tags.setBoolean("PullingLiquids", pullingLiquids);
|
||||
}
|
||||
@@ -555,18 +555,18 @@ public class CastingChannelLogic extends TileEntity implements IFluidTank, IFlui
|
||||
}
|
||||
|
||||
@Override
|
||||
public Packet func_145844_m ()
|
||||
public Packet getDescriptionPacket ()
|
||||
{
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
writeCustomNBT(tag);
|
||||
return new S35PacketUpdateTileEntity(this.field_145851_c, this.field_145848_d, this.field_145849_e, 1, tag);
|
||||
return new S35PacketUpdateTileEntity(this.xCoord, this.yCoord, this.zCoord, 1, tag);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDataPacket (NetworkManager net, S35PacketUpdateTileEntity packet)
|
||||
{
|
||||
readCustomNBT(packet.func_148857_g());
|
||||
this.field_145850_b.func_147479_m(this.field_145851_c, this.field_145848_d, this.field_145849_e);
|
||||
this.worldObj.func_147479_m(this.xCoord, this.yCoord, this.zCoord);
|
||||
}
|
||||
|
||||
public int convertFDToInt (ForgeDirection dir)
|
||||
|
||||
@@ -135,7 +135,7 @@ public class CastingTableLogic extends InventoryLogic implements IFluidTank, IFl
|
||||
castingDelay = recipe.coolTime;
|
||||
}
|
||||
renderOffset = copyLiquid.amount;
|
||||
getWorld().func_147479_m(field_145851_c, field_145848_d, field_145849_e);
|
||||
getWorld().func_147479_m(xCoord, yCoord, zCoord);
|
||||
this.liquid = copyLiquid;
|
||||
needsUpdate = true;
|
||||
}
|
||||
@@ -157,7 +157,7 @@ public class CastingTableLogic extends InventoryLogic implements IFluidTank, IFl
|
||||
renderOffset = roomInTank;
|
||||
castingDelay = TConstruct.tableCasting.getCastingDelay(this.liquid, inventory[0]);
|
||||
this.liquid.amount = this.capacity;
|
||||
getWorld().func_147479_m(field_145851_c, field_145848_d, field_145849_e);
|
||||
getWorld().func_147479_m(xCoord, yCoord, zCoord);
|
||||
needsUpdate = true;
|
||||
}
|
||||
return roomInTank;
|
||||
@@ -168,7 +168,7 @@ public class CastingTableLogic extends InventoryLogic implements IFluidTank, IFl
|
||||
if (doFill)
|
||||
{
|
||||
this.liquid.amount += resource.amount;
|
||||
getWorld().func_147479_m(field_145851_c, field_145848_d, field_145849_e);
|
||||
getWorld().func_147479_m(xCoord, yCoord, zCoord);
|
||||
needsUpdate = true;
|
||||
}
|
||||
return resource.amount;
|
||||
@@ -185,14 +185,14 @@ public class CastingTableLogic extends InventoryLogic implements IFluidTank, IFl
|
||||
public void onInventoryChanged () //Isn't actually called?
|
||||
{
|
||||
super.onInventoryChanged();
|
||||
getWorld().func_147479_m(field_145851_c, field_145848_d, field_145849_e);
|
||||
getWorld().func_147479_m(xCoord, yCoord, zCoord);
|
||||
needsUpdate = true;
|
||||
}
|
||||
|
||||
public ItemStack decrStackSize (int slot, int quantity)
|
||||
{
|
||||
ItemStack stack = super.decrStackSize(slot, quantity);
|
||||
getWorld().func_147479_m(field_145851_c, field_145848_d, field_145849_e);
|
||||
getWorld().func_147479_m(xCoord, yCoord, zCoord);
|
||||
return stack;
|
||||
}
|
||||
|
||||
@@ -221,7 +221,7 @@ public class CastingTableLogic extends InventoryLogic implements IFluidTank, IFl
|
||||
liquid = null;
|
||||
|
||||
if (doDrain)
|
||||
FluidEvent.fireEvent(new FluidEvent.FluidDrainingEvent(drained, this.getWorld(), this.field_145851_c, this.field_145848_d, this.field_145849_e, this));
|
||||
FluidEvent.fireEvent(new FluidEvent.FluidDrainingEvent(drained, this.getWorld(), this.xCoord, this.yCoord, this.zCoord, this));
|
||||
|
||||
return drained;
|
||||
}
|
||||
@@ -292,7 +292,7 @@ public class CastingTableLogic extends InventoryLogic implements IFluidTank, IFl
|
||||
|
||||
/* Updating */
|
||||
@Override
|
||||
public void func_145845_h ()
|
||||
public void updateEntity ()
|
||||
{
|
||||
if (castingDelay > 0)
|
||||
{
|
||||
@@ -304,7 +304,7 @@ public class CastingTableLogic extends InventoryLogic implements IFluidTank, IFl
|
||||
if (renderOffset > 0)
|
||||
{
|
||||
renderOffset -= 6;
|
||||
getWorld().func_147479_m(field_145851_c, field_145848_d, field_145849_e);
|
||||
getWorld().func_147479_m(xCoord, yCoord, zCoord);
|
||||
}
|
||||
|
||||
tick++;
|
||||
@@ -312,7 +312,7 @@ public class CastingTableLogic extends InventoryLogic implements IFluidTank, IFl
|
||||
{
|
||||
tick = 0;
|
||||
if (needsUpdate)
|
||||
getWorld().func_147471_g(field_145851_c, field_145848_d, field_145849_e);
|
||||
getWorld().markBlockForUpdate(xCoord, yCoord, zCoord);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -325,16 +325,16 @@ public class CastingTableLogic extends InventoryLogic implements IFluidTank, IFl
|
||||
if (recipe.consumeCast)
|
||||
inventory[0] = null;
|
||||
liquid = null;
|
||||
getWorld().func_147471_g(field_145851_c, field_145848_d, field_145849_e);
|
||||
getWorld().markBlockForUpdate(xCoord, yCoord, zCoord);
|
||||
}
|
||||
}
|
||||
|
||||
/* NBT */
|
||||
|
||||
@Override
|
||||
public void func_145839_a (NBTTagCompound tags)
|
||||
public void readFromNBT (NBTTagCompound tags)
|
||||
{
|
||||
super.func_145839_a(tags);
|
||||
super.readFromNBT(tags);
|
||||
readCustomNBT(tags);
|
||||
}
|
||||
|
||||
@@ -355,9 +355,9 @@ public class CastingTableLogic extends InventoryLogic implements IFluidTank, IFl
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_145841_b (NBTTagCompound tags)
|
||||
public void writeToNBT (NBTTagCompound tags)
|
||||
{
|
||||
super.func_145841_b(tags);
|
||||
super.writeToNBT(tags);
|
||||
writeCustomNBT(tags);
|
||||
}
|
||||
|
||||
@@ -377,18 +377,18 @@ public class CastingTableLogic extends InventoryLogic implements IFluidTank, IFl
|
||||
|
||||
/* Packets */
|
||||
@Override
|
||||
public Packet func_145844_m ()
|
||||
public Packet getDescriptionPacket ()
|
||||
{
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
func_145839_a(tag);
|
||||
return new S35PacketUpdateTileEntity(field_145851_c, field_145848_d, field_145849_e, 1, tag);
|
||||
readFromNBT(tag);
|
||||
return new S35PacketUpdateTileEntity(xCoord, yCoord, zCoord, 1, tag);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDataPacket (NetworkManager net, S35PacketUpdateTileEntity packet)
|
||||
{
|
||||
func_145839_a(packet.func_148857_g());
|
||||
getWorld().func_147479_m(field_145851_c, field_145848_d, field_145849_e);
|
||||
readFromNBT(packet.func_148857_g());
|
||||
getWorld().func_147479_m(xCoord, yCoord, zCoord);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -419,13 +419,13 @@ public class CastingTableLogic extends InventoryLogic implements IFluidTank, IFl
|
||||
}
|
||||
|
||||
@Override
|
||||
public String func_145825_b ()
|
||||
public String getInventoryName ()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_145818_k_ ()
|
||||
public boolean hasCustomInventoryName ()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ public class CraftingStationLogic extends InventoryLogic implements ISidedInvent
|
||||
{
|
||||
for (int zPos = z - 1; zPos <= z + 1; zPos++)
|
||||
{
|
||||
TileEntity tile = world.func_147438_o(xPos, yPos, zPos);
|
||||
TileEntity tile = world.getTileEntity(xPos, yPos, zPos);
|
||||
if (chest == null && tile instanceof TileEntityChest)
|
||||
{
|
||||
chest = new WeakReference(tile);
|
||||
@@ -68,7 +68,7 @@ public class CraftingStationLogic extends InventoryLogic implements ISidedInvent
|
||||
|
||||
void checkForChest (World world, int x, int y, int z)
|
||||
{
|
||||
TileEntity tile = world.func_147438_o(x, y, z);
|
||||
TileEntity tile = world.getTileEntity(x, y, z);
|
||||
if (tile instanceof TileEntityChest)
|
||||
doubleChest = new WeakReference(tile);
|
||||
}
|
||||
@@ -105,13 +105,13 @@ public class CraftingStationLogic extends InventoryLogic implements ISidedInvent
|
||||
}
|
||||
|
||||
@Override
|
||||
public String func_145825_b ()
|
||||
public String getInventoryName ()
|
||||
{
|
||||
return getDefaultName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_145818_k_ ()
|
||||
public boolean hasCustomInventoryName ()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -35,9 +35,9 @@ public class DryingRackLogic extends InventoryLogic
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_145845_h ()
|
||||
public void updateEntity ()
|
||||
{
|
||||
if (!field_145850_b.isRemote && maxTime > 0 && currentTime < maxTime)
|
||||
if (!worldObj.isRemote && maxTime > 0 && currentTime < maxTime)
|
||||
{
|
||||
currentTime++;
|
||||
if (currentTime >= maxTime)
|
||||
@@ -71,11 +71,11 @@ public class DryingRackLogic extends InventoryLogic
|
||||
maxTime = DryingRackRecipes.getDryingTime(inventory[0]);
|
||||
else
|
||||
maxTime = 0;
|
||||
field_145850_b.func_147471_g(field_145851_c, field_145848_d, field_145849_e);
|
||||
worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_145839_a (NBTTagCompound tags)
|
||||
public void readFromNBT (NBTTagCompound tags)
|
||||
{
|
||||
currentTime = tags.getInteger("Time");
|
||||
maxTime = tags.getInteger("MaxTime");
|
||||
@@ -83,7 +83,7 @@ public class DryingRackLogic extends InventoryLogic
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_145841_b (NBTTagCompound tags)
|
||||
public void writeToNBT (NBTTagCompound tags)
|
||||
{
|
||||
tags.setInteger("Time", currentTime);
|
||||
tags.setInteger("MaxTime", maxTime);
|
||||
@@ -92,45 +92,45 @@ public class DryingRackLogic extends InventoryLogic
|
||||
|
||||
public void readCustomNBT (NBTTagCompound tags)
|
||||
{
|
||||
super.func_145839_a(tags);
|
||||
super.readFromNBT(tags);
|
||||
}
|
||||
|
||||
public void writeCustomNBT (NBTTagCompound tags)
|
||||
{
|
||||
super.func_145841_b(tags);
|
||||
super.writeToNBT(tags);
|
||||
}
|
||||
|
||||
/* Packets */
|
||||
@Override
|
||||
public Packet func_145844_m ()
|
||||
public Packet getDescriptionPacket ()
|
||||
{
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
writeCustomNBT(tag);
|
||||
return new S35PacketUpdateTileEntity(field_145851_c, field_145848_d, field_145849_e, 1, tag);
|
||||
return new S35PacketUpdateTileEntity(xCoord, yCoord, zCoord, 1, tag);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDataPacket (NetworkManager net, S35PacketUpdateTileEntity packet)
|
||||
{
|
||||
readCustomNBT(packet.func_148857_g());
|
||||
field_145850_b.func_147479_m(field_145851_c, field_145848_d, field_145849_e);
|
||||
worldObj.func_147479_m(xCoord, yCoord, zCoord);
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public AxisAlignedBB getRenderBoundingBox ()
|
||||
{
|
||||
AxisAlignedBB cbb = AxisAlignedBB.getAABBPool().getAABB(field_145851_c, field_145848_d - 1, field_145849_e, field_145851_c + 1, field_145848_d + 1, field_145849_e + 1);
|
||||
AxisAlignedBB cbb = AxisAlignedBB.getAABBPool().getAABB(xCoord, yCoord - 1, zCoord, xCoord + 1, yCoord + 1, zCoord + 1);
|
||||
return cbb;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String func_145825_b ()
|
||||
public String getInventoryName ()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_145818_k_ ()
|
||||
public boolean hasCustomInventoryName ()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ public class FaucetLogic extends TileEntity implements IFacingLogic, IActiveLogi
|
||||
{
|
||||
if (liquid == null && active)
|
||||
{
|
||||
int x = field_145851_c, z = field_145849_e;
|
||||
int x = xCoord, z = zCoord;
|
||||
switch (getRenderDirection())
|
||||
{
|
||||
case 2:
|
||||
@@ -38,8 +38,8 @@ public class FaucetLogic extends TileEntity implements IFacingLogic, IActiveLogi
|
||||
break;
|
||||
}
|
||||
|
||||
TileEntity drainte = field_145850_b.func_147438_o(x, field_145848_d, z);
|
||||
TileEntity tankte = field_145850_b.func_147438_o(field_145851_c, field_145848_d - 1, field_145849_e);
|
||||
TileEntity drainte = worldObj.getTileEntity(x, yCoord, z);
|
||||
TileEntity tankte = worldObj.getTileEntity(xCoord, yCoord - 1, zCoord);
|
||||
|
||||
if (drainte != null && drainte instanceof IFluidHandler && tankte != null && tankte instanceof IFluidHandler)
|
||||
{
|
||||
@@ -51,7 +51,7 @@ public class FaucetLogic extends TileEntity implements IFacingLogic, IActiveLogi
|
||||
{
|
||||
liquid = ((IFluidHandler) drainte).drain(getForgeDirection(), drained, true);
|
||||
((IFluidHandler) tankte).fill(ForgeDirection.UP, liquid, true);
|
||||
field_145850_b.func_147471_g(field_145851_c, field_145848_d, field_145849_e);
|
||||
worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
|
||||
return true;
|
||||
}
|
||||
else
|
||||
@@ -66,7 +66,7 @@ public class FaucetLogic extends TileEntity implements IFacingLogic, IActiveLogi
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_145845_h ()
|
||||
public void updateEntity ()
|
||||
{
|
||||
if (liquid != null)
|
||||
{
|
||||
@@ -77,7 +77,7 @@ public class FaucetLogic extends TileEntity implements IFacingLogic, IActiveLogi
|
||||
if (!activateFaucet())
|
||||
{
|
||||
active = false;
|
||||
field_145850_b.func_147471_g(field_145851_c, field_145848_d, field_145849_e);
|
||||
worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -126,9 +126,9 @@ public class FaucetLogic extends TileEntity implements IFacingLogic, IActiveLogi
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_145839_a (NBTTagCompound tags)
|
||||
public void readFromNBT (NBTTagCompound tags)
|
||||
{
|
||||
super.func_145839_a(tags);
|
||||
super.readFromNBT(tags);
|
||||
readCustomNBT(tags);
|
||||
}
|
||||
|
||||
@@ -144,9 +144,9 @@ public class FaucetLogic extends TileEntity implements IFacingLogic, IActiveLogi
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_145841_b (NBTTagCompound tags)
|
||||
public void writeToNBT (NBTTagCompound tags)
|
||||
{
|
||||
super.func_145841_b(tags);
|
||||
super.writeToNBT(tags);
|
||||
writeCustomNBT(tags);
|
||||
}
|
||||
|
||||
@@ -164,18 +164,18 @@ public class FaucetLogic extends TileEntity implements IFacingLogic, IActiveLogi
|
||||
|
||||
/* Packets */
|
||||
@Override
|
||||
public Packet func_145844_m ()
|
||||
public Packet getDescriptionPacket ()
|
||||
{
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
writeCustomNBT(tag);
|
||||
return new S35PacketUpdateTileEntity(field_145851_c, field_145848_d, field_145849_e, 1, tag);
|
||||
return new S35PacketUpdateTileEntity(xCoord, yCoord, zCoord, 1, tag);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDataPacket (NetworkManager net, S35PacketUpdateTileEntity packet)
|
||||
{
|
||||
readCustomNBT(packet.func_148857_g());
|
||||
field_145850_b.func_147479_m(field_145851_c, field_145848_d, field_145849_e);
|
||||
worldObj.func_147479_m(xCoord, yCoord, zCoord);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -56,7 +56,7 @@ public class FrypanLogic extends EquipLogic implements IActiveLogic
|
||||
public void setActive (boolean flag)
|
||||
{
|
||||
active = flag;
|
||||
field_145850_b.func_147471_g(field_145851_c, field_145848_d, field_145849_e);
|
||||
worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
|
||||
}
|
||||
|
||||
/* Fuel gauge */
|
||||
@@ -213,7 +213,7 @@ public class FrypanLogic extends EquipLogic implements IActiveLogic
|
||||
|
||||
public ItemStack getResultFor (ItemStack stack)
|
||||
{
|
||||
ItemStack result = FurnaceRecipes.smelting().func_151395_a(stack);
|
||||
ItemStack result = FurnaceRecipes.smelting().getSmeltingResult(stack);
|
||||
if (result != null && result.getItem() instanceof ItemFood) //Only valid for food
|
||||
return result.copy();
|
||||
|
||||
@@ -244,14 +244,14 @@ public class FrypanLogic extends EquipLogic implements IActiveLogic
|
||||
return 2400;
|
||||
}
|
||||
|
||||
if (block.func_149688_o() == Material.field_151575_d)
|
||||
if (block.getMaterial() == Material.wood)
|
||||
{
|
||||
return 300;
|
||||
}
|
||||
}
|
||||
if (item instanceof ItemTool && ((ItemTool) item).getToolMaterialName().equals("WOOD"))
|
||||
return 200;
|
||||
if (item instanceof ItemSword && ((ItemSword) item).func_150932_j().equals("WOOD"))
|
||||
if (item instanceof ItemSword && ((ItemSword) item).getToolMaterialName().equals("WOOD"))
|
||||
return 200;
|
||||
if (item instanceof ItemHoe && ((ItemHoe) item).getMaterialName().equals("WOOD"))
|
||||
return 200;
|
||||
@@ -270,17 +270,17 @@ public class FrypanLogic extends EquipLogic implements IActiveLogic
|
||||
}
|
||||
|
||||
/* NBT */
|
||||
public void func_145839_a (NBTTagCompound tags)
|
||||
public void readFromNBT (NBTTagCompound tags)
|
||||
{
|
||||
super.func_145839_a(tags);
|
||||
super.readFromNBT(tags);
|
||||
active = tags.getBoolean("Active");
|
||||
fuel = tags.getInteger("Fuel");
|
||||
fuelGague = tags.getInteger("FuelGague");
|
||||
}
|
||||
|
||||
public void func_145841_b (NBTTagCompound tags)
|
||||
public void writeToNBT (NBTTagCompound tags)
|
||||
{
|
||||
super.func_145841_b(tags);
|
||||
super.writeToNBT(tags);
|
||||
tags.setBoolean("Active", active);
|
||||
tags.setInteger("Fuel", fuel);
|
||||
tags.setInteger("FuelGague", fuelGague);
|
||||
@@ -293,13 +293,13 @@ public class FrypanLogic extends EquipLogic implements IActiveLogic
|
||||
}
|
||||
|
||||
@Override
|
||||
public String func_145825_b ()
|
||||
public String getInventoryName ()
|
||||
{
|
||||
return getDefaultName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_145818_k_ ()
|
||||
public boolean hasCustomInventoryName ()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@ public class FurnaceLogic extends InventoryLogic implements IActiveLogic, IFacin
|
||||
public void setActive (boolean flag)
|
||||
{
|
||||
active = flag;
|
||||
field_145850_b.func_147471_g(field_145851_c, field_145848_d, field_145849_e);
|
||||
worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
|
||||
}
|
||||
|
||||
/* Fuel gauge */
|
||||
@@ -138,7 +138,7 @@ public class FurnaceLogic extends InventoryLogic implements IActiveLogic, IFacin
|
||||
{
|
||||
if (this.canSmelt())
|
||||
{
|
||||
ItemStack itemstack = FurnaceRecipes.smelting().func_151395_a(this.inventory[0]);
|
||||
ItemStack itemstack = FurnaceRecipes.smelting().getSmeltingResult(this.inventory[0]);
|
||||
|
||||
if (this.inventory[2] == null)
|
||||
{
|
||||
@@ -165,7 +165,7 @@ public class FurnaceLogic extends InventoryLogic implements IActiveLogic, IFacin
|
||||
return false;
|
||||
else
|
||||
{
|
||||
ItemStack itemstack = FurnaceRecipes.smelting().func_151395_a(this.inventory[0]);
|
||||
ItemStack itemstack = FurnaceRecipes.smelting().getSmeltingResult(this.inventory[0]);
|
||||
if (itemstack == null)
|
||||
return false;
|
||||
if (this.inventory[2] == null)
|
||||
@@ -184,7 +184,7 @@ public class FurnaceLogic extends InventoryLogic implements IActiveLogic, IFacin
|
||||
|
||||
public ItemStack getResultFor (ItemStack stack)
|
||||
{
|
||||
ItemStack result = FurnaceRecipes.smelting().func_151395_a(stack);
|
||||
ItemStack result = FurnaceRecipes.smelting().getSmeltingResult(stack);
|
||||
if (result != null) //Only valid for food
|
||||
return result.copy();
|
||||
|
||||
@@ -215,7 +215,7 @@ public class FurnaceLogic extends InventoryLogic implements IActiveLogic, IFacin
|
||||
return 1200;
|
||||
}
|
||||
|
||||
if (block.func_149688_o() == Material.field_151575_d)
|
||||
if (block.getMaterial() == Material.wood)
|
||||
{
|
||||
return 300;
|
||||
}
|
||||
@@ -228,7 +228,7 @@ public class FurnaceLogic extends InventoryLogic implements IActiveLogic, IFacin
|
||||
|
||||
if (item instanceof ItemTool && ((ItemTool) item).getToolMaterialName().equals("WOOD"))
|
||||
return 200;
|
||||
if (item instanceof ItemSword && ((ItemSword) item).func_150932_j().equals("WOOD"))
|
||||
if (item instanceof ItemSword && ((ItemSword) item).getToolMaterialName().equals("WOOD"))
|
||||
return 200;
|
||||
if (item instanceof ItemHoe && ((ItemHoe) item).getMaterialName().equals("WOOD"))
|
||||
return 200;
|
||||
@@ -247,18 +247,18 @@ public class FurnaceLogic extends InventoryLogic implements IActiveLogic, IFacin
|
||||
}
|
||||
|
||||
/* NBT */
|
||||
public void func_145839_a (NBTTagCompound tags)
|
||||
public void readFromNBT (NBTTagCompound tags)
|
||||
{
|
||||
super.func_145839_a(tags);
|
||||
super.readFromNBT(tags);
|
||||
active = tags.getBoolean("Active");
|
||||
fuel = tags.getInteger("Fuel");
|
||||
fuelGague = tags.getInteger("FuelGague");
|
||||
readNetworkNBT(tags);
|
||||
}
|
||||
|
||||
public void func_145841_b (NBTTagCompound tags)
|
||||
public void writeToNBT (NBTTagCompound tags)
|
||||
{
|
||||
super.func_145841_b(tags);
|
||||
super.writeToNBT(tags);
|
||||
tags.setBoolean("Active", active);
|
||||
tags.setInteger("Fuel", fuel);
|
||||
tags.setInteger("FuelGague", fuelGague);
|
||||
@@ -277,18 +277,18 @@ public class FurnaceLogic extends InventoryLogic implements IActiveLogic, IFacin
|
||||
|
||||
/* Packets */
|
||||
@Override
|
||||
public Packet func_145844_m ()
|
||||
public Packet getDescriptionPacket ()
|
||||
{
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
writeNetworkNBT(tag);
|
||||
return new S35PacketUpdateTileEntity(field_145851_c, field_145848_d, field_145849_e, 1, tag);
|
||||
return new S35PacketUpdateTileEntity(xCoord, yCoord, zCoord, 1, tag);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDataPacket (NetworkManager net, S35PacketUpdateTileEntity packet)
|
||||
{
|
||||
readNetworkNBT(packet.func_148857_g());
|
||||
field_145850_b.func_147479_m(field_145851_c, field_145848_d, field_145849_e);
|
||||
worldObj.func_147479_m(xCoord, yCoord, zCoord);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -342,13 +342,13 @@ public class FurnaceLogic extends InventoryLogic implements IActiveLogic, IFacin
|
||||
}
|
||||
|
||||
@Override
|
||||
public String func_145825_b ()
|
||||
public String getInventoryName ()
|
||||
{
|
||||
return getDefaultName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_145818_k_ ()
|
||||
public boolean hasCustomInventoryName ()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ public class LandmineExplodeLogic
|
||||
public LandmineExplodeLogic(World par1World, int par2, int par3, int par4, Entity entity)
|
||||
{
|
||||
worldObj = par1World;
|
||||
this.tileEntity = (TileEntityLandmine) par1World.func_147438_o(par2, par3, par4);
|
||||
this.tileEntity = (TileEntityLandmine) par1World.getTileEntity(par2, par3, par4);
|
||||
this.x = par2;
|
||||
this.y = par3;
|
||||
this.z = par4;
|
||||
@@ -146,7 +146,7 @@ public class LandmineExplodeLogic
|
||||
|
||||
if (hasExploded || defBeh != null && !preventExplode)
|
||||
{
|
||||
worldObj.func_147475_p(x, y, z);
|
||||
worldObj.removeTileEntity(x, y, z);
|
||||
WorldHelper.setBlockToAir(worldObj, x, y, z);
|
||||
}
|
||||
else
|
||||
|
||||
@@ -22,7 +22,7 @@ public class LandmineSpecialStackLogic
|
||||
public LandmineSpecialStackLogic(World par1World, int par2, int par3, int par4, Entity entity, boolean mayHurtPlayer, ArrayList<ItemStack> items)
|
||||
{
|
||||
worldObj = par1World;
|
||||
this.tileEntity = (TileEntityLandmine) par1World.func_147438_o(par2, par3, par4);
|
||||
this.tileEntity = (TileEntityLandmine) par1World.getTileEntity(par2, par3, par4);
|
||||
this.x = par2;
|
||||
this.y = par3;
|
||||
this.z = par4;
|
||||
|
||||
@@ -25,7 +25,7 @@ public class LavaTankLogic extends MultiServantLogic implements IFluidHandler
|
||||
if (amount > 0 && doFill)
|
||||
{
|
||||
renderOffset = resource.amount;
|
||||
field_145850_b.func_147471_g(field_145851_c, field_145848_d, field_145849_e);
|
||||
worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
|
||||
}
|
||||
|
||||
return amount;
|
||||
@@ -38,7 +38,7 @@ public class LavaTankLogic extends MultiServantLogic implements IFluidHandler
|
||||
if (amount != null && doDrain)
|
||||
{
|
||||
renderOffset = -maxDrain;
|
||||
field_145850_b.func_147471_g(field_145851_c, field_145848_d, field_145849_e);
|
||||
worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
|
||||
}
|
||||
return amount;
|
||||
}
|
||||
@@ -102,24 +102,24 @@ public class LavaTankLogic extends MultiServantLogic implements IFluidHandler
|
||||
if (id < 4096)
|
||||
{
|
||||
//TODO check this!!
|
||||
Block block = Block.func_149729_e(id);
|
||||
return block.func_149750_m();
|
||||
Block block = Block.getBlockById(id);
|
||||
return block.getLightValue();
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_145839_a (NBTTagCompound tags)
|
||||
public void readFromNBT (NBTTagCompound tags)
|
||||
{
|
||||
super.func_145839_a(tags);
|
||||
super.readFromNBT(tags);
|
||||
readCustomNBT(tags);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_145841_b (NBTTagCompound tags)
|
||||
public void writeToNBT (NBTTagCompound tags)
|
||||
{
|
||||
super.func_145841_b(tags);
|
||||
super.writeToNBT(tags);
|
||||
writeCustomNBT(tags);
|
||||
}
|
||||
|
||||
@@ -144,18 +144,18 @@ public class LavaTankLogic extends MultiServantLogic implements IFluidHandler
|
||||
|
||||
/* Packets */
|
||||
@Override
|
||||
public Packet func_145844_m ()
|
||||
public Packet getDescriptionPacket ()
|
||||
{
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
writeCustomNBT(tag);
|
||||
return new S35PacketUpdateTileEntity(field_145851_c, field_145848_d, field_145849_e, 1, tag);
|
||||
return new S35PacketUpdateTileEntity(xCoord, yCoord, zCoord, 1, tag);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDataPacket (NetworkManager net, S35PacketUpdateTileEntity packet)
|
||||
{
|
||||
readCustomNBT(packet.func_148857_g());
|
||||
field_145850_b.func_147479_m(field_145851_c, field_145848_d, field_145849_e);
|
||||
worldObj.func_147479_m(xCoord, yCoord, zCoord);
|
||||
}
|
||||
|
||||
/* Updating */
|
||||
@@ -165,12 +165,12 @@ public class LavaTankLogic extends MultiServantLogic implements IFluidHandler
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_145845_h ()
|
||||
public void updateEntity ()
|
||||
{
|
||||
if (renderOffset > 0)
|
||||
{
|
||||
renderOffset -= 6;
|
||||
field_145850_b.func_147479_m(field_145851_c, field_145848_d, field_145849_e);
|
||||
worldObj.func_147479_m(xCoord, yCoord, zCoord);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -17,7 +17,7 @@ public class LiquidTextureLogic extends TileEntity
|
||||
public void setLiquidType (int tex)
|
||||
{
|
||||
texturePos = tex;
|
||||
field_145850_b.func_147479_m(field_145851_c, field_145848_d, field_145849_e);
|
||||
worldObj.func_147479_m(xCoord, yCoord, zCoord);
|
||||
}
|
||||
|
||||
public int getLiquidType ()
|
||||
@@ -25,9 +25,9 @@ public class LiquidTextureLogic extends TileEntity
|
||||
return texturePos;
|
||||
}
|
||||
|
||||
public void func_145839_a (NBTTagCompound tags)
|
||||
public void readFromNBT (NBTTagCompound tags)
|
||||
{
|
||||
super.func_145839_a(tags);
|
||||
super.readFromNBT(tags);
|
||||
readCustomNBT(tags);
|
||||
}
|
||||
|
||||
@@ -36,9 +36,9 @@ public class LiquidTextureLogic extends TileEntity
|
||||
texturePos = tags.getInteger("Texture");
|
||||
}
|
||||
|
||||
public void func_145841_b (NBTTagCompound tags)
|
||||
public void writeToNBT (NBTTagCompound tags)
|
||||
{
|
||||
super.func_145841_b(tags);
|
||||
super.writeToNBT(tags);
|
||||
writeCustomNBT(tags);
|
||||
}
|
||||
|
||||
@@ -48,17 +48,17 @@ public class LiquidTextureLogic extends TileEntity
|
||||
}
|
||||
|
||||
@Override
|
||||
public Packet func_145844_m ()
|
||||
public Packet getDescriptionPacket ()
|
||||
{
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
writeCustomNBT(tag);
|
||||
return new S35PacketUpdateTileEntity(field_145851_c, field_145848_d, field_145849_e, 1, tag);
|
||||
return new S35PacketUpdateTileEntity(xCoord, yCoord, zCoord, 1, tag);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDataPacket (NetworkManager net, S35PacketUpdateTileEntity packet)
|
||||
{
|
||||
readCustomNBT(packet.func_148857_g());
|
||||
field_145850_b.func_147479_m(field_145851_c, field_145848_d, field_145849_e);
|
||||
worldObj.func_147479_m(xCoord, yCoord, zCoord);
|
||||
}
|
||||
}
|
||||
@@ -38,7 +38,7 @@ public class PartBuilderLogic extends InventoryLogic implements ISidedInventory
|
||||
{
|
||||
for (int zPos = z - 1; zPos <= z + 1; zPos++)
|
||||
{
|
||||
TileEntity tile = world.func_147438_o(xPos, y, zPos);
|
||||
TileEntity tile = world.getTileEntity(xPos, y, zPos);
|
||||
if (tile != null && tile instanceof PatternChestLogic)
|
||||
return new PartCrafterChestContainer(inventoryplayer, this, (PatternChestLogic) tile);
|
||||
}
|
||||
@@ -146,16 +146,16 @@ public class PartBuilderLogic extends InventoryLogic implements ISidedInventory
|
||||
}
|
||||
|
||||
/* NBT */
|
||||
public void func_145839_a (NBTTagCompound tags)
|
||||
public void readFromNBT (NBTTagCompound tags)
|
||||
{
|
||||
super.func_145839_a(tags);
|
||||
super.readFromNBT(tags);
|
||||
craftedTop = tags.getBoolean("CraftedTop");
|
||||
craftedBottom = tags.getBoolean("CraftedBottom");
|
||||
}
|
||||
|
||||
public void func_145841_b (NBTTagCompound tags)
|
||||
public void writeToNBT (NBTTagCompound tags)
|
||||
{
|
||||
super.func_145841_b(tags);
|
||||
super.writeToNBT(tags);
|
||||
tags.setBoolean("CraftedTop", craftedTop);
|
||||
tags.setBoolean("CraftedBottom", craftedBottom);
|
||||
}
|
||||
@@ -179,13 +179,13 @@ public class PartBuilderLogic extends InventoryLogic implements ISidedInventory
|
||||
}
|
||||
|
||||
@Override
|
||||
public String func_145825_b ()
|
||||
public String getInventoryName ()
|
||||
{
|
||||
return getDefaultName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_145818_k_ ()
|
||||
public boolean hasCustomInventoryName ()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -31,13 +31,13 @@ public class PatternChestLogic extends InventoryLogic
|
||||
}
|
||||
|
||||
@Override
|
||||
public String func_145825_b ()
|
||||
public String getInventoryName ()
|
||||
{
|
||||
return getDefaultName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_145818_k_ ()
|
||||
public boolean hasCustomInventoryName ()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -40,32 +40,32 @@ public class RedwireLogic extends TileEntity
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_145839_a (NBTTagCompound tags)
|
||||
public void readFromNBT (NBTTagCompound tags)
|
||||
{
|
||||
super.func_145839_a(tags);
|
||||
super.readFromNBT(tags);
|
||||
readCustomNBT(tags);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_145841_b (NBTTagCompound tags)
|
||||
public void writeToNBT (NBTTagCompound tags)
|
||||
{
|
||||
super.func_145841_b(tags);
|
||||
super.writeToNBT(tags);
|
||||
writeCustomNBT(tags);
|
||||
}
|
||||
|
||||
/* Packets */
|
||||
@Override
|
||||
public Packet func_145844_m ()
|
||||
public Packet getDescriptionPacket ()
|
||||
{
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
writeCustomNBT(tag);
|
||||
return new S35PacketUpdateTileEntity(field_145851_c, field_145848_d, field_145849_e, 1, tag);
|
||||
return new S35PacketUpdateTileEntity(xCoord, yCoord, zCoord, 1, tag);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDataPacket (NetworkManager net, S35PacketUpdateTileEntity packet)
|
||||
{
|
||||
readCustomNBT(packet.func_148857_g());
|
||||
field_145850_b.func_147479_m(field_145851_c, field_145848_d, field_145849_e);
|
||||
worldObj.func_147479_m(xCoord, yCoord, zCoord);
|
||||
}
|
||||
}
|
||||
@@ -26,7 +26,7 @@ public class SmelteryDrainLogic extends MultiServantLogic implements IFluidHandl
|
||||
{
|
||||
if (doFill)
|
||||
{
|
||||
SmelteryLogic smeltery = (SmelteryLogic) field_145850_b.func_147438_o(getMasterPosition().x, getMasterPosition().y, getMasterPosition().z);
|
||||
SmelteryLogic smeltery = (SmelteryLogic) worldObj.getTileEntity(getMasterPosition().x, getMasterPosition().y, getMasterPosition().z);
|
||||
return smeltery.fill(resource, doFill);
|
||||
}
|
||||
else
|
||||
@@ -45,7 +45,7 @@ public class SmelteryDrainLogic extends MultiServantLogic implements IFluidHandl
|
||||
{
|
||||
if (hasValidMaster() && canDrain(from, null))
|
||||
{
|
||||
SmelteryLogic smeltery = (SmelteryLogic) field_145850_b.func_147438_o(getMasterPosition().x, getMasterPosition().y, getMasterPosition().z);
|
||||
SmelteryLogic smeltery = (SmelteryLogic) worldObj.getTileEntity(getMasterPosition().x, getMasterPosition().y, getMasterPosition().z);
|
||||
return smeltery.drain(maxDrain, doDrain);
|
||||
}
|
||||
else
|
||||
@@ -76,7 +76,7 @@ public class SmelteryDrainLogic extends MultiServantLogic implements IFluidHandl
|
||||
boolean containsFluid = fluid == null;
|
||||
if (fluid != null)
|
||||
{
|
||||
SmelteryLogic smeltery = (SmelteryLogic) field_145850_b.func_147438_o(getMasterPosition().x, getMasterPosition().y, getMasterPosition().z);
|
||||
SmelteryLogic smeltery = (SmelteryLogic) worldObj.getTileEntity(getMasterPosition().x, getMasterPosition().y, getMasterPosition().z);
|
||||
for (FluidStack fstack : smeltery.moltenMetal)
|
||||
{
|
||||
if (fstack.fluidID == fluid.getID())
|
||||
@@ -95,7 +95,7 @@ public class SmelteryDrainLogic extends MultiServantLogic implements IFluidHandl
|
||||
{
|
||||
if (hasValidMaster() && (from == getForgeDirection() || from == getForgeDirection().getOpposite() || from == ForgeDirection.UNKNOWN))
|
||||
{
|
||||
SmelteryLogic smeltery = (SmelteryLogic) field_145850_b.func_147438_o(getMasterPosition().x, getMasterPosition().y, getMasterPosition().z);
|
||||
SmelteryLogic smeltery = (SmelteryLogic) worldObj.getTileEntity(getMasterPosition().x, getMasterPosition().y, getMasterPosition().z);
|
||||
return smeltery.getMultiTankInfo();
|
||||
//return new FluidTankInfo[] { smeltery.getInfo() };
|
||||
}
|
||||
@@ -151,32 +151,32 @@ public class SmelteryDrainLogic extends MultiServantLogic implements IFluidHandl
|
||||
}
|
||||
}
|
||||
|
||||
public void func_145839_a (NBTTagCompound tags)
|
||||
public void readFromNBT (NBTTagCompound tags)
|
||||
{
|
||||
super.func_145839_a(tags);
|
||||
super.readFromNBT(tags);
|
||||
direction = tags.getByte("Direction");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_145841_b (NBTTagCompound tags)
|
||||
public void writeToNBT (NBTTagCompound tags)
|
||||
{
|
||||
super.func_145841_b(tags);
|
||||
super.writeToNBT(tags);
|
||||
tags.setByte("Direction", direction);
|
||||
}
|
||||
|
||||
/* Packets */
|
||||
@Override
|
||||
public Packet func_145844_m ()
|
||||
public Packet getDescriptionPacket ()
|
||||
{
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
func_145841_b(tag);
|
||||
return new S35PacketUpdateTileEntity(field_145851_c, field_145848_d, field_145849_e, 1, tag);
|
||||
writeToNBT(tag);
|
||||
return new S35PacketUpdateTileEntity(xCoord, yCoord, zCoord, 1, tag);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDataPacket (NetworkManager net, S35PacketUpdateTileEntity packet)
|
||||
{
|
||||
func_145839_a(packet.func_148857_g());
|
||||
field_145850_b.func_147479_m(field_145851_c, field_145848_d, field_145849_e);
|
||||
readFromNBT(packet.func_148857_g());
|
||||
worldObj.func_147479_m(xCoord, yCoord, zCoord);
|
||||
}
|
||||
}
|
||||
@@ -142,8 +142,8 @@ public class SmelteryLogic extends InventoryLogic implements IActiveLogic, IFaci
|
||||
}
|
||||
|
||||
stack.stackSize -= itemSize;
|
||||
EntityItem entityitem = new EntityItem(field_145850_b, (double) ((float) field_145851_c + jumpX + offsetX), (double) ((float) field_145848_d + jumpY),
|
||||
(double) ((float) field_145849_e + jumpZ + offsetZ), new ItemStack(stack.getItem(), itemSize, stack.getItemDamage()));
|
||||
EntityItem entityitem = new EntityItem(worldObj, (double) ((float) xCoord + jumpX + offsetX), (double) ((float) yCoord + jumpY),
|
||||
(double) ((float) zCoord + jumpZ + offsetZ), new ItemStack(stack.getItem(), itemSize, stack.getItemDamage()));
|
||||
|
||||
if (stack.hasTagCompound())
|
||||
{
|
||||
@@ -154,7 +154,7 @@ public class SmelteryLogic extends InventoryLogic implements IActiveLogic, IFaci
|
||||
entityitem.motionX = (double) ((float) rand.nextGaussian() * offset);
|
||||
entityitem.motionY = (double) ((float) rand.nextGaussian() * offset + 0.2F);
|
||||
entityitem.motionZ = (double) ((float) rand.nextGaussian() * offset);
|
||||
field_145850_b.spawnEntityInWorld(entityitem);
|
||||
worldObj.spawnEntityInWorld(entityitem);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -227,7 +227,7 @@ public class SmelteryLogic extends InventoryLogic implements IActiveLogic, IFaci
|
||||
public void setActive (boolean flag)
|
||||
{
|
||||
needsUpdate = true;
|
||||
field_145850_b.func_147471_g(field_145851_c, field_145848_d, field_145849_e);
|
||||
worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
|
||||
}
|
||||
|
||||
public int getScaledFuelGague (int scale)
|
||||
@@ -256,7 +256,7 @@ public class SmelteryLogic extends InventoryLogic implements IActiveLogic, IFaci
|
||||
/* Updating */
|
||||
public void updateEntity ()
|
||||
{
|
||||
/*if (field_145850_b.isRemote)
|
||||
/*if (worldObj.isRemote)
|
||||
return;*/
|
||||
|
||||
tick++;
|
||||
@@ -279,7 +279,7 @@ public class SmelteryLogic extends InventoryLogic implements IActiveLogic, IFaci
|
||||
if (needsUpdate)
|
||||
{
|
||||
needsUpdate = false;
|
||||
field_145850_b.func_147471_g(field_145851_c, field_145848_d, field_145849_e);
|
||||
worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -295,7 +295,7 @@ public class SmelteryLogic extends InventoryLogic implements IActiveLogic, IFaci
|
||||
{
|
||||
AxisAlignedBB box = AxisAlignedBB.getAABBPool().getAABB(centerPos.x, centerPos.y, centerPos.z, centerPos.x + 1.0D, centerPos.y + 1.0D, centerPos.z + 1.0D).expand(1.0D, 0.0D, 1.0D);
|
||||
|
||||
List list = field_145850_b.getEntitiesWithinAABB(Entity.class, box);
|
||||
List list = worldObj.getEntitiesWithinAABB(Entity.class, box);
|
||||
for (Object o : list)
|
||||
{
|
||||
if (moltenMetal.size() >= 1)
|
||||
@@ -368,7 +368,7 @@ public class SmelteryLogic extends InventoryLogic implements IActiveLogic, IFaci
|
||||
private void handleItemEntity (EntityItem item)
|
||||
{
|
||||
// Clients like to play merry hell with this and cause breakage (we update their inv on syncs)
|
||||
if (field_145850_b.isRemote)
|
||||
if (worldObj.isRemote)
|
||||
return;
|
||||
|
||||
item.age = 0;
|
||||
@@ -403,8 +403,8 @@ public class SmelteryLogic extends InventoryLogic implements IActiveLogic, IFaci
|
||||
{
|
||||
this.needsUpdate = true;
|
||||
//TODO check if the below method functions as intended
|
||||
//Old code: PacketDispatcher.sendPacketToAllInDimension(func_145844_m(), field_145850_b.provider.dimensionId);
|
||||
FMLCommonHandler.instance().getClientToServerNetworkManager().func_150725_a(func_145844_m());
|
||||
//Old code: PacketDispatcher.sendPacketToAllInDimension(getDescriptionPacket(), worldObj.provider.dimensionId);
|
||||
FMLCommonHandler.instance().getClientToServerNetworkManager().scheduleOutboundPacket(getDescriptionPacket());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -424,7 +424,7 @@ public class SmelteryLogic extends InventoryLogic implements IActiveLogic, IFaci
|
||||
}
|
||||
else if (activeTemps[i] >= meltingTemps[i])
|
||||
{
|
||||
if (!field_145850_b.isRemote)
|
||||
if (!worldObj.isRemote)
|
||||
{
|
||||
FluidStack result = getResultFor(inventory[i]);
|
||||
if (result != null)
|
||||
@@ -511,14 +511,14 @@ public class SmelteryLogic extends InventoryLogic implements IActiveLogic, IFaci
|
||||
if (activeLavaTank == null || useTime > 0)
|
||||
return;
|
||||
|
||||
if (!field_145850_b.blockExists(activeLavaTank.x, activeLavaTank.y, activeLavaTank.z))
|
||||
if (!worldObj.blockExists(activeLavaTank.x, activeLavaTank.y, activeLavaTank.z))
|
||||
{
|
||||
fuelAmount = 0;
|
||||
fuelGague = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
TileEntity tankContainer = field_145850_b.func_147438_o(activeLavaTank.x, activeLavaTank.y, activeLavaTank.z);
|
||||
TileEntity tankContainer = worldObj.getTileEntity(activeLavaTank.x, activeLavaTank.y, activeLavaTank.z);
|
||||
if (tankContainer == null)
|
||||
{
|
||||
fuelAmount = 0;
|
||||
@@ -552,14 +552,14 @@ public class SmelteryLogic extends InventoryLogic implements IActiveLogic, IFaci
|
||||
if (activeLavaTank == null || useTime > 0)
|
||||
return;
|
||||
|
||||
if (!field_145850_b.blockExists(activeLavaTank.x, activeLavaTank.y, activeLavaTank.z))
|
||||
if (!worldObj.blockExists(activeLavaTank.x, activeLavaTank.y, activeLavaTank.z))
|
||||
{
|
||||
fuelAmount = 0;
|
||||
fuelGague = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
TileEntity tankContainer = field_145850_b.func_147438_o(activeLavaTank.x, activeLavaTank.y, activeLavaTank.z);
|
||||
TileEntity tankContainer = worldObj.getTileEntity(activeLavaTank.x, activeLavaTank.y, activeLavaTank.z);
|
||||
if (tankContainer == null)
|
||||
{
|
||||
fuelAmount = 0;
|
||||
@@ -596,7 +596,7 @@ public class SmelteryLogic extends InventoryLogic implements IActiveLogic, IFaci
|
||||
while (!foundTank)
|
||||
{
|
||||
CoordTuple possibleTank = lavaTanks.get(iter);
|
||||
TileEntity newTankContainer = field_145850_b.func_147438_o(possibleTank.x, possibleTank.y, possibleTank.z);
|
||||
TileEntity newTankContainer = worldObj.getTileEntity(possibleTank.x, possibleTank.y, possibleTank.z);
|
||||
if (newTankContainer instanceof IFluidHandler)
|
||||
{
|
||||
//TConstruct.logger.info("Tank: "+possibleTank.toString());
|
||||
@@ -660,8 +660,8 @@ public class SmelteryLogic extends InventoryLogic implements IActiveLogic, IFaci
|
||||
updateEntity();
|
||||
super.onInventoryChanged();
|
||||
needsUpdate = true;
|
||||
//field_145850_b.func_147471_g(field_145851_c, field_145848_d, field_145849_e);
|
||||
//field_145850_b.func_147479_m(field_145851_c, field_145848_d, field_145849_e);
|
||||
//worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
|
||||
//worldObj.func_147479_m(xCoord, yCoord, zCoord);
|
||||
}
|
||||
|
||||
/*@Override
|
||||
@@ -682,26 +682,26 @@ public class SmelteryLogic extends InventoryLogic implements IActiveLogic, IFaci
|
||||
switch (getRenderDirection())
|
||||
{
|
||||
case 2: // +z
|
||||
alignInitialPlacement(field_145851_c, field_145848_d, field_145849_e + 2);
|
||||
alignInitialPlacement(xCoord, yCoord, zCoord + 2);
|
||||
break;
|
||||
case 3: // -z
|
||||
alignInitialPlacement(field_145851_c, field_145848_d, field_145849_e - 2);
|
||||
alignInitialPlacement(xCoord, yCoord, zCoord - 2);
|
||||
break;
|
||||
case 4: // +x
|
||||
alignInitialPlacement(field_145851_c + 2, field_145848_d, field_145849_e);
|
||||
alignInitialPlacement(xCoord + 2, yCoord, zCoord);
|
||||
break;
|
||||
case 5: // -x
|
||||
alignInitialPlacement(field_145851_c - 2, field_145848_d, field_145849_e);
|
||||
alignInitialPlacement(xCoord - 2, yCoord, zCoord);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public void alignInitialPlacement (int x, int y, int z)
|
||||
{
|
||||
Block northBlock = field_145850_b.func_147439_a(x, y, z + 1);
|
||||
Block southBlock = field_145850_b.func_147439_a(x, y, z - 1);
|
||||
Block eastBlock = field_145850_b.func_147439_a(x + 1, y, z);
|
||||
Block westBlock = field_145850_b.func_147439_a(x - 1, y, z);
|
||||
Block northBlock = worldObj.getBlock(x, y, z + 1);
|
||||
Block southBlock = worldObj.getBlock(x, y, z - 1);
|
||||
Block eastBlock = worldObj.getBlock(x + 1, y, z);
|
||||
Block westBlock = worldObj.getBlock(x - 1, y, z);
|
||||
|
||||
if ((northBlock == null || northBlock == Blocks.air) && (southBlock == null || southBlock == Blocks.air)
|
||||
&& (eastBlock == null || eastBlock == Blocks.air) && (westBlock == null || westBlock == Blocks.air))
|
||||
@@ -756,7 +756,7 @@ public class SmelteryLogic extends InventoryLogic implements IActiveLogic, IFaci
|
||||
internalTemp = 800;
|
||||
activeLavaTank = lavaTanks.get(0);
|
||||
adjustLayers(checkLayers, false);
|
||||
field_145850_b.func_147471_g(field_145851_c, field_145848_d, field_145849_e);
|
||||
worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
|
||||
validStructure = true;
|
||||
}
|
||||
else
|
||||
@@ -778,7 +778,7 @@ public class SmelteryLogic extends InventoryLogic implements IActiveLogic, IFaci
|
||||
{
|
||||
for (int zPos = z - 1; zPos <= z + 1; zPos++)
|
||||
{
|
||||
block = field_145850_b.func_147439_a(xPos, y, zPos);
|
||||
block = worldObj.getBlock(xPos, y, zPos);
|
||||
if (block != null && block != Blocks.air)
|
||||
return false;
|
||||
}
|
||||
@@ -811,7 +811,7 @@ public class SmelteryLogic extends InventoryLogic implements IActiveLogic, IFaci
|
||||
{
|
||||
for (int zPos = z - 1; zPos <= z + 1; zPos++)
|
||||
{
|
||||
Block block = field_145850_b.func_147439_a(xPos, y, zPos);
|
||||
Block block = worldObj.getBlock(xPos, y, zPos);
|
||||
if (block != null && !(block == Blocks.air))
|
||||
return count;
|
||||
}
|
||||
@@ -845,7 +845,7 @@ public class SmelteryLogic extends InventoryLogic implements IActiveLogic, IFaci
|
||||
{
|
||||
for (int zPos = z - 1; zPos <= z + 1; zPos++)
|
||||
{
|
||||
Block block = field_145850_b.func_147439_a(xPos, y, zPos);
|
||||
Block block = worldObj.getBlock(xPos, y, zPos);
|
||||
if (block != null && block != Blocks.air)
|
||||
{
|
||||
if (validBlock(block))
|
||||
@@ -883,7 +883,7 @@ public class SmelteryLogic extends InventoryLogic implements IActiveLogic, IFaci
|
||||
{
|
||||
for (int zPos = z - 1; zPos <= z + 1; zPos++)
|
||||
{
|
||||
if (validBlock(field_145850_b.func_147439_a(xPos, y, zPos)) && (field_145850_b.getBlockMetadata(xPos, y, zPos) >= 2))
|
||||
if (validBlock(worldObj.getBlock(xPos, y, zPos)) && (worldObj.getBlockMetadata(xPos, y, zPos) >= 2))
|
||||
bottomBricks++;
|
||||
}
|
||||
}
|
||||
@@ -902,10 +902,10 @@ public class SmelteryLogic extends InventoryLogic implements IActiveLogic, IFaci
|
||||
int checkBricks (int x, int y, int z)
|
||||
{
|
||||
int tempBricks = 0;
|
||||
Block block = field_145850_b.func_147439_a(x, y, z);
|
||||
Block block = worldObj.getBlock(x, y, z);
|
||||
if (validBlock(block) || validTank(block))
|
||||
{
|
||||
TileEntity te = field_145850_b.func_147438_o(x, y, z);
|
||||
TileEntity te = worldObj.getTileEntity(x, y, z);
|
||||
if (te == this)
|
||||
{
|
||||
tempBricks++;
|
||||
@@ -915,11 +915,11 @@ public class SmelteryLogic extends InventoryLogic implements IActiveLogic, IFaci
|
||||
MultiServantLogic servant = (MultiServantLogic) te;
|
||||
if (servant.hasValidMaster())
|
||||
{
|
||||
if (servant.verifyMaster(this, field_145850_b, this.field_145851_c, this.field_145848_d, this.field_145849_e))
|
||||
if (servant.verifyMaster(this, worldObj, this.xCoord, this.yCoord, this.zCoord))
|
||||
tempBricks++;
|
||||
}
|
||||
// Temp comment out
|
||||
/*else if (servant.setMaster(this.field_145851_c, this.field_145848_d, this.field_145849_e))
|
||||
/*else if (servant.setMaster(this.xCoord, this.yCoord, this.zCoord))
|
||||
{
|
||||
tempBricks++;
|
||||
}*/
|
||||
@@ -969,7 +969,7 @@ public class SmelteryLogic extends InventoryLogic implements IActiveLogic, IFaci
|
||||
{
|
||||
//liquid = null;
|
||||
moltenMetal.remove(liquid);
|
||||
field_145850_b.func_147471_g(field_145851_c, field_145848_d, field_145849_e);
|
||||
worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
|
||||
currentLiquid = 0;
|
||||
needsUpdate = true;
|
||||
}
|
||||
@@ -980,7 +980,7 @@ public class SmelteryLogic extends InventoryLogic implements IActiveLogic, IFaci
|
||||
if (doDrain && maxDrain > 0)
|
||||
{
|
||||
liquid.amount -= maxDrain;
|
||||
field_145850_b.func_147471_g(field_145851_c, field_145848_d, field_145849_e);
|
||||
worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
|
||||
currentLiquid -= maxDrain;
|
||||
needsUpdate = true;
|
||||
}
|
||||
@@ -1014,7 +1014,7 @@ public class SmelteryLogic extends InventoryLogic implements IActiveLogic, IFaci
|
||||
}
|
||||
}
|
||||
needsUpdate = true;
|
||||
field_145850_b.func_147479_m(field_145851_c, field_145848_d, field_145849_e);
|
||||
worldObj.func_147479_m(xCoord, yCoord, zCoord);
|
||||
}
|
||||
return amount;
|
||||
}
|
||||
@@ -1057,11 +1057,11 @@ public class SmelteryLogic extends InventoryLogic implements IActiveLogic, IFaci
|
||||
/* NBT */
|
||||
|
||||
@Override
|
||||
public void func_145839_a (NBTTagCompound tags)
|
||||
public void readFromNBT (NBTTagCompound tags)
|
||||
{
|
||||
layers = tags.getInteger("Layers");
|
||||
inventory = new ItemStack[layers * 9];
|
||||
super.func_145839_a(tags);
|
||||
super.readFromNBT(tags);
|
||||
|
||||
//validStructure = tags.getBoolean("ValidStructure");
|
||||
internalTemp = tags.getInteger("InternalTemp");
|
||||
@@ -1071,7 +1071,7 @@ public class SmelteryLogic extends InventoryLogic implements IActiveLogic, IFaci
|
||||
if (center.length > 2)
|
||||
centerPos = new CoordTuple(center[0], center[1], center[2]);
|
||||
else
|
||||
centerPos = new CoordTuple(field_145851_c, field_145848_d, field_145849_e);
|
||||
centerPos = new CoordTuple(xCoord, yCoord, zCoord);
|
||||
|
||||
direction = tags.getByte("Direction");
|
||||
useTime = tags.getInteger("UseTime");
|
||||
@@ -1080,12 +1080,12 @@ public class SmelteryLogic extends InventoryLogic implements IActiveLogic, IFaci
|
||||
meltingTemps = tags.getIntArray("MeltingTemps");
|
||||
activeTemps = tags.getIntArray("ActiveTemps");
|
||||
|
||||
NBTTagList liquidTag = tags.func_150295_c("Liquids", 9);
|
||||
NBTTagList liquidTag = tags.getTagList("Liquids", 9);
|
||||
moltenMetal.clear();
|
||||
|
||||
for (int iter = 0; iter < liquidTag.tagCount(); iter++)
|
||||
{
|
||||
NBTTagCompound nbt = (NBTTagCompound) liquidTag.func_150305_b(iter);
|
||||
NBTTagCompound nbt = (NBTTagCompound) liquidTag.getCompoundTagAt(iter);
|
||||
FluidStack fluid = FluidStack.loadFluidStackFromNBT(nbt);
|
||||
if (fluid != null)
|
||||
moltenMetal.add(fluid);
|
||||
@@ -1095,9 +1095,9 @@ public class SmelteryLogic extends InventoryLogic implements IActiveLogic, IFaci
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_145841_b (NBTTagCompound tags)
|
||||
public void writeToNBT (NBTTagCompound tags)
|
||||
{
|
||||
super.func_145841_b(tags);
|
||||
super.writeToNBT(tags);
|
||||
|
||||
//tags.setBoolean("ValidStructure", validStructure);
|
||||
tags.setInteger("InternalTemp", internalTemp);
|
||||
@@ -1105,7 +1105,7 @@ public class SmelteryLogic extends InventoryLogic implements IActiveLogic, IFaci
|
||||
|
||||
int[] center = new int[3];// { centerPos.x, centerPos.y, centerPos.z };
|
||||
if (centerPos == null)
|
||||
center = new int[] { field_145851_c, field_145848_d, field_145849_e };
|
||||
center = new int[] { xCoord, yCoord, zCoord };
|
||||
else
|
||||
center = new int[] { centerPos.x, centerPos.y, centerPos.z };
|
||||
tags.setIntArray("CenterPos", center);
|
||||
@@ -1131,19 +1131,19 @@ public class SmelteryLogic extends InventoryLogic implements IActiveLogic, IFaci
|
||||
|
||||
/* Packets */
|
||||
@Override
|
||||
public Packet func_145844_m ()
|
||||
public Packet getDescriptionPacket ()
|
||||
{
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
func_145839_a(tag);
|
||||
return new S35PacketUpdateTileEntity(field_145851_c, field_145848_d, field_145849_e, 1, tag);
|
||||
readFromNBT(tag);
|
||||
return new S35PacketUpdateTileEntity(xCoord, yCoord, zCoord, 1, tag);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDataPacket (NetworkManager net, S35PacketUpdateTileEntity packet)
|
||||
{
|
||||
func_145839_a(packet.func_148857_g());
|
||||
readFromNBT(packet.func_148857_g());
|
||||
onInventoryChanged();
|
||||
field_145850_b.func_147479_m(field_145851_c, field_145848_d, field_145849_e);
|
||||
worldObj.func_147479_m(xCoord, yCoord, zCoord);
|
||||
this.needsUpdate = true;
|
||||
}
|
||||
|
||||
@@ -1158,13 +1158,13 @@ public class SmelteryLogic extends InventoryLogic implements IActiveLogic, IFaci
|
||||
}
|
||||
|
||||
@Override
|
||||
public String func_145825_b ()
|
||||
public String getInventoryName ()
|
||||
{
|
||||
return getDefaultName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_145818_k_ ()
|
||||
public boolean hasCustomInventoryName ()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -123,13 +123,13 @@ public class StencilTableLogic extends InventoryLogic implements ISidedInventory
|
||||
}
|
||||
|
||||
@Override
|
||||
public String func_145825_b ()
|
||||
public String getInventoryName ()
|
||||
{
|
||||
return StatCollector.translateToLocal("toolstation.PatternShaper");
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_145818_k_ ()
|
||||
public boolean hasCustomInventoryName ()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ public class TankAirLogic extends InventoryLogic implements IServantLogic, ISide
|
||||
public void overrideFluids (ArrayList<FluidStack> fluids)
|
||||
{
|
||||
/*multitank.overrideFluids(fluids);
|
||||
field_145850_b.func_147471_g(field_145851_c, field_145848_d, field_145849_e);*/
|
||||
worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);*/
|
||||
}
|
||||
|
||||
public boolean hasItem ()
|
||||
@@ -53,8 +53,8 @@ public class TankAirLogic extends InventoryLogic implements IServantLogic, ISide
|
||||
if (itemstack != null && itemstack.stackSize > getInventoryStackLimit())
|
||||
{
|
||||
itemstack.stackSize = getInventoryStackLimit();
|
||||
field_145850_b.setBlockMetadataWithNotify(field_145851_c, field_145848_d, field_145849_e, itemstack.getItemDamage(), 3);
|
||||
field_145850_b.func_147471_g(field_145851_c, field_145848_d, field_145849_e);
|
||||
worldObj.setBlockMetadataWithNotify(xCoord, yCoord, zCoord, itemstack.getItemDamage(), 3);
|
||||
worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
|
||||
}*/
|
||||
}
|
||||
|
||||
@@ -101,7 +101,7 @@ public class TankAirLogic extends InventoryLogic implements IServantLogic, ISide
|
||||
@Override
|
||||
public void invalidateMaster (IMasterLogic master, World world, int xMaster, int yMaster, int zMaster)
|
||||
{
|
||||
WorldHelper.setBlockToAir(world, field_145851_c, field_145848_d, field_145849_e);
|
||||
WorldHelper.setBlockToAir(world, xCoord, yCoord, zCoord);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -131,7 +131,7 @@ public class TankAirLogic extends InventoryLogic implements IServantLogic, ISide
|
||||
//DELETE
|
||||
public void updateEntity ()
|
||||
{
|
||||
WorldHelper.setBlockToAir(field_145850_b,field_145851_c, field_145848_d, field_145849_e);
|
||||
WorldHelper.setBlockToAir(worldObj,xCoord, yCoord, zCoord);
|
||||
}
|
||||
|
||||
//Keep TE regardless of metadata
|
||||
@@ -143,9 +143,9 @@ public class TankAirLogic extends InventoryLogic implements IServantLogic, ISide
|
||||
/* NBT */
|
||||
|
||||
@Override
|
||||
public void func_145839_a (NBTTagCompound tags)
|
||||
public void readFromNBT (NBTTagCompound tags)
|
||||
{
|
||||
super.func_145839_a(tags);
|
||||
super.readFromNBT(tags);
|
||||
readNetworkNBT(tags);
|
||||
multitank.readFromNBT(tags);
|
||||
}
|
||||
@@ -157,9 +157,9 @@ public class TankAirLogic extends InventoryLogic implements IServantLogic, ISide
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_145841_b (NBTTagCompound tags)
|
||||
public void writeToNBT (NBTTagCompound tags)
|
||||
{
|
||||
super.func_145839_a(tags);
|
||||
super.readFromNBT(tags);
|
||||
writeNetworkNBT(tags);
|
||||
multitank.writeToNBT(tags);
|
||||
}
|
||||
@@ -174,26 +174,26 @@ public class TankAirLogic extends InventoryLogic implements IServantLogic, ISide
|
||||
public void onDataPacket (NetworkManager net, S35PacketUpdateTileEntity packet)
|
||||
{
|
||||
readNetworkNBT(packet.func_148857_g());
|
||||
field_145850_b.func_147479_m(field_145851_c, field_145848_d, field_145849_e);
|
||||
field_145850_b.func_147471_g(field_145851_c, field_145848_d, field_145849_e);
|
||||
worldObj.func_147479_m(xCoord, yCoord, zCoord);
|
||||
worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Packet func_145844_m ()
|
||||
public Packet getDescriptionPacket ()
|
||||
{
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
writeNetworkNBT(tag);
|
||||
return new S35PacketUpdateTileEntity(field_145851_c, field_145848_d, field_145849_e, 1, tag);
|
||||
return new S35PacketUpdateTileEntity(xCoord, yCoord, zCoord, 1, tag);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String func_145825_b ()
|
||||
public String getInventoryName ()
|
||||
{
|
||||
return this.func_145825_b();
|
||||
return this.getInventoryName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_145818_k_ ()
|
||||
public boolean hasCustomInventoryName ()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -39,9 +39,9 @@ public class TileEntityLandmine extends TileEntity implements IInventory
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_145841_b (NBTTagCompound par1NBTTagCompound)
|
||||
public void writeToNBT (NBTTagCompound par1NBTTagCompound)
|
||||
{
|
||||
super.func_145841_b(par1NBTTagCompound);
|
||||
super.writeToNBT(par1NBTTagCompound);
|
||||
NBTTagList nbttaglist = new NBTTagList();
|
||||
|
||||
for (int i = 0; i < this.inventory.length; ++i)
|
||||
@@ -59,22 +59,22 @@ public class TileEntityLandmine extends TileEntity implements IInventory
|
||||
|
||||
par1NBTTagCompound.setInteger("triggerType", triggerType);
|
||||
|
||||
if (this.func_145818_k_())
|
||||
if (this.hasCustomInventoryName())
|
||||
{
|
||||
par1NBTTagCompound.setString("CustomName", this.containerName);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_145839_a (NBTTagCompound par1NBTTagCompound)
|
||||
public void readFromNBT (NBTTagCompound par1NBTTagCompound)
|
||||
{
|
||||
super.func_145839_a(par1NBTTagCompound);
|
||||
NBTTagList nbttaglist = par1NBTTagCompound.func_150295_c("Items",9);
|
||||
super.readFromNBT(par1NBTTagCompound);
|
||||
NBTTagList nbttaglist = par1NBTTagCompound.getTagList("Items",9);
|
||||
this.inventory = new ItemStack[this.getSizeInventory()];
|
||||
|
||||
for (int i = 0; i < nbttaglist.tagCount(); ++i)
|
||||
{
|
||||
NBTTagCompound nbttagcompound1 = (NBTTagCompound) nbttaglist.func_150305_b(i);
|
||||
NBTTagCompound nbttagcompound1 = (NBTTagCompound) nbttaglist.getCompoundTagAt(i);
|
||||
byte b0 = nbttagcompound1.getByte("Slot");
|
||||
|
||||
if (b0 >= 0 && b0 < this.inventory.length)
|
||||
@@ -92,17 +92,17 @@ public class TileEntityLandmine extends TileEntity implements IInventory
|
||||
}
|
||||
|
||||
@Override
|
||||
public Packet func_145844_m ()
|
||||
public Packet getDescriptionPacket ()
|
||||
{
|
||||
NBTTagCompound nbt = new NBTTagCompound();
|
||||
func_145841_b(nbt);
|
||||
return new S35PacketUpdateTileEntity(field_145851_c, field_145848_d, field_145849_e, 0, nbt);
|
||||
writeToNBT(nbt);
|
||||
return new S35PacketUpdateTileEntity(xCoord, yCoord, zCoord, 0, nbt);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDataPacket (NetworkManager net, S35PacketUpdateTileEntity packet)
|
||||
{
|
||||
func_145839_a(packet.func_148857_g());
|
||||
readFromNBT(packet.func_148857_g());
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -181,13 +181,13 @@ public class TileEntityLandmine extends TileEntity implements IInventory
|
||||
}
|
||||
|
||||
@Override
|
||||
public String func_145825_b ()
|
||||
public String getInventoryName ()
|
||||
{
|
||||
return this.func_145818_k_() ? this.containerName : "Landmine";
|
||||
return this.hasCustomInventoryName() ? this.containerName : "Landmine";
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_145818_k_ ()
|
||||
public boolean hasCustomInventoryName ()
|
||||
{
|
||||
return containerName != null && containerName.length() > 0;
|
||||
}
|
||||
@@ -206,8 +206,8 @@ public class TileEntityLandmine extends TileEntity implements IInventory
|
||||
@Override
|
||||
public boolean isUseableByPlayer (EntityPlayer par1EntityPlayer)
|
||||
{
|
||||
return this.field_145850_b.func_147438_o(this.field_145851_c, this.field_145848_d, this.field_145849_e) != this ? false : par1EntityPlayer.getDistanceSq((double) this.field_145851_c + 0.5D, (double) this.field_145848_d + 0.5D,
|
||||
(double) this.field_145849_e + 0.5D) <= 64.0D;
|
||||
return this.worldObj.getTileEntity(this.xCoord, this.yCoord, this.zCoord) != this ? false : par1EntityPlayer.getDistanceSq((double) this.xCoord + 0.5D, (double) this.yCoord + 0.5D,
|
||||
(double) this.zCoord + 0.5D) <= 64.0D;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -224,7 +224,7 @@ public class TileEntityLandmine extends TileEntity implements IInventory
|
||||
public void onInventoryChanged ()
|
||||
{
|
||||
super.onInventoryChanged();
|
||||
this.field_145850_b.func_147471_g(field_145851_c, field_145848_d, field_145849_e);
|
||||
this.worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -250,11 +250,11 @@ public class TileEntityLandmine extends TileEntity implements IInventory
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_145845_h ()
|
||||
public void updateEntity ()
|
||||
{
|
||||
if (shouldUpdateLogic)
|
||||
{
|
||||
field_145850_b.func_147479_m(field_145851_c, field_145848_d, field_145849_e);
|
||||
worldObj.func_147479_m(xCoord, yCoord, zCoord);
|
||||
shouldUpdateLogic = false;
|
||||
}
|
||||
if (soundcountything > 0)
|
||||
|
||||
@@ -60,8 +60,8 @@ public class ToolStationLogic extends InventoryLogic implements ISidedInventory
|
||||
buildTool(toolName);
|
||||
if (this.getWorld() != null)
|
||||
{
|
||||
this.field_145847_g = this.getWorld().getBlockMetadata(this.field_145851_c, this.field_145848_d, this.field_145849_e);
|
||||
this.getWorld().func_147476_b(this.field_145851_c, this.field_145848_d, this.field_145849_e, this);
|
||||
this.blockMetadata = this.getWorld().getBlockMetadata(this.xCoord, this.yCoord, this.zCoord);
|
||||
this.getWorld().markTileEntityChunkModified(this.xCoord, this.yCoord, this.zCoord, this);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -111,13 +111,13 @@ public class ToolStationLogic extends InventoryLogic implements ISidedInventory
|
||||
}
|
||||
|
||||
@Override
|
||||
public String func_145825_b ()
|
||||
public String getInventoryName ()
|
||||
{
|
||||
return getDefaultName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_145818_k_ ()
|
||||
public boolean hasCustomInventoryName ()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -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];
|
||||
|
||||
|
||||
@@ -25,20 +25,20 @@ public class BarricadeBlock extends MantleBlock
|
||||
|
||||
public BarricadeBlock(Block model, int meta)
|
||||
{
|
||||
super(Material.field_151575_d);
|
||||
super(Material.wood);
|
||||
this.modelBlock = model;
|
||||
this.modelMeta = meta;
|
||||
func_149711_c(4.0F);
|
||||
this.func_149647_a(TConstructRegistry.blockTab);
|
||||
setHardness(4.0F);
|
||||
this.setCreativeTab(TConstructRegistry.blockTab);
|
||||
}
|
||||
|
||||
public IIcon func_149691_a (int side, int meta)
|
||||
public IIcon getIcon (int side, int meta)
|
||||
{
|
||||
return modelBlock.func_149691_a(2, modelMeta);
|
||||
return modelBlock.getIcon(2, modelMeta);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_149651_a (IIconRegister par1IconRegister)
|
||||
public void registerBlockIcons (IIconRegister par1IconRegister)
|
||||
{
|
||||
|
||||
}
|
||||
@@ -63,26 +63,26 @@ public class BarricadeBlock extends MantleBlock
|
||||
return AxisAlignedBB.getBoundingBox(x, y, z, x + 1, y + 1, z + 1);
|
||||
}
|
||||
|
||||
public void func_147465_dBoundsBasedOnState (IBlockAccess par1IBlockAccess, int x, int y, int z)
|
||||
public void setBlockBoundsBasedOnState (IBlockAccess par1IBlockAccess, int x, int y, int z)
|
||||
{
|
||||
func_149676_a(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
|
||||
setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
|
||||
}
|
||||
|
||||
public void harvestBlock (World world, EntityPlayer player, int x, int y, int z, int meta)
|
||||
{
|
||||
if (meta % 4 > 0)
|
||||
{
|
||||
world.func_147465_d(x, y, z, this, meta - 1, 3);
|
||||
func_149642_a(world, x, y, z, new ItemStack(this));
|
||||
world.setBlock(x, y, z, this, meta - 1, 3);
|
||||
dropBlockAsItem(world, x, y, z, new ItemStack(this));
|
||||
}
|
||||
else
|
||||
{
|
||||
func_149642_a(world, x, y, z, new ItemStack(this));
|
||||
dropBlockAsItem(world, x, y, z, new ItemStack(this));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_149727_a (World world, int x, int y, int z, EntityPlayer player, int par6, float par7, float par8, float par9)
|
||||
public boolean onBlockActivated (World world, int x, int y, int z, EntityPlayer player, int par6, float par7, float par8, float par9)
|
||||
{
|
||||
ItemStack stack = player.getCurrentEquippedItem();
|
||||
if ((stack != null) && (ComparisonHelper.areEquivalent(stack.getItem(), this)) && (!player.isSneaking()))
|
||||
@@ -90,12 +90,12 @@ public class BarricadeBlock extends MantleBlock
|
||||
int meta = world.getBlockMetadata(x, y, z);
|
||||
if (meta % 4 != 3)
|
||||
{
|
||||
world.func_147465_d(x, y, z, this, meta + 1, 3);
|
||||
this.func_149689_a(world, x, y, z, player, stack);
|
||||
this.func_149714_e(world, x, y, z, meta);
|
||||
world.setBlock(x, y, z, this, meta + 1, 3);
|
||||
this.onBlockPlacedBy(world, x, y, z, player, stack);
|
||||
this.onPostBlockPlaced(world, x, y, z, meta);
|
||||
|
||||
Block var9 = 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() + 1.0F) / 2.0F, var9.field_149762_H.func_150494_d() * 0.8F);
|
||||
world.playSoundEffect(x + 0.5F, y + 0.5F, z + 0.5F, var9.stepSound.soundName, (var9.stepSound.getVolume() + 1.0F) / 2.0F, var9.stepSound.getPitch() * 0.8F);
|
||||
player.swingItem();
|
||||
if (!player.capabilities.isCreativeMode)
|
||||
stack.stackSize -= 1;
|
||||
@@ -116,15 +116,15 @@ public class BarricadeBlock extends MantleBlock
|
||||
int trueMeta = meta % 4;
|
||||
trueMeta -= power;
|
||||
if (trueMeta < 0)
|
||||
world.func_147465_d(x, y, z, Blocks.air, 0, 0);
|
||||
world.setBlock(x, y, z, Blocks.air, 0, 0);
|
||||
else
|
||||
world.setBlockMetadataWithNotify(x, y, z, (int) (meta - power), 3);
|
||||
func_149723_a(world, x, y, z, explosion);
|
||||
onBlockDestroyedByExplosion(world, x, y, z, explosion);
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public boolean func_149646_a (IBlockAccess world, int x, int y, int z, int side)
|
||||
public boolean shouldSideBeRendered (IBlockAccess world, int x, int y, int z, int side)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -30,28 +30,28 @@ public class Landmine extends MantleBlock
|
||||
{
|
||||
super(par4Material);
|
||||
this.triggerMobType = EnumCreatureType.monster;
|
||||
this.func_149647_a(TConstructRegistry.blockTab);
|
||||
this.func_149675_a(true);
|
||||
this.setCreativeTab(TConstructRegistry.blockTab);
|
||||
this.setTickRandomly(true);
|
||||
float var5 = 0.0625F;
|
||||
this.func_149676_a(var5, 0.0F, var5, 1.0F - var5, 0.03125F, 1.0F - var5);
|
||||
this.setBlockBounds(var5, 0.0F, var5, 1.0F - var5, 0.03125F, 1.0F - var5);
|
||||
}
|
||||
|
||||
public IIcon func_149673_e (IBlockAccess world, int x, int y, int z, int side)
|
||||
public IIcon getIcon (IBlockAccess world, int x, int y, int z, int side)
|
||||
{
|
||||
Block block = world.func_147439_a(x, y - 1, z);
|
||||
Block block = world.getBlock(x, y - 1, z);
|
||||
if (block != null)
|
||||
{
|
||||
return block.func_149673_e(world, x, y - 1, z, side);
|
||||
return block.getIcon(world, x, y - 1, z, side);
|
||||
}
|
||||
return Blocks.sponge.func_149691_a(side, world.getBlockMetadata(x, y, z));
|
||||
return Blocks.sponge.getIcon(side, world.getBlockMetadata(x, y, z));
|
||||
}
|
||||
|
||||
public IIcon func_149691_a (int side, int meta)
|
||||
public IIcon getIcon (int side, int meta)
|
||||
{
|
||||
return Blocks.sponge.func_149691_a(1, meta);
|
||||
return Blocks.sponge.getIcon(1, meta);
|
||||
}
|
||||
|
||||
public void func_149651_a (IIconRegister par1IconRegister)
|
||||
public void registerBlockIcons (IIconRegister par1IconRegister)
|
||||
{
|
||||
|
||||
}
|
||||
@@ -100,7 +100,7 @@ public class Landmine extends MantleBlock
|
||||
*/
|
||||
public boolean canPlaceBlockAt (World par1World, int par2, int par3, int par4)
|
||||
{
|
||||
return par1World.func_147466_a(par1World, par2, par3 - 1, par4) || BlockFence.func_149825_a(par1World.func_147439_a(par2, par3 - 1, par4));
|
||||
return par1World.doesBlockHaveSolidTopSurface(par1World, par2, par3 - 1, par4) || BlockFence.func_149825_a(par1World.getBlock(par2, par3 - 1, par4));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -111,14 +111,14 @@ public class Landmine extends MantleBlock
|
||||
{
|
||||
boolean var6 = false;
|
||||
|
||||
if (!par1World.func_147466_a(par1World, par2, par3 - 1, par4) && !BlockFence.func_149825_a(par1World.func_147439_a(par2, par3 - 1, par4)))
|
||||
if (!par1World.doesBlockHaveSolidTopSurface(par1World, par2, par3 - 1, par4) && !BlockFence.func_149825_a(par1World.getBlock(par2, par3 - 1, par4)))
|
||||
{
|
||||
var6 = true;
|
||||
}
|
||||
|
||||
if (var6)
|
||||
{
|
||||
this.func_149697_b(par1World, par2, par3, par4, par1World.getBlockMetadata(par2, par3, par4), 0);
|
||||
this.dropBlockAsItem(par1World, par2, par3, par4, par1World.getBlockMetadata(par2, par3, par4), 0);
|
||||
//par1World.setBlock(par2, par3, par4, 0);
|
||||
}
|
||||
}
|
||||
@@ -193,7 +193,7 @@ public class Landmine extends MantleBlock
|
||||
{
|
||||
Entity var10 = (Entity) var9.next();
|
||||
|
||||
if (!var10.func_145773_az())
|
||||
if (!var10.doesEntityNotTriggerPressurePlate())
|
||||
{
|
||||
var6 = true;
|
||||
break;
|
||||
@@ -234,11 +234,11 @@ public class Landmine extends MantleBlock
|
||||
{
|
||||
if (par6 > 0)
|
||||
{
|
||||
par1World.func_147459_d(par2, par3, par4, this);
|
||||
par1World.func_147459_d(par2, par3 - 1, par4, this);
|
||||
par1World.notifyBlocksOfNeighborChange(par2, par3, par4, this);
|
||||
par1World.notifyBlocksOfNeighborChange(par2, par3 - 1, par4, this);
|
||||
}
|
||||
|
||||
super.func_149749_a(par1World, par2, par3, par4, par5, par6);
|
||||
super.breakBlock(par1World, par2, par3, par4, par5, par6);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -251,11 +251,11 @@ public class Landmine extends MantleBlock
|
||||
|
||||
if (var5)
|
||||
{
|
||||
this.func_149676_a(var6, 0.0F, var6, 1.0F - var6, 0.03125F, 1.0F - var6);
|
||||
this.setBlockBounds(var6, 0.0F, var6, 1.0F - var6, 0.03125F, 1.0F - var6);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.func_149676_a(var6, 0.0F, var6, 1.0F - var6, 0.0625F, 1.0F - var6);
|
||||
this.setBlockBounds(var6, 0.0F, var6, 1.0F - var6, 0.0625F, 1.0F - var6);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -267,7 +267,7 @@ public class Landmine extends MantleBlock
|
||||
float var1 = 0.5F;
|
||||
float var2 = 0.125F;
|
||||
float var3 = 0.5F;
|
||||
this.func_149676_a(0.5F - var1, 0.5F - var2, 0.5F - var3, 0.5F + var1, 0.5F + var2, 0.5F + var3);
|
||||
this.setBlockBounds(0.5F - var1, 0.5F - var2, 0.5F - var3, 0.5F + var1, 0.5F + var2, 0.5F + var3);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -26,15 +26,15 @@ public class Punji extends MantleBlock
|
||||
|
||||
public Punji()
|
||||
{
|
||||
super(Material.field_151585_k);
|
||||
this.func_149676_a(0.125f, 0, 0.125f, 0.875f, 0.375f, 0.875f);
|
||||
this.field_149762_H = Block.field_149779_h;
|
||||
this.func_149647_a(TConstructRegistry.blockTab);
|
||||
this.func_149711_c(3.0f);
|
||||
super(Material.plants);
|
||||
this.setBlockBounds(0.125f, 0, 0.125f, 0.875f, 0.375f, 0.875f);
|
||||
this.stepSound = Block.soundTypeGrass;
|
||||
this.setCreativeTab(TConstructRegistry.blockTab);
|
||||
this.setHardness(3.0f);
|
||||
}
|
||||
|
||||
@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 instanceof EntityLivingBase)
|
||||
{
|
||||
@@ -48,7 +48,7 @@ public class Punji extends MantleBlock
|
||||
|
||||
/* Right-click adds sticks */
|
||||
@Override
|
||||
public boolean func_149727_a (World world, int x, int y, int z, EntityPlayer player, int par6, float hitX, float hitY, float hitZ)
|
||||
public boolean onBlockActivated (World world, int x, int y, int z, EntityPlayer player, int par6, float hitX, float hitY, float hitZ)
|
||||
{
|
||||
/*if (world.isRemote)
|
||||
return false;*/
|
||||
@@ -60,8 +60,8 @@ public class Punji extends MantleBlock
|
||||
if (stack != null && stack == new ItemStack(TRepo.punji))
|
||||
{
|
||||
world.setBlockMetadataWithNotify(x, y, z, meta + 1, 3);
|
||||
world.playSoundEffect((double) ((float) x + 0.5F), (double) ((float) y + 0.5F), (double) ((float) z + 0.5F), this.field_149762_H.field_150501_a,
|
||||
(this.field_149762_H.func_150497_c() + 1.0F) / 2.0F, this.field_149762_H.func_150494_d() * 0.8F);
|
||||
world.playSoundEffect((double) ((float) x + 0.5F), (double) ((float) y + 0.5F), (double) ((float) z + 0.5F), this.stepSound.soundName,
|
||||
(this.stepSound.getVolume() + 1.0F) / 2.0F, this.stepSound.getPitch() * 0.8F);
|
||||
player.swingItem();
|
||||
if (!player.capabilities.isCreativeMode)
|
||||
{
|
||||
@@ -104,14 +104,14 @@ public class Punji extends MantleBlock
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void func_149651_a (IIconRegister iconRegister)
|
||||
public void registerBlockIcons (IIconRegister iconRegister)
|
||||
{
|
||||
this.field_149761_L = iconRegister.registerIcon("tinker:punji");
|
||||
this.blockIcon = iconRegister.registerIcon("tinker:punji");
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public boolean func_149646_a (IBlockAccess world, int x, int y, int z, int side)
|
||||
public boolean shouldSideBeRendered (IBlockAccess world, int x, int y, int z, int side)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ public class StepSoundSlime extends SoundType
|
||||
*/
|
||||
public String getBreakSound ()
|
||||
{
|
||||
return this.field_150501_a + ".big";
|
||||
return this.soundName + ".big";
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -24,7 +24,7 @@ public class StepSoundSlime extends SoundType
|
||||
*/
|
||||
public String getStepSound ()
|
||||
{
|
||||
return this.field_150501_a + ".small";
|
||||
return this.soundName + ".small";
|
||||
}
|
||||
|
||||
}
|
||||
@@ -86,7 +86,7 @@ public class TClientEvents
|
||||
{
|
||||
for (int i = 0; i < TRepo.fluidBlocks.length; i++)
|
||||
{
|
||||
TRepo.fluids[i].setIcons(TRepo.fluidBlocks[i].func_149691_a(0, 0), TRepo.fluidBlocks[i].func_149691_a(2, 0));
|
||||
TRepo.fluids[i].setIcons(TRepo.fluidBlocks[i].getIcon(0, 0), TRepo.fluidBlocks[i].getIcon(2, 0));
|
||||
}
|
||||
TRepo.pigIronFluid.setIcons(stillIcons[0], flowIcons[0]);
|
||||
}
|
||||
|
||||
@@ -30,9 +30,9 @@ public class TClientTickHandler
|
||||
|
||||
if (event.phase.equals(Phase.END) && event.type.equals(Type.RENDER))
|
||||
{
|
||||
TRepo.oreBerry.func_150122_b(Blocks.leaves.field_150121_P);
|
||||
TRepo.oreBerrySecond.func_150122_b(Blocks.leaves.field_150121_P);
|
||||
TRepo.slimeLeaves.func_150122_b(Blocks.leaves.field_150121_P);
|
||||
TRepo.oreBerry.setGraphicsLevel(Blocks.leaves.field_150121_P);
|
||||
TRepo.oreBerrySecond.setGraphicsLevel(Blocks.leaves.field_150121_P);
|
||||
TRepo.slimeLeaves.setGraphicsLevel(Blocks.leaves.field_150121_P);
|
||||
/*if (mc.thePlayer != null && !mc.thePlayer.isAirBorne)
|
||||
controlInstance.landOnGround();*/
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ public class TControls extends TKeyHandler
|
||||
{
|
||||
mc = Minecraft.getMinecraft();
|
||||
jumpKey = mc.gameSettings.keyBindJump;
|
||||
invKey = mc.gameSettings.field_151445_Q;
|
||||
invKey = mc.gameSettings.keyBindInventory;
|
||||
return new KeyBinding[] { jumpKey, invKey };
|
||||
}
|
||||
|
||||
|
||||
@@ -74,7 +74,7 @@ public abstract class TKeyHandler
|
||||
for (int i = 0; i < keyBindings.length; i++)
|
||||
{
|
||||
KeyBinding keyBinding = keyBindings[i];
|
||||
int keyCode = keyBinding.func_151463_i();
|
||||
int keyCode = keyBinding.getKeyCode();
|
||||
boolean state = (keyCode < 0 ? Mouse.isButtonDown(keyCode + 100) : Keyboard.isKeyDown(keyCode));
|
||||
if (state != keyDown[i] || (state && repeatings[i]))
|
||||
{
|
||||
@@ -95,7 +95,7 @@ public abstract class TKeyHandler
|
||||
for (int i = 0; i < vKeyBindings.length; i++)
|
||||
{
|
||||
KeyBinding keyBinding = vKeyBindings[i];
|
||||
int keyCode = keyBinding.func_151463_i();
|
||||
int keyCode = keyBinding.getKeyCode();
|
||||
boolean state = (keyCode < 0 ? Mouse.isButtonDown(keyCode + 100) : Keyboard.isKeyDown(keyCode));
|
||||
if (state != keyDown[i + keyBindings.length] || (state && vRepeatings[i]))
|
||||
{
|
||||
|
||||
@@ -75,31 +75,31 @@ public class TProxyClient extends TProxyCommon
|
||||
public Object getClientGuiElement (int ID, EntityPlayer player, World world, int x, int y, int z)
|
||||
{
|
||||
if (ID == toolStationID)
|
||||
return new ToolStationGui(player.inventory, (ToolStationLogic) world.func_147438_o(x, y, z), world, x, y, z);
|
||||
return new ToolStationGui(player.inventory, (ToolStationLogic) world.getTileEntity(x, y, z), world, x, y, z);
|
||||
if (ID == partBuilderID)
|
||||
return new PartCrafterGui(player.inventory, (PartBuilderLogic) world.func_147438_o(x, y, z), world, x, y, z);
|
||||
return new PartCrafterGui(player.inventory, (PartBuilderLogic) world.getTileEntity(x, y, z), world, x, y, z);
|
||||
if (ID == patternChestID)
|
||||
return new PatternChestGui(player.inventory, (PatternChestLogic) world.func_147438_o(x, y, z), world, x, y, z);
|
||||
return new PatternChestGui(player.inventory, (PatternChestLogic) world.getTileEntity(x, y, z), world, x, y, z);
|
||||
if (ID == frypanGuiID)
|
||||
return new FrypanGui(player.inventory, (FrypanLogic) world.func_147438_o(x, y, z), world, x, y, z);
|
||||
return new FrypanGui(player.inventory, (FrypanLogic) world.getTileEntity(x, y, z), world, x, y, z);
|
||||
if (ID == smelteryGuiID)
|
||||
{
|
||||
if (PHConstruct.newSmeltery)
|
||||
return new AdaptiveSmelteryGui(player.inventory, (AdaptiveSmelteryLogic) world.func_147438_o(x, y, z), world, x, y, z);
|
||||
return new AdaptiveSmelteryGui(player.inventory, (AdaptiveSmelteryLogic) world.getTileEntity(x, y, z), world, x, y, z);
|
||||
else
|
||||
return new SmelteryGui(player.inventory, (SmelteryLogic) world.func_147438_o(x, y, z), world, x, y, z);
|
||||
return new SmelteryGui(player.inventory, (SmelteryLogic) world.getTileEntity(x, y, z), world, x, y, z);
|
||||
}
|
||||
if (ID == stencilTableID)
|
||||
return new StencilTableGui(player.inventory, (StencilTableLogic) world.func_147438_o(x, y, z), world, x, y, z);
|
||||
return new StencilTableGui(player.inventory, (StencilTableLogic) world.getTileEntity(x, y, z), world, x, y, z);
|
||||
if (ID == toolForgeID)
|
||||
return new ToolForgeGui(player.inventory, (ToolForgeLogic) world.func_147438_o(x, y, z), world, x, y, z);
|
||||
return new ToolForgeGui(player.inventory, (ToolForgeLogic) world.getTileEntity(x, y, z), world, x, y, z);
|
||||
if (ID == landmineID)
|
||||
return new GuiLandmine(new ContainerLandmine(player, (TileEntityLandmine) world.func_147438_o(x, y, z)));
|
||||
return new GuiLandmine(new ContainerLandmine(player, (TileEntityLandmine) world.getTileEntity(x, y, z)));
|
||||
if (ID == craftingStationID)
|
||||
return new CraftingStationGui(player.inventory, (CraftingStationLogic) world.func_147438_o(x, y, z), world, x, y, z);
|
||||
return new CraftingStationGui(player.inventory, (CraftingStationLogic) world.getTileEntity(x, y, z), world, x, y, z);
|
||||
|
||||
if (ID == furnaceID)
|
||||
return new FurnaceGui(player.inventory, (FurnaceLogic) world.func_147438_o(x, y, z));
|
||||
return new FurnaceGui(player.inventory, (FurnaceLogic) world.getTileEntity(x, y, z));
|
||||
|
||||
if (ID == inventoryGui)
|
||||
{
|
||||
@@ -126,27 +126,27 @@ public class TProxyClient extends TProxyCommon
|
||||
GL11.glTranslatef(-0.5F, -0.5F, -0.5F);
|
||||
tessellator.startDrawingQuads();
|
||||
tessellator.setNormal(0.0F, -1F, 0.0F);
|
||||
renderblocks.func_147768_a(block, 0.0D, 0.0D, 0.0D, getIcon(block.func_149691_a(0, meta)));
|
||||
renderblocks.renderFaceYNeg(block, 0.0D, 0.0D, 0.0D, getIcon(block.getIcon(0, meta)));
|
||||
tessellator.draw();
|
||||
tessellator.startDrawingQuads();
|
||||
tessellator.setNormal(0.0F, 1.0F, 0.0F);
|
||||
renderblocks.func_147806_b(block, 0.0D, 0.0D, 0.0D, getIcon(block.func_149691_a(1, meta)));//block.func_149691_a(1, meta));
|
||||
renderblocks.renderFaceYPos(block, 0.0D, 0.0D, 0.0D, getIcon(block.getIcon(1, meta)));//block.getIcon(1, meta));
|
||||
tessellator.draw();
|
||||
tessellator.startDrawingQuads();
|
||||
tessellator.setNormal(0.0F, 0.0F, -1F);
|
||||
renderblocks.func_147761_c(block, 0.0D, 0.0D, 0.0D, getIcon(block.func_149691_a(2, meta)));
|
||||
renderblocks.renderFaceZNeg(block, 0.0D, 0.0D, 0.0D, getIcon(block.getIcon(2, meta)));
|
||||
tessellator.draw();
|
||||
tessellator.startDrawingQuads();
|
||||
tessellator.setNormal(0.0F, 0.0F, 1.0F);
|
||||
renderblocks.func_147734_d(block, 0.0D, 0.0D, 0.0D, getIcon(block.func_149691_a(3, meta)));
|
||||
renderblocks.renderFaceZPos(block, 0.0D, 0.0D, 0.0D, getIcon(block.getIcon(3, meta)));
|
||||
tessellator.draw();
|
||||
tessellator.startDrawingQuads();
|
||||
tessellator.setNormal(-1F, 0.0F, 0.0F);
|
||||
renderblocks.func_147798_e(block, 0.0D, 0.0D, 0.0D, getIcon(block.func_149691_a(4, meta)));
|
||||
renderblocks.renderFaceXNeg(block, 0.0D, 0.0D, 0.0D, getIcon(block.getIcon(4, meta)));
|
||||
tessellator.draw();
|
||||
tessellator.startDrawingQuads();
|
||||
tessellator.setNormal(1.0F, 0.0F, 0.0F);
|
||||
renderblocks.func_147764_f(block, 0.0D, 0.0D, 0.0D, getIcon(block.func_149691_a(5, meta)));
|
||||
renderblocks.renderFaceXPos(block, 0.0D, 0.0D, 0.0D, getIcon(block.getIcon(5, meta)));
|
||||
tessellator.draw();
|
||||
GL11.glTranslatef(0.5F, 0.5F, 0.5F);
|
||||
}
|
||||
@@ -160,27 +160,27 @@ public class TProxyClient extends TProxyCommon
|
||||
GL11.glRotatef(60, 1, 0, 0);
|
||||
tessellator.startDrawingQuads();
|
||||
tessellator.setNormal(0.0F, -1F, 0.0F);
|
||||
renderblocks.func_147768_a(block, 0.0D, 0.0D, 0.0D, getIcon(block.func_149691_a(0, meta)));
|
||||
renderblocks.renderFaceYNeg(block, 0.0D, 0.0D, 0.0D, getIcon(block.getIcon(0, meta)));
|
||||
tessellator.draw();
|
||||
tessellator.startDrawingQuads();
|
||||
tessellator.setNormal(0.0F, 1.0F, 0.0F);
|
||||
renderblocks.func_147806_b(block, 0.0D, 0.0D, 0.0D, getIcon(block.func_149691_a(1, meta)));
|
||||
renderblocks.renderFaceYPos(block, 0.0D, 0.0D, 0.0D, getIcon(block.getIcon(1, meta)));
|
||||
tessellator.draw();
|
||||
tessellator.startDrawingQuads();
|
||||
tessellator.setNormal(0.0F, 0.0F, -1F);
|
||||
renderblocks.func_147761_c(block, 0.0D, 0.0D, 0.0D, getIcon(block.func_149691_a(2, meta)));
|
||||
renderblocks.renderFaceZNeg(block, 0.0D, 0.0D, 0.0D, getIcon(block.getIcon(2, meta)));
|
||||
tessellator.draw();
|
||||
tessellator.startDrawingQuads();
|
||||
tessellator.setNormal(0.0F, 0.0F, 1.0F);
|
||||
renderblocks.func_147734_d(block, 0.0D, 0.0D, 0.0D, getIcon(block.func_149691_a(3, meta)));
|
||||
renderblocks.renderFaceZPos(block, 0.0D, 0.0D, 0.0D, getIcon(block.getIcon(3, meta)));
|
||||
tessellator.draw();
|
||||
tessellator.startDrawingQuads();
|
||||
tessellator.setNormal(-1F, 0.0F, 0.0F);
|
||||
renderblocks.func_147798_e(block, 0.0D, 0.0D, 0.0D, getIcon(block.func_149691_a(4, meta)));
|
||||
renderblocks.renderFaceXNeg(block, 0.0D, 0.0D, 0.0D, getIcon(block.getIcon(4, meta)));
|
||||
tessellator.draw();
|
||||
tessellator.startDrawingQuads();
|
||||
tessellator.setNormal(1.0F, 0.0F, 0.0F);
|
||||
renderblocks.func_147764_f(block, 0.0D, 0.0D, 0.0D, getIcon(block.func_149691_a(5, meta)));
|
||||
renderblocks.renderFaceXPos(block, 0.0D, 0.0D, 0.0D, getIcon(block.getIcon(5, meta)));
|
||||
tessellator.draw();
|
||||
GL11.glTranslatef(0.5F, 0.5F, 0.5F);
|
||||
}
|
||||
@@ -896,11 +896,11 @@ public class TProxyClient extends TProxyCommon
|
||||
}
|
||||
else if (par1Str.equals("dripWater"))
|
||||
{
|
||||
entityfx = new EntityDropParticleFX(mc.theWorld, par2, par4, par6, Material.field_151586_h);
|
||||
entityfx = new EntityDropParticleFX(mc.theWorld, par2, par4, par6, Material.water);
|
||||
}
|
||||
else if (par1Str.equals("dripLava"))
|
||||
{
|
||||
entityfx = new EntityDropParticleFX(mc.theWorld, par2, par4, par6, Material.field_151587_i);
|
||||
entityfx = new EntityDropParticleFX(mc.theWorld, par2, par4, par6, Material.lava);
|
||||
}
|
||||
else if (par1Str.equals("snowshovel"))
|
||||
{
|
||||
|
||||
@@ -47,7 +47,7 @@ public class RenderArmorCast implements IItemRenderer
|
||||
@Override
|
||||
public void renderItem (ItemRenderType type, ItemStack item, Object... data)
|
||||
{
|
||||
RenderBlocks renderer = Minecraft.getMinecraft().renderGlobal.field_147592_B;
|
||||
RenderBlocks renderer = Minecraft.getMinecraft().renderGlobal.renderBlocksRg;
|
||||
Tessellator tessellator = Tessellator.instance;
|
||||
IIcon baseIcon = item.getItem() instanceof ArmorPattern ? ((ArmorPattern) item.getItem()).getBaseIcon() : item.getIconIndex();
|
||||
GL11.glPushMatrix();
|
||||
@@ -70,9 +70,9 @@ public class RenderArmorCast implements IItemRenderer
|
||||
default:
|
||||
break;
|
||||
}
|
||||
renderer.func_147782_a(0.1F, 0.1F, 0.1F, 0.9F, 0.83F, 0.9F);
|
||||
renderer.setRenderBounds(0.1F, 0.1F, 0.1F, 0.9F, 0.83F, 0.9F);
|
||||
renderCube(tessellator, renderer, baseIcon);
|
||||
renderer.func_147782_a(0.1F, 0.1F, 0.1F, 0.9F, 1.0F, 0.9F);
|
||||
renderer.setRenderBounds(0.1F, 0.1F, 0.1F, 0.9F, 1.0F, 0.9F);
|
||||
ArrayList<ForgeDirection> sides = new ArrayList<ForgeDirection>();
|
||||
sides.add(ForgeDirection.NORTH);
|
||||
sides.add(ForgeDirection.SOUTH);
|
||||
@@ -88,17 +88,17 @@ public class RenderArmorCast implements IItemRenderer
|
||||
{
|
||||
tessellator.startDrawingQuads();
|
||||
tessellator.setNormal(-1F, 0F, 0F);
|
||||
renderer.func_147798_e((Block) null, 0F, 0F, 0F, icon);
|
||||
renderer.renderFaceXNeg((Block) null, 0F, 0F, 0F, icon);
|
||||
tessellator.setNormal(1F, 0F, 0F);
|
||||
renderer.func_147764_f((Block) null, 0F, 0F, 0F, icon);
|
||||
renderer.renderFaceXPos((Block) null, 0F, 0F, 0F, icon);
|
||||
tessellator.setNormal(0F, -1F, 0F);
|
||||
renderer.func_147768_a((Block) null, 0F, 0F, 0F, icon);
|
||||
renderer.renderFaceYNeg((Block) null, 0F, 0F, 0F, icon);
|
||||
tessellator.setNormal(0F, 1F, 0F);
|
||||
renderer.func_147806_b((Block) null, 0F, 0F, 0F, icon);
|
||||
renderer.renderFaceYPos((Block) null, 0F, 0F, 0F, icon);
|
||||
tessellator.setNormal(0F, 0F, -1F);
|
||||
renderer.func_147761_c((Block) null, 0F, 0F, 0F, icon);
|
||||
renderer.renderFaceZNeg((Block) null, 0F, 0F, 0F, icon);
|
||||
tessellator.setNormal(0F, 0F, 1F);
|
||||
renderer.func_147734_d((Block) null, 0F, 0F, 0F, icon);
|
||||
renderer.renderFaceZPos((Block) null, 0F, 0F, 0F, icon);
|
||||
tessellator.draw();
|
||||
}
|
||||
|
||||
@@ -107,22 +107,22 @@ public class RenderArmorCast implements IItemRenderer
|
||||
tessellator.startDrawingQuads();
|
||||
tessellator.setNormal(-1F, 0F, 0F);
|
||||
if (sidesToRender.contains(ForgeDirection.WEST))
|
||||
renderer.func_147798_e((Block) null, 0F, 0F, 0F, icon);
|
||||
renderer.renderFaceXNeg((Block) null, 0F, 0F, 0F, icon);
|
||||
tessellator.setNormal(1F, 0F, 0F);
|
||||
if (sidesToRender.contains(ForgeDirection.EAST))
|
||||
renderer.func_147764_f((Block) null, 0F, 0F, 0F, icon);
|
||||
renderer.renderFaceXPos((Block) null, 0F, 0F, 0F, icon);
|
||||
tessellator.setNormal(0F, -1F, 0F);
|
||||
if (sidesToRender.contains(ForgeDirection.DOWN))
|
||||
renderer.func_147768_a((Block) null, 0F, 0F, 0F, icon);
|
||||
renderer.renderFaceYNeg((Block) null, 0F, 0F, 0F, icon);
|
||||
tessellator.setNormal(0F, 1F, 0F);
|
||||
if (sidesToRender.contains(ForgeDirection.UP))
|
||||
renderer.func_147806_b((Block) null, 0F, 0F, 0F, icon);
|
||||
renderer.renderFaceYPos((Block) null, 0F, 0F, 0F, icon);
|
||||
tessellator.setNormal(0F, 0F, -1F);
|
||||
if (sidesToRender.contains(ForgeDirection.SOUTH))
|
||||
renderer.func_147761_c((Block) null, 0F, 0F, 0F, icon);
|
||||
renderer.renderFaceZNeg((Block) null, 0F, 0F, 0F, icon);
|
||||
tessellator.setNormal(0F, 0F, 1F);
|
||||
if (sidesToRender.contains(ForgeDirection.NORTH))
|
||||
renderer.func_147734_d((Block) null, 0F, 0F, 0F, icon);
|
||||
renderer.renderFaceZPos((Block) null, 0F, 0F, 0F, icon);
|
||||
tessellator.draw();
|
||||
}
|
||||
|
||||
|
||||
@@ -27,101 +27,101 @@ public class BarricadeRender implements ISimpleBlockRenderingHandler
|
||||
if (meta / 4 == 0)
|
||||
{
|
||||
//if (type >= 0)
|
||||
//TODO func_147782_a
|
||||
renderer.func_147782_a(0.125, 0.0, 0.5, 0.375, 1.0, 0.75);
|
||||
renderer.func_147784_q(barricade, x, y, z);
|
||||
//TODO setRenderBounds
|
||||
renderer.setRenderBounds(0.125, 0.0, 0.5, 0.375, 1.0, 0.75);
|
||||
renderer.renderStandardBlock(barricade, x, y, z);
|
||||
|
||||
if (type >= 1)
|
||||
{
|
||||
renderer.func_147782_a(0.625, 0.0, 0.5, 0.875, 1.0, 0.75);
|
||||
renderer.func_147784_q(barricade, x, y, z);
|
||||
renderer.setRenderBounds(0.625, 0.0, 0.5, 0.875, 1.0, 0.75);
|
||||
renderer.renderStandardBlock(barricade, x, y, z);
|
||||
}
|
||||
|
||||
if (type >= 2)
|
||||
{
|
||||
renderer.func_147782_a(0.0, 0.125, 0.25, 1.0, 0.375, 0.5);
|
||||
renderer.func_147784_q(barricade, x, y, z);
|
||||
renderer.setRenderBounds(0.0, 0.125, 0.25, 1.0, 0.375, 0.5);
|
||||
renderer.renderStandardBlock(barricade, x, y, z);
|
||||
}
|
||||
|
||||
if (type >= 3)
|
||||
{
|
||||
renderer.func_147782_a(0.0, 0.625, 0.25, 1.0, 0.875, 0.5);
|
||||
renderer.func_147784_q(barricade, x, y, z);
|
||||
renderer.setRenderBounds(0.0, 0.625, 0.25, 1.0, 0.875, 0.5);
|
||||
renderer.renderStandardBlock(barricade, x, y, z);
|
||||
}
|
||||
}
|
||||
|
||||
if (meta / 4 == 1)
|
||||
{
|
||||
//if (type >= 0)
|
||||
renderer.func_147782_a(0.25, 0.0, 0.125, 0.5, 1.0, 0.375);
|
||||
renderer.func_147784_q(barricade, x, y, z);
|
||||
renderer.setRenderBounds(0.25, 0.0, 0.125, 0.5, 1.0, 0.375);
|
||||
renderer.renderStandardBlock(barricade, x, y, z);
|
||||
|
||||
if (type >= 1)
|
||||
{
|
||||
renderer.func_147782_a(0.25, 0.0, 0.625, 0.5, 1.0, 0.875);
|
||||
renderer.func_147784_q(barricade, x, y, z);
|
||||
renderer.setRenderBounds(0.25, 0.0, 0.625, 0.5, 1.0, 0.875);
|
||||
renderer.renderStandardBlock(barricade, x, y, z);
|
||||
}
|
||||
|
||||
if (type >= 2)
|
||||
{
|
||||
renderer.func_147782_a(0.5, 0.125, 0.0, 0.75, 0.375, 1.0);
|
||||
renderer.func_147784_q(barricade, x, y, z);
|
||||
renderer.setRenderBounds(0.5, 0.125, 0.0, 0.75, 0.375, 1.0);
|
||||
renderer.renderStandardBlock(barricade, x, y, z);
|
||||
}
|
||||
|
||||
if (type >= 3)
|
||||
{
|
||||
renderer.func_147782_a(0.5, 0.625, 0.0, 0.75, 0.875, 1.0);
|
||||
renderer.func_147784_q(barricade, x, y, z);
|
||||
renderer.setRenderBounds(0.5, 0.625, 0.0, 0.75, 0.875, 1.0);
|
||||
renderer.renderStandardBlock(barricade, x, y, z);
|
||||
}
|
||||
}
|
||||
|
||||
if (meta / 4 == 2)
|
||||
{
|
||||
//if (type >= 0)
|
||||
renderer.func_147782_a(0.125, 0.0, 0.25, 0.375, 1.0, 0.5);
|
||||
renderer.func_147784_q(barricade, x, y, z);
|
||||
renderer.setRenderBounds(0.125, 0.0, 0.25, 0.375, 1.0, 0.5);
|
||||
renderer.renderStandardBlock(barricade, x, y, z);
|
||||
|
||||
if (type >= 1)
|
||||
{
|
||||
renderer.func_147782_a(0.625, 0.0, 0.25, 0.875, 1.0, 0.5);
|
||||
renderer.func_147784_q(barricade, x, y, z);
|
||||
renderer.setRenderBounds(0.625, 0.0, 0.25, 0.875, 1.0, 0.5);
|
||||
renderer.renderStandardBlock(barricade, x, y, z);
|
||||
}
|
||||
|
||||
if (type >= 2)
|
||||
{
|
||||
renderer.func_147782_a(0.0, 0.125, 0.5, 1.0, 0.375, 0.75);
|
||||
renderer.func_147784_q(barricade, x, y, z);
|
||||
renderer.setRenderBounds(0.0, 0.125, 0.5, 1.0, 0.375, 0.75);
|
||||
renderer.renderStandardBlock(barricade, x, y, z);
|
||||
}
|
||||
|
||||
if (type >= 3)
|
||||
{
|
||||
renderer.func_147782_a(0.0, 0.625, 0.5, 1.0, 0.875, 0.75);
|
||||
renderer.func_147784_q(barricade, x, y, z);
|
||||
renderer.setRenderBounds(0.0, 0.625, 0.5, 1.0, 0.875, 0.75);
|
||||
renderer.renderStandardBlock(barricade, x, y, z);
|
||||
}
|
||||
}
|
||||
|
||||
if (meta / 4 == 3)
|
||||
{
|
||||
//if (type >= 0)
|
||||
renderer.func_147782_a(0.5, 0.0, 0.125, 0.75, 1.0, 0.375);
|
||||
renderer.func_147784_q(barricade, x, y, z);
|
||||
renderer.setRenderBounds(0.5, 0.0, 0.125, 0.75, 1.0, 0.375);
|
||||
renderer.renderStandardBlock(barricade, x, y, z);
|
||||
|
||||
if (type >= 1)
|
||||
{
|
||||
renderer.func_147782_a(0.5, 0.0, 0.625, 0.75, 1.0, 0.875);
|
||||
renderer.func_147784_q(barricade, x, y, z);
|
||||
renderer.setRenderBounds(0.5, 0.0, 0.625, 0.75, 1.0, 0.875);
|
||||
renderer.renderStandardBlock(barricade, x, y, z);
|
||||
}
|
||||
|
||||
if (type >= 2)
|
||||
{
|
||||
renderer.func_147782_a(0.25, 0.125, 0.0, 0.5, 0.375, 1.0);
|
||||
renderer.func_147784_q(barricade, x, y, z);
|
||||
renderer.setRenderBounds(0.25, 0.125, 0.0, 0.5, 0.375, 1.0);
|
||||
renderer.renderStandardBlock(barricade, x, y, z);
|
||||
}
|
||||
|
||||
if (type >= 3)
|
||||
{
|
||||
renderer.func_147782_a(0.25, 0.625, 0.0, 0.5, 0.875, 1.0);
|
||||
renderer.func_147784_q(barricade, x, y, z);
|
||||
renderer.setRenderBounds(0.25, 0.625, 0.0, 0.5, 0.875, 1.0);
|
||||
renderer.renderStandardBlock(barricade, x, y, z);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -135,9 +135,9 @@ public class BarricadeRender implements ISimpleBlockRenderingHandler
|
||||
{
|
||||
if (modelID == model)
|
||||
{
|
||||
renderer.func_147782_a(0.375F, 0.0F, 0.375F, 0.625F, 1.0F, 0.625F);
|
||||
renderer.setRenderBounds(0.375F, 0.0F, 0.375F, 0.625F, 1.0F, 0.625F);
|
||||
TProxyClient.renderStandardInvBlock(renderer, block, metadata);
|
||||
renderer.func_147782_a(0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 1.0F);
|
||||
renderer.setRenderBounds(0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 1.0F);
|
||||
TProxyClient.renderStandardInvBlock(renderer, block, metadata);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,28 +28,28 @@ public class BlockRenderCastingChannel implements ISimpleBlockRenderingHandler
|
||||
public void renderInventoryBlock (Block block, int metadata, int modelID, RenderBlocks renderer)
|
||||
{
|
||||
//Floor
|
||||
renderer.func_147782_a(0.3125D, 0.375D, 0.3125D, 0.6875D, 0.5D, 0.6875D);
|
||||
this.func_147784_q(block, metadata, renderer);
|
||||
renderer.setRenderBounds(0.3125D, 0.375D, 0.3125D, 0.6875D, 0.5D, 0.6875D);
|
||||
this.renderStandardBlock(block, metadata, renderer);
|
||||
//Channel Z-
|
||||
renderer.func_147782_a(0.3125D, 0.375D, 0D, 0.6875D, 0.5D, 0.3125D);
|
||||
this.func_147784_q(block, metadata, renderer);
|
||||
renderer.func_147782_a(0.3125D, 0.5D, 0D, 0.375D, 0.625D, 0.3125D);
|
||||
this.func_147784_q(block, metadata, renderer);
|
||||
renderer.func_147782_a(0.625D, 0.5D, 0D, 0.6875D, 0.625D, 0.3125D);
|
||||
this.func_147784_q(block, metadata, renderer);
|
||||
renderer.setRenderBounds(0.3125D, 0.375D, 0D, 0.6875D, 0.5D, 0.3125D);
|
||||
this.renderStandardBlock(block, metadata, renderer);
|
||||
renderer.setRenderBounds(0.3125D, 0.5D, 0D, 0.375D, 0.625D, 0.3125D);
|
||||
this.renderStandardBlock(block, metadata, renderer);
|
||||
renderer.setRenderBounds(0.625D, 0.5D, 0D, 0.6875D, 0.625D, 0.3125D);
|
||||
this.renderStandardBlock(block, metadata, renderer);
|
||||
//Channel Z+
|
||||
renderer.func_147782_a(0.3125D, 0.375D, 0.6875D, 0.6875D, 0.5D, 1D);
|
||||
this.func_147784_q(block, metadata, renderer);
|
||||
renderer.func_147782_a(0.3125D, 0.5D, 0.6875D, 0.375D, 0.625D, 1D);
|
||||
this.func_147784_q(block, metadata, renderer);
|
||||
renderer.func_147782_a(0.625D, 0.5D, 0.6875D, 0.6875D, 0.625D, 1D);
|
||||
this.func_147784_q(block, metadata, renderer);
|
||||
renderer.setRenderBounds(0.3125D, 0.375D, 0.6875D, 0.6875D, 0.5D, 1D);
|
||||
this.renderStandardBlock(block, metadata, renderer);
|
||||
renderer.setRenderBounds(0.3125D, 0.5D, 0.6875D, 0.375D, 0.625D, 1D);
|
||||
this.renderStandardBlock(block, metadata, renderer);
|
||||
renderer.setRenderBounds(0.625D, 0.5D, 0.6875D, 0.6875D, 0.625D, 1D);
|
||||
this.renderStandardBlock(block, metadata, renderer);
|
||||
//Wall X-
|
||||
renderer.func_147782_a(0.3125D, 0.375D, 0.3125D, 0.375D, 0.625D, 0.6875D);
|
||||
this.func_147784_q(block, metadata, renderer);
|
||||
renderer.setRenderBounds(0.3125D, 0.375D, 0.3125D, 0.375D, 0.625D, 0.6875D);
|
||||
this.renderStandardBlock(block, metadata, renderer);
|
||||
//Wall X+
|
||||
renderer.func_147782_a(0.625D, 0.375D, 0.3125D, 0.6875D, 0.625D, 0.6875D);
|
||||
this.func_147784_q(block, metadata, renderer);
|
||||
renderer.setRenderBounds(0.625D, 0.375D, 0.3125D, 0.6875D, 0.625D, 0.6875D);
|
||||
this.renderStandardBlock(block, metadata, renderer);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -57,95 +57,95 @@ public class BlockRenderCastingChannel implements ISimpleBlockRenderingHandler
|
||||
{
|
||||
if (modelID == renderID)
|
||||
{
|
||||
CastingChannelLogic tile = (CastingChannelLogic) world.func_147438_o(x, y, z);
|
||||
CastingChannelLogic tile = (CastingChannelLogic) world.getTileEntity(x, y, z);
|
||||
|
||||
if (!tile.hasTankConnected(ForgeDirection.DOWN))//CentrePiece, floor is removed if tank below is found
|
||||
{
|
||||
renderer.func_147782_a(0.3125D, 0.375D, 0.3125D, 0.6875D, 0.5D, 0.6875D);
|
||||
renderer.func_147784_q(block, x, y, z);
|
||||
renderer.setRenderBounds(0.3125D, 0.375D, 0.3125D, 0.6875D, 0.5D, 0.6875D);
|
||||
renderer.renderStandardBlock(block, x, y, z);
|
||||
}
|
||||
else
|
||||
//"Guiding Borders" when tank below is found
|
||||
{
|
||||
renderer.func_147782_a(0.375D, 0.125D, 0.3125D, 0.625D, 0.5D, 0.375D);
|
||||
renderer.func_147784_q(block, x, y, z);
|
||||
renderer.func_147782_a(0.375D, 0.125D, 0.625D, 0.625D, 0.5D, 0.6875D);
|
||||
renderer.func_147784_q(block, x, y, z);
|
||||
renderer.func_147782_a(0.3125D, 0.125D, 0.3125D, 0.375D, 0.5D, 0.6875D);
|
||||
renderer.func_147784_q(block, x, y, z);
|
||||
renderer.func_147782_a(0.625D, 0.125D, 0.3125D, 0.6875D, 0.5D, 0.6875D);
|
||||
renderer.func_147784_q(block, x, y, z);
|
||||
renderer.setRenderBounds(0.375D, 0.125D, 0.3125D, 0.625D, 0.5D, 0.375D);
|
||||
renderer.renderStandardBlock(block, x, y, z);
|
||||
renderer.setRenderBounds(0.375D, 0.125D, 0.625D, 0.625D, 0.5D, 0.6875D);
|
||||
renderer.renderStandardBlock(block, x, y, z);
|
||||
renderer.setRenderBounds(0.3125D, 0.125D, 0.3125D, 0.375D, 0.5D, 0.6875D);
|
||||
renderer.renderStandardBlock(block, x, y, z);
|
||||
renderer.setRenderBounds(0.625D, 0.125D, 0.3125D, 0.6875D, 0.5D, 0.6875D);
|
||||
renderer.renderStandardBlock(block, x, y, z);
|
||||
}
|
||||
/*renderer.func_147782_a(0.3125D, 0.375D, 0.3125D, 0.375D, 0.625D, 0.375D);
|
||||
renderer.func_147784_q(block, x, y, z);
|
||||
renderer.func_147782_a(0.3125D, 0.375D, 0.625D, 0.375D, 0.625D, 0.6875D);
|
||||
renderer.func_147784_q(block, x, y, z);
|
||||
renderer.func_147782_a(0.625D, 0.375D, 0.3125D, 0.6875D, 0.625D, 0.375D);
|
||||
renderer.func_147784_q(block, x, y, z);
|
||||
renderer.func_147782_a(0.625D, 0.375D, 0.625D, 0.6875D, 0.625D, 0.6875D);
|
||||
renderer.func_147784_q(block, x, y, z);*/
|
||||
/*renderer.setRenderBounds(0.3125D, 0.375D, 0.3125D, 0.375D, 0.625D, 0.375D);
|
||||
renderer.renderStandardBlock(block, x, y, z);
|
||||
renderer.setRenderBounds(0.3125D, 0.375D, 0.625D, 0.375D, 0.625D, 0.6875D);
|
||||
renderer.renderStandardBlock(block, x, y, z);
|
||||
renderer.setRenderBounds(0.625D, 0.375D, 0.3125D, 0.6875D, 0.625D, 0.375D);
|
||||
renderer.renderStandardBlock(block, x, y, z);
|
||||
renderer.setRenderBounds(0.625D, 0.375D, 0.625D, 0.6875D, 0.625D, 0.6875D);
|
||||
renderer.renderStandardBlock(block, x, y, z);*/
|
||||
if (tile.hasTankConnected(ForgeDirection.NORTH))//Channel to Z-
|
||||
{
|
||||
renderer.func_147782_a(0.3125D, 0.375D, 0D, 0.6875D, 0.5D, 0.3125D);
|
||||
renderer.func_147784_q(block, x, y, z);
|
||||
renderer.func_147782_a(0.3125D, 0.5D, 0D, 0.375D, 0.625D, 0.3125D);
|
||||
renderer.func_147784_q(block, x, y, z);
|
||||
renderer.func_147782_a(0.625D, 0.5D, 0D, 0.6875D, 0.625D, 0.3125D);
|
||||
renderer.func_147784_q(block, x, y, z);
|
||||
renderer.setRenderBounds(0.3125D, 0.375D, 0D, 0.6875D, 0.5D, 0.3125D);
|
||||
renderer.renderStandardBlock(block, x, y, z);
|
||||
renderer.setRenderBounds(0.3125D, 0.5D, 0D, 0.375D, 0.625D, 0.3125D);
|
||||
renderer.renderStandardBlock(block, x, y, z);
|
||||
renderer.setRenderBounds(0.625D, 0.5D, 0D, 0.6875D, 0.625D, 0.3125D);
|
||||
renderer.renderStandardBlock(block, x, y, z);
|
||||
}
|
||||
else
|
||||
//Wall to Z-
|
||||
{
|
||||
renderer.func_147782_a(0.375D, 0.5D, 0.3125D, 0.625D, 0.625D, 0.375D);
|
||||
renderer.func_147784_q(block, x, y, z);
|
||||
renderer.setRenderBounds(0.375D, 0.5D, 0.3125D, 0.625D, 0.625D, 0.375D);
|
||||
renderer.renderStandardBlock(block, x, y, z);
|
||||
}
|
||||
|
||||
if (tile.hasTankConnected(ForgeDirection.SOUTH))//Channel to Z+
|
||||
{
|
||||
renderer.func_147782_a(0.3125D, 0.375D, 0.6875D, 0.6875D, 0.5D, 1D);
|
||||
renderer.func_147784_q(block, x, y, z);
|
||||
renderer.func_147782_a(0.3125D, 0.5D, 0.6875D, 0.375D, 0.625D, 1D);
|
||||
renderer.func_147784_q(block, x, y, z);
|
||||
renderer.func_147782_a(0.625D, 0.5D, 0.6875D, 0.6875D, 0.625D, 1D);
|
||||
renderer.func_147784_q(block, x, y, z);
|
||||
renderer.setRenderBounds(0.3125D, 0.375D, 0.6875D, 0.6875D, 0.5D, 1D);
|
||||
renderer.renderStandardBlock(block, x, y, z);
|
||||
renderer.setRenderBounds(0.3125D, 0.5D, 0.6875D, 0.375D, 0.625D, 1D);
|
||||
renderer.renderStandardBlock(block, x, y, z);
|
||||
renderer.setRenderBounds(0.625D, 0.5D, 0.6875D, 0.6875D, 0.625D, 1D);
|
||||
renderer.renderStandardBlock(block, x, y, z);
|
||||
}
|
||||
else
|
||||
//Wall to Z+
|
||||
{
|
||||
renderer.func_147782_a(0.375D, 0.5D, 0.625D, 0.625D, 0.625D, 0.6875D);
|
||||
renderer.func_147784_q(block, x, y, z);
|
||||
renderer.setRenderBounds(0.375D, 0.5D, 0.625D, 0.625D, 0.625D, 0.6875D);
|
||||
renderer.renderStandardBlock(block, x, y, z);
|
||||
}
|
||||
|
||||
if (tile.hasTankConnected(ForgeDirection.WEST))//Channel to X-
|
||||
{
|
||||
renderer.func_147782_a(0D, 0.375D, 0.3125D, 0.3125D, 0.5D, 0.6875D);
|
||||
renderer.func_147784_q(block, x, y, z);
|
||||
renderer.func_147782_a(0D, 0.5D, 0.3125D, 0.375D, 0.625D, 0.375D);
|
||||
renderer.func_147784_q(block, x, y, z);
|
||||
renderer.func_147782_a(0D, 0.5D, 0.625D, 0.375D, 0.625D, 0.6875D);
|
||||
renderer.func_147784_q(block, x, y, z);
|
||||
renderer.setRenderBounds(0D, 0.375D, 0.3125D, 0.3125D, 0.5D, 0.6875D);
|
||||
renderer.renderStandardBlock(block, x, y, z);
|
||||
renderer.setRenderBounds(0D, 0.5D, 0.3125D, 0.375D, 0.625D, 0.375D);
|
||||
renderer.renderStandardBlock(block, x, y, z);
|
||||
renderer.setRenderBounds(0D, 0.5D, 0.625D, 0.375D, 0.625D, 0.6875D);
|
||||
renderer.renderStandardBlock(block, x, y, z);
|
||||
}
|
||||
else
|
||||
//Wall to X-
|
||||
{
|
||||
renderer.func_147782_a(0.3125D, 0.5D, 0.3125D, 0.375D, 0.625D, 0.6875D);
|
||||
renderer.func_147784_q(block, x, y, z);
|
||||
renderer.setRenderBounds(0.3125D, 0.5D, 0.3125D, 0.375D, 0.625D, 0.6875D);
|
||||
renderer.renderStandardBlock(block, x, y, z);
|
||||
}
|
||||
|
||||
if (tile.hasTankConnected(ForgeDirection.EAST))//Channel to X+
|
||||
{
|
||||
renderer.func_147782_a(0.6875D, 0.375D, 0.3125D, 1D, 0.5D, 0.6875D);
|
||||
renderer.func_147784_q(block, x, y, z);
|
||||
renderer.func_147782_a(0.625D, 0.5D, 0.3125D, 1D, 0.625D, 0.375D);
|
||||
renderer.func_147784_q(block, x, y, z);
|
||||
renderer.func_147782_a(0.625D, 0.5D, 0.625D, 1D, 0.625D, 0.6875D);
|
||||
renderer.func_147784_q(block, x, y, z);
|
||||
renderer.setRenderBounds(0.6875D, 0.375D, 0.3125D, 1D, 0.5D, 0.6875D);
|
||||
renderer.renderStandardBlock(block, x, y, z);
|
||||
renderer.setRenderBounds(0.625D, 0.5D, 0.3125D, 1D, 0.625D, 0.375D);
|
||||
renderer.renderStandardBlock(block, x, y, z);
|
||||
renderer.setRenderBounds(0.625D, 0.5D, 0.625D, 1D, 0.625D, 0.6875D);
|
||||
renderer.renderStandardBlock(block, x, y, z);
|
||||
}
|
||||
else
|
||||
//Wall to X+
|
||||
{
|
||||
renderer.func_147782_a(0.625D, 0.5D, 0.3125D, 0.6875D, 0.625D, 0.6875D);
|
||||
renderer.func_147784_q(block, x, y, z);
|
||||
renderer.setRenderBounds(0.625D, 0.5D, 0.3125D, 0.6875D, 0.625D, 0.6875D);
|
||||
renderer.renderStandardBlock(block, x, y, z);
|
||||
}
|
||||
|
||||
if (tile.liquid != null)
|
||||
@@ -156,7 +156,7 @@ public class BlockRenderCastingChannel implements ISimpleBlockRenderingHandler
|
||||
//if(tile.nearbyChannel(ForgeDirection.DOWN))startY = -0.5D;
|
||||
//else if(tile.hasTankConnected(ForgeDirection.DOWN))startY = 0D;
|
||||
float liquidAmount = tile.liquid.amount / 288f * 0.125f;
|
||||
renderer.func_147782_a(0.375D, startY, 0.375D, 0.625D, 0.5 + liquidAmount, 0.625D); //Center
|
||||
renderer.setRenderBounds(0.375D, startY, 0.375D, 0.625D, 0.5 + liquidAmount, 0.625D); //Center
|
||||
renderLiquidPart(world, x, y, z, block, renderer, tile);
|
||||
//TConstruct.logger.info(tile.recentlyFilledDelay);
|
||||
|
||||
@@ -164,14 +164,14 @@ public class BlockRenderCastingChannel implements ISimpleBlockRenderingHandler
|
||||
{
|
||||
if (tile.lastProvider == ForgeDirection.NORTH)
|
||||
{
|
||||
renderer.func_147782_a(0.375D, 0.5D, 0D, 0.625D, 0.5 + liquidAmount, 0.375D);
|
||||
renderer.setRenderBounds(0.375D, 0.5D, 0D, 0.625D, 0.5 + liquidAmount, 0.375D);
|
||||
renderLiquidPart(world, x, y, z, block, renderer, tile);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (tile.recentlyFilledDelay == 0)
|
||||
{
|
||||
renderer.func_147782_a(0.375D, 0.5D, 0D, 0.625D, 0.5 + liquidAmount, 0.375D);
|
||||
renderer.setRenderBounds(0.375D, 0.5D, 0D, 0.625D, 0.5 + liquidAmount, 0.375D);
|
||||
renderLiquidPart(world, x, y, z, block, renderer, tile);
|
||||
}
|
||||
}
|
||||
@@ -180,14 +180,14 @@ public class BlockRenderCastingChannel implements ISimpleBlockRenderingHandler
|
||||
{
|
||||
if (tile.lastProvider == ForgeDirection.SOUTH)
|
||||
{
|
||||
renderer.func_147782_a(0.375D, 0.5D, 0.625D, 0.625D, 0.5 + liquidAmount, 1D);
|
||||
renderer.setRenderBounds(0.375D, 0.5D, 0.625D, 0.625D, 0.5 + liquidAmount, 1D);
|
||||
renderLiquidPart(world, x, y, z, block, renderer, tile);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (tile.recentlyFilledDelay == 0)
|
||||
{
|
||||
renderer.func_147782_a(0.375D, 0.5D, 0.625D, 0.625D, 0.5 + liquidAmount, 1D);
|
||||
renderer.setRenderBounds(0.375D, 0.5D, 0.625D, 0.625D, 0.5 + liquidAmount, 1D);
|
||||
renderLiquidPart(world, x, y, z, block, renderer, tile);
|
||||
}
|
||||
}
|
||||
@@ -196,14 +196,14 @@ public class BlockRenderCastingChannel implements ISimpleBlockRenderingHandler
|
||||
{
|
||||
if (tile.lastProvider == ForgeDirection.WEST)
|
||||
{
|
||||
renderer.func_147782_a(0D, 0.5D, 0.375D, 0.375D, 0.5 + liquidAmount, 0.625D);
|
||||
renderer.setRenderBounds(0D, 0.5D, 0.375D, 0.375D, 0.5 + liquidAmount, 0.625D);
|
||||
renderLiquidPart(world, x, y, z, block, renderer, tile);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (tile.recentlyFilledDelay == 0)
|
||||
{
|
||||
renderer.func_147782_a(0D, 0.5D, 0.375D, 0.375D, 0.5 + liquidAmount, 0.625D);
|
||||
renderer.setRenderBounds(0D, 0.5D, 0.375D, 0.375D, 0.5 + liquidAmount, 0.625D);
|
||||
renderLiquidPart(world, x, y, z, block, renderer, tile);
|
||||
}
|
||||
}
|
||||
@@ -212,14 +212,14 @@ public class BlockRenderCastingChannel implements ISimpleBlockRenderingHandler
|
||||
{
|
||||
if (tile.lastProvider == ForgeDirection.EAST)
|
||||
{
|
||||
renderer.func_147782_a(0.625D, 0.5D, 0.375D, 1D, 0.5 + liquidAmount, 0.625D);
|
||||
renderer.setRenderBounds(0.625D, 0.5D, 0.375D, 1D, 0.5 + liquidAmount, 0.625D);
|
||||
renderLiquidPart(world, x, y, z, block, renderer, tile);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (tile.recentlyFilledDelay == 0)
|
||||
{
|
||||
renderer.func_147782_a(0.625D, 0.5D, 0.375D, 1D, 0.5 + liquidAmount, 0.625D);
|
||||
renderer.setRenderBounds(0.625D, 0.5D, 0.375D, 1D, 0.5 + liquidAmount, 0.625D);
|
||||
renderLiquidPart(world, x, y, z, block, renderer, tile);
|
||||
}
|
||||
}
|
||||
@@ -227,7 +227,7 @@ public class BlockRenderCastingChannel implements ISimpleBlockRenderingHandler
|
||||
}
|
||||
/*if(tile.lastProvider==ForgeDirection.UP && tile.recentlyFilledDelay != 0)
|
||||
{
|
||||
renderer.func_147782_a(0.375D, 0.5D, 0.375D, 0.625D, 1D, 0.625D);
|
||||
renderer.setRenderBounds(0.375D, 0.5D, 0.375D, 0.625D, 1D, 0.625D);
|
||||
renderLiquidPart(world, x, y, z, block, renderer, tile);
|
||||
}*/
|
||||
|
||||
@@ -235,12 +235,12 @@ public class BlockRenderCastingChannel implements ISimpleBlockRenderingHandler
|
||||
{
|
||||
if(tile.recentlyFilledDelay == 0 || tile.lastProvider == ForgeDirection.UP)
|
||||
{
|
||||
renderer.func_147782_a(0.375D, 0.5D, 0D, 0.625D, 0.625D, 0.375D);
|
||||
renderer.setRenderBounds(0.375D, 0.5D, 0D, 0.625D, 0.625D, 0.375D);
|
||||
renderLiquidPart(world, x, y, z, block, renderer, tile);
|
||||
}
|
||||
if(tile.recentlyFilledDelay != 0 && tile.lastProvider == ForgeDirection.UP)
|
||||
{
|
||||
renderer.func_147782_a(0.375D, 0.375D, 0.375D, 0.625D, 1D, 0.625D);
|
||||
renderer.setRenderBounds(0.375D, 0.375D, 0.375D, 0.625D, 1D, 0.625D);
|
||||
renderLiquidPart(world, x, y, z, block, renderer, tile);
|
||||
}
|
||||
}
|
||||
@@ -248,12 +248,12 @@ public class BlockRenderCastingChannel implements ISimpleBlockRenderingHandler
|
||||
{
|
||||
if(tile.recentlyFilledDelay == 0 || tile.lastProvider == ForgeDirection.UP)
|
||||
{
|
||||
renderer.func_147782_a(0.375D, 0.5D, 0.625D, 0.625D, 0.625D, 1D);
|
||||
renderer.setRenderBounds(0.375D, 0.5D, 0.625D, 0.625D, 0.625D, 1D);
|
||||
renderLiquidPart(world, x, y, z, block, renderer, tile);
|
||||
}
|
||||
if(tile.recentlyFilledDelay != 0 && tile.lastProvider == ForgeDirection.UP)
|
||||
{
|
||||
renderer.func_147782_a(0.375D, 0.375D, 0.375D, 0.625D, 1D, 0.625D);
|
||||
renderer.setRenderBounds(0.375D, 0.375D, 0.375D, 0.625D, 1D, 0.625D);
|
||||
renderLiquidPart(world, x, y, z, block, renderer, tile);
|
||||
}
|
||||
}
|
||||
@@ -261,12 +261,12 @@ public class BlockRenderCastingChannel implements ISimpleBlockRenderingHandler
|
||||
{
|
||||
if(tile.recentlyFilledDelay == 0 || tile.lastProvider == ForgeDirection.UP)
|
||||
{
|
||||
renderer.func_147782_a(0D, 0.5D, 0.375D, 0.375D, 0.625D, 0.625D);
|
||||
renderer.setRenderBounds(0D, 0.5D, 0.375D, 0.375D, 0.625D, 0.625D);
|
||||
renderLiquidPart(world, x, y, z, block, renderer, tile);
|
||||
}
|
||||
if(tile.recentlyFilledDelay != 0 && tile.lastProvider == ForgeDirection.UP)
|
||||
{
|
||||
renderer.func_147782_a(0.375D, 0.375D, 0.375D, 0.625D, 1D, 0.625D);
|
||||
renderer.setRenderBounds(0.375D, 0.375D, 0.375D, 0.625D, 1D, 0.625D);
|
||||
renderLiquidPart(world, x, y, z, block, renderer, tile);
|
||||
}
|
||||
}
|
||||
@@ -274,33 +274,33 @@ public class BlockRenderCastingChannel implements ISimpleBlockRenderingHandler
|
||||
{
|
||||
if(tile.recentlyFilledDelay == 0 || tile.lastProvider == ForgeDirection.UP)
|
||||
{
|
||||
renderer.func_147782_a(0.625D, 0.5D, 0.375D, 1D, 0.625D, 0.625D);
|
||||
renderer.setRenderBounds(0.625D, 0.5D, 0.375D, 1D, 0.625D, 0.625D);
|
||||
renderLiquidPart(world, x, y, z, block, renderer, tile);
|
||||
}
|
||||
if(tile.recentlyFilledDelay != 0 && tile.lastProvider == ForgeDirection.UP)
|
||||
{
|
||||
renderer.func_147782_a(0.375D, 0.375D, 0.375D, 0.625D, 1D, 0.625D);
|
||||
renderer.setRenderBounds(0.375D, 0.375D, 0.375D, 0.625D, 1D, 0.625D);
|
||||
renderLiquidPart(world, x, y, z, block, renderer, tile);
|
||||
}
|
||||
}
|
||||
if(tile.lastProvider==ForgeDirection.NORTH && tile.recentlyFilledDelay != 0)
|
||||
{
|
||||
renderer.func_147782_a(0.375D, 0.5D, 0.625D, 0.625D, 0.625D, 1D);
|
||||
renderer.setRenderBounds(0.375D, 0.5D, 0.625D, 0.625D, 0.625D, 1D);
|
||||
renderLiquidPart(world, x, y, z, block, renderer, tile);
|
||||
}
|
||||
if(tile.lastProvider==ForgeDirection.SOUTH && tile.recentlyFilledDelay != 0)
|
||||
{
|
||||
renderer.func_147782_a(0.375D, 0.5D, 0D, 0.625D, 0.625D, 0.375D);
|
||||
renderer.setRenderBounds(0.375D, 0.5D, 0D, 0.625D, 0.625D, 0.375D);
|
||||
renderLiquidPart(world, x, y, z, block, renderer, tile);
|
||||
}
|
||||
if(tile.lastProvider==ForgeDirection.WEST && tile.recentlyFilledDelay != 0)
|
||||
{
|
||||
renderer.func_147782_a(0.625D, 0.5D, 0.375D, 1D, 0.625D, 0.625D);
|
||||
renderer.setRenderBounds(0.625D, 0.5D, 0.375D, 1D, 0.625D, 0.625D);
|
||||
renderLiquidPart(world, x, y, z, block, renderer, tile);
|
||||
}
|
||||
if(tile.lastProvider==ForgeDirection.EAST && tile.recentlyFilledDelay != 0)
|
||||
{
|
||||
renderer.func_147782_a(0D, 0.5D, 0.375D, 0.375D, 0.625D, 0.625D);
|
||||
renderer.setRenderBounds(0D, 0.5D, 0.375D, 0.375D, 0.625D, 0.625D);
|
||||
renderLiquidPart(world, x, y, z, block, renderer, tile);
|
||||
}*/
|
||||
}
|
||||
@@ -312,7 +312,7 @@ public class BlockRenderCastingChannel implements ISimpleBlockRenderingHandler
|
||||
private void renderLiquidPart (IBlockAccess world, int x, int y, int z, Block block, RenderBlocks renderer, CastingChannelLogic logic)
|
||||
{
|
||||
FluidStack liquid = logic.liquid;
|
||||
int color = block.func_149720_d(world, x, y, z);
|
||||
int color = block.colorMultiplier(world, x, y, z);
|
||||
float red = (color >> 16 & 0xFF) / 255.0F;
|
||||
float green = (color >> 8 & 0xFF) / 255.0F;
|
||||
float blue = (color & 0xFF) / 255.0F;
|
||||
@@ -323,33 +323,33 @@ public class BlockRenderCastingChannel implements ISimpleBlockRenderingHandler
|
||||
BlockSkinRenderHelper.renderLiquidBlock(fluid.getStillIcon(), fluid.getFlowingIcon(), x, y, z, renderer, world);
|
||||
}
|
||||
|
||||
private void func_147784_q (Block block, int meta, RenderBlocks renderer)
|
||||
private void renderStandardBlock (Block block, int meta, RenderBlocks renderer)
|
||||
{
|
||||
Tessellator tessellator = Tessellator.instance;
|
||||
GL11.glTranslatef(-0.5F, -0.5F, -0.5F);
|
||||
tessellator.startDrawingQuads();
|
||||
tessellator.setNormal(0.0F, -1.0F, 0.0F);
|
||||
renderer.func_147768_a(block, 0.0D, 0.0D, 0.0D, block.func_149691_a(0, meta));
|
||||
renderer.renderFaceYNeg(block, 0.0D, 0.0D, 0.0D, block.getIcon(0, meta));
|
||||
tessellator.draw();
|
||||
tessellator.startDrawingQuads();
|
||||
tessellator.setNormal(0.0F, 1.0F, 0.0F);
|
||||
renderer.func_147806_b(block, 0.0D, 0.0D, 0.0D, block.func_149691_a(1, meta));
|
||||
renderer.renderFaceYPos(block, 0.0D, 0.0D, 0.0D, block.getIcon(1, meta));
|
||||
tessellator.draw();
|
||||
tessellator.startDrawingQuads();
|
||||
tessellator.setNormal(0.0F, 0.0F, -1.0F);
|
||||
renderer.func_147761_c(block, 0.0D, 0.0D, 0.0D, block.func_149691_a(2, meta));
|
||||
renderer.renderFaceZNeg(block, 0.0D, 0.0D, 0.0D, block.getIcon(2, meta));
|
||||
tessellator.draw();
|
||||
tessellator.startDrawingQuads();
|
||||
tessellator.setNormal(0.0F, 0.0F, 1.0F);
|
||||
renderer.func_147734_d(block, 0.0D, 0.0D, 0.0D, block.func_149691_a(3, meta));
|
||||
renderer.renderFaceZPos(block, 0.0D, 0.0D, 0.0D, block.getIcon(3, meta));
|
||||
tessellator.draw();
|
||||
tessellator.startDrawingQuads();
|
||||
tessellator.setNormal(-1.0F, 0.0F, 0.0F);
|
||||
renderer.func_147798_e(block, 0.0D, 0.0D, 0.0D, block.func_149691_a(4, meta));
|
||||
renderer.renderFaceXNeg(block, 0.0D, 0.0D, 0.0D, block.getIcon(4, meta));
|
||||
tessellator.draw();
|
||||
tessellator.startDrawingQuads();
|
||||
tessellator.setNormal(1.0F, 0.0F, 0.0F);
|
||||
renderer.func_147764_f(block, 0.0D, 0.0D, 0.0D, block.func_149691_a(5, meta));
|
||||
renderer.renderFaceXPos(block, 0.0D, 0.0D, 0.0D, block.getIcon(5, meta));
|
||||
tessellator.draw();
|
||||
GL11.glTranslatef(0.5F, 0.5F, 0.5F);
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -22,7 +22,7 @@ public class BreakingFX extends EntityFX
|
||||
super(par1World, par2, par4, par6, 0.0D, 0.0D, 0.0D);
|
||||
this.setParticleIcon(par8Item.getIconFromDamage(par9));
|
||||
this.particleRed = this.particleGreen = this.particleBlue = 1.0F;
|
||||
this.particleGravity = Blocks.snow.field_149763_I;
|
||||
this.particleGravity = Blocks.snow.blockParticleGravity;
|
||||
this.particleScale /= 2.0F;
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ import tconstruct.library.ItemBlocklike;
|
||||
public class CastingBasinSpecialRender extends TileEntitySpecialRenderer
|
||||
{
|
||||
@Override
|
||||
public void func_147500_a (TileEntity logic, double var2, double var4, double var6, float var8)
|
||||
public void renderTileEntityAt (TileEntity logic, double var2, double var4, double var6, float var8)
|
||||
{
|
||||
this.render((CastingBasinLogic) logic, var2, var4, var6, var8);
|
||||
}
|
||||
@@ -63,7 +63,7 @@ public class CastingBasinSpecialRender extends TileEntitySpecialRenderer
|
||||
}
|
||||
|
||||
RenderItem.renderInFrame = true;
|
||||
RenderManager.instance.func_147940_a(entityitem, 0.0D, 0.0D, 0.0D, 0.0F, 0.0F);
|
||||
RenderManager.instance.renderEntityWithPosYaw(entityitem, 0.0D, 0.0D, 0.0D, 0.0F, 0.0F);
|
||||
RenderItem.renderInFrame = false;
|
||||
|
||||
GL11.glPopMatrix();
|
||||
|
||||
@@ -16,7 +16,7 @@ import tconstruct.library.ItemBlocklike;
|
||||
public class CastingTableSpecialRenderer extends TileEntitySpecialRenderer
|
||||
{
|
||||
@Override
|
||||
public void func_147500_a (TileEntity logic, double var2, double var4, double var6, float var8)
|
||||
public void renderTileEntityAt (TileEntity logic, double var2, double var4, double var6, float var8)
|
||||
{
|
||||
//TConstruct.logger.info("Render!!!");
|
||||
this.render((CastingTableLogic) logic, var2, var4, var6, var8);
|
||||
@@ -62,7 +62,7 @@ public class CastingTableSpecialRenderer extends TileEntitySpecialRenderer
|
||||
}
|
||||
|
||||
RenderItem.renderInFrame = true;
|
||||
RenderManager.instance.func_147940_a(entityitem, 0.0D, 0.0D, 0.0D, 0.0F, 0.0F);
|
||||
RenderManager.instance.renderEntityWithPosYaw(entityitem, 0.0D, 0.0D, 0.0D, 0.0F, 0.0F);
|
||||
RenderItem.renderInFrame = false;
|
||||
|
||||
GL11.glPopMatrix();
|
||||
|
||||
@@ -21,7 +21,7 @@ public class DryingRackRender implements ISimpleBlockRenderingHandler
|
||||
{
|
||||
if (modelID == model)
|
||||
{
|
||||
renderer.func_147782_a(0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 1.0F);
|
||||
renderer.setRenderBounds(0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 1.0F);
|
||||
TProxyClient.renderStandardInvBlock(renderer, block, metadata);
|
||||
}
|
||||
}
|
||||
@@ -34,30 +34,30 @@ public class DryingRackRender implements ISimpleBlockRenderingHandler
|
||||
int metadata = world.getBlockMetadata(x, y, z);
|
||||
if (metadata == 0)
|
||||
{
|
||||
renderer.func_147782_a(0.0F, 0.0, 0.375F, 1.0F, 0.25F, 0.625F);
|
||||
renderer.setRenderBounds(0.0F, 0.0, 0.375F, 1.0F, 0.25F, 0.625F);
|
||||
}
|
||||
if (metadata == 1)
|
||||
{
|
||||
renderer.func_147782_a(0.375F, 0.0, 0.0f, 0.625F, 0.25F, 1F);
|
||||
renderer.setRenderBounds(0.375F, 0.0, 0.0f, 0.625F, 0.25F, 1F);
|
||||
}
|
||||
|
||||
if (metadata == 2)
|
||||
{
|
||||
renderer.func_147782_a(0.0F, 0.75F, 0.75F, 1F, 1.0F, 1F);
|
||||
renderer.setRenderBounds(0.0F, 0.75F, 0.75F, 1F, 1.0F, 1F);
|
||||
}
|
||||
if (metadata == 3)
|
||||
{
|
||||
renderer.func_147782_a(0.0F, 0.75F, 0F, 1F, 1.0F, 0.25F);
|
||||
renderer.setRenderBounds(0.0F, 0.75F, 0F, 1F, 1.0F, 0.25F);
|
||||
}
|
||||
if (metadata == 4)
|
||||
{
|
||||
renderer.func_147782_a(0.75F, 0.75F, 0.0f, 1F, 1.0F, 1F);
|
||||
renderer.setRenderBounds(0.75F, 0.75F, 0.0f, 1F, 1.0F, 1F);
|
||||
}
|
||||
if (metadata == 5)
|
||||
{
|
||||
renderer.func_147782_a(0F, 0.75F, 0.0f, 0.25F, 1.0F, 1F);
|
||||
renderer.setRenderBounds(0F, 0.75F, 0.0f, 0.25F, 1.0F, 1F);
|
||||
}
|
||||
renderer.func_147784_q(block, x, y, z);
|
||||
renderer.renderStandardBlock(block, x, y, z);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@@ -80,27 +80,27 @@ public class DryingRackRender implements ISimpleBlockRenderingHandler
|
||||
GL11.glTranslatef(-0.5F, -0.5F, -0.5F);
|
||||
tessellator.startDrawingQuads();
|
||||
tessellator.setNormal(0.0F, -1F, 0.0F);
|
||||
renderblocks.func_147768_a(block, 0.0D, 0.0D, 0.0D, block.func_149691_a(0, meta));
|
||||
renderblocks.renderFaceYNeg(block, 0.0D, 0.0D, 0.0D, block.getIcon(0, meta));
|
||||
tessellator.draw();
|
||||
tessellator.startDrawingQuads();
|
||||
tessellator.setNormal(0.0F, 1.0F, 0.0F);
|
||||
renderblocks.func_147806_b(block, 0.0D, 0.0D, 0.0D, block.func_149691_a(1, meta));
|
||||
renderblocks.renderFaceYPos(block, 0.0D, 0.0D, 0.0D, block.getIcon(1, meta));
|
||||
tessellator.draw();
|
||||
tessellator.startDrawingQuads();
|
||||
tessellator.setNormal(0.0F, 0.0F, -1F);
|
||||
renderblocks.func_147761_c(block, 0.0D, 0.0D, 0.0D, block.func_149691_a(2, meta));
|
||||
renderblocks.renderFaceZNeg(block, 0.0D, 0.0D, 0.0D, block.getIcon(2, meta));
|
||||
tessellator.draw();
|
||||
tessellator.startDrawingQuads();
|
||||
tessellator.setNormal(0.0F, 0.0F, 1.0F);
|
||||
renderblocks.func_147734_d(block, 0.0D, 0.0D, 0.0D, block.func_149691_a(3, meta));
|
||||
renderblocks.renderFaceZPos(block, 0.0D, 0.0D, 0.0D, block.getIcon(3, meta));
|
||||
tessellator.draw();
|
||||
tessellator.startDrawingQuads();
|
||||
tessellator.setNormal(-1F, 0.0F, 0.0F);
|
||||
renderblocks.func_147798_e(block, 0.0D, 0.0D, 0.0D, block.func_149691_a(4, meta));
|
||||
renderblocks.renderFaceXNeg(block, 0.0D, 0.0D, 0.0D, block.getIcon(4, meta));
|
||||
tessellator.draw();
|
||||
tessellator.startDrawingQuads();
|
||||
tessellator.setNormal(1.0F, 0.0F, 0.0F);
|
||||
renderblocks.func_147764_f(block, 0.0D, 0.0D, 0.0D, block.func_149691_a(5, meta));
|
||||
renderblocks.renderFaceXPos(block, 0.0D, 0.0D, 0.0D, block.getIcon(5, meta));
|
||||
tessellator.draw();
|
||||
GL11.glTranslatef(0.5F, 0.5F, 0.5F);
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ public class DryingRackSpecialRender extends TileEntitySpecialRenderer
|
||||
entityitem.getEntityItem().stackSize = 1;
|
||||
entityitem.hoverStart = 0.0F;
|
||||
GL11.glPushMatrix();
|
||||
int meta = logic.getWorld().getBlockMetadata(logic.field_145851_c, logic.field_145848_d, logic.field_145849_e);
|
||||
int meta = logic.getWorld().getBlockMetadata(logic.xCoord, logic.yCoord, logic.zCoord);
|
||||
if (meta <= 1)
|
||||
GL11.glTranslatef(1F, -0.375F, 0.905F);
|
||||
else
|
||||
@@ -75,14 +75,14 @@ public class DryingRackSpecialRender extends TileEntitySpecialRenderer
|
||||
}
|
||||
|
||||
RenderItem.renderInFrame = true;
|
||||
RenderManager.instance.func_147940_a(entityitem, 0.0D, 0.0D, 0.0D, 0.0F, 0.0F);
|
||||
RenderManager.instance.renderEntityWithPosYaw(entityitem, 0.0D, 0.0D, 0.0D, 0.0F, 0.0F);
|
||||
RenderItem.renderInFrame = false;
|
||||
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_147500_a (TileEntity logic, double var2, double var4, double var6, float var8)
|
||||
public void renderTileEntityAt (TileEntity logic, double var2, double var4, double var6, float var8)
|
||||
{
|
||||
this.render((DryingRackLogic) logic, var2, var4, var6, var8);
|
||||
}
|
||||
|
||||
@@ -19,18 +19,18 @@ public class FrypanRender implements ISimpleBlockRenderingHandler
|
||||
@Override
|
||||
public boolean renderWorldBlock (IBlockAccess world, int x, int y, int z, Block block, int modelID, RenderBlocks renderer)
|
||||
{
|
||||
renderer.func_147782_a(0.0F, 0.0F, 0.0F, 1.0F, 0.125F, 1.0F);
|
||||
renderer.func_147784_q(block, x, y, z);
|
||||
renderer.func_147782_a(0.0F, 0.125F, 0.0F, 0.125F, 0.25F, 1.0F);
|
||||
renderer.func_147784_q(block, x, y, z);
|
||||
renderer.func_147782_a(0.125F, 0.125F, 0.875F, 0.875F, 0.25F, 1.0F);
|
||||
renderer.func_147784_q(block, x, y, z);
|
||||
renderer.func_147782_a(0.875F, 0.125F, 0.0F, 1.0F, 0.25F, 1.0F);
|
||||
renderer.func_147784_q(block, x, y, z);
|
||||
renderer.func_147782_a(0.125F, 0.125F, 0.0F, 0.875F, 0.25F, 0.125F);
|
||||
renderer.func_147784_q(block, x, y, z);
|
||||
// renderer.func_147782_a(1F, 0.0F, 0.4375F, 2F, 0.125F, 0.5625F);
|
||||
// renderer.func_147784_q(block, x, y, z);
|
||||
renderer.setRenderBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.125F, 1.0F);
|
||||
renderer.renderStandardBlock(block, x, y, z);
|
||||
renderer.setRenderBounds(0.0F, 0.125F, 0.0F, 0.125F, 0.25F, 1.0F);
|
||||
renderer.renderStandardBlock(block, x, y, z);
|
||||
renderer.setRenderBounds(0.125F, 0.125F, 0.875F, 0.875F, 0.25F, 1.0F);
|
||||
renderer.renderStandardBlock(block, x, y, z);
|
||||
renderer.setRenderBounds(0.875F, 0.125F, 0.0F, 1.0F, 0.25F, 1.0F);
|
||||
renderer.renderStandardBlock(block, x, y, z);
|
||||
renderer.setRenderBounds(0.125F, 0.125F, 0.0F, 0.875F, 0.25F, 0.125F);
|
||||
renderer.renderStandardBlock(block, x, y, z);
|
||||
// renderer.setRenderBounds(1F, 0.0F, 0.4375F, 2F, 0.125F, 0.5625F);
|
||||
// renderer.renderStandardBlock(block, x, y, z);
|
||||
renderHandle(world, x, y, z, block, renderer);
|
||||
return true;
|
||||
}
|
||||
@@ -40,20 +40,20 @@ public class FrypanRender implements ISimpleBlockRenderingHandler
|
||||
switch (world.getBlockMetadata(x, y, z))
|
||||
{
|
||||
case 0:
|
||||
renderer.func_147782_a(1F, 0.0F, 0.4375F, 2F, 0.125F, 0.5625F);
|
||||
renderer.setRenderBounds(1F, 0.0F, 0.4375F, 2F, 0.125F, 0.5625F);
|
||||
break;
|
||||
case 1:
|
||||
renderer.func_147782_a(-1F, 0.0F, 0.4375F, 0F, 0.125F, 0.5625F);
|
||||
renderer.setRenderBounds(-1F, 0.0F, 0.4375F, 0F, 0.125F, 0.5625F);
|
||||
break;
|
||||
case 2:
|
||||
renderer.func_147782_a(0.4375F, 0.0F, -1F, 0.5625F, 0.125F, 0F);
|
||||
renderer.setRenderBounds(0.4375F, 0.0F, -1F, 0.5625F, 0.125F, 0F);
|
||||
break;
|
||||
case 3:
|
||||
renderer.func_147782_a(0.4375F, 0.0F, 1F, 0.5625F, 0.125F, 2F);
|
||||
renderer.setRenderBounds(0.4375F, 0.0F, 1F, 0.5625F, 0.125F, 2F);
|
||||
break;
|
||||
}
|
||||
|
||||
renderer.func_147784_q(block, x, y, z);
|
||||
renderer.renderStandardBlock(block, x, y, z);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -20,18 +20,18 @@ public class OreberryRender implements ISimpleBlockRenderingHandler
|
||||
int md = world.getBlockMetadata(x, y, z);
|
||||
if (md < 4)
|
||||
{
|
||||
renderer.func_147782_a(0.25F, 0.0F, 0.25F, 0.75F, 0.5F, 0.75F);
|
||||
renderer.func_147784_q(block, x, y, z);
|
||||
renderer.setRenderBounds(0.25F, 0.0F, 0.25F, 0.75F, 0.5F, 0.75F);
|
||||
renderer.renderStandardBlock(block, x, y, z);
|
||||
}
|
||||
else if (md < 8)
|
||||
{
|
||||
renderer.func_147782_a(0.125F, 0.0F, 0.125F, 0.875F, 0.75F, 0.875F);
|
||||
renderer.func_147784_q(block, x, y, z);
|
||||
renderer.setRenderBounds(0.125F, 0.0F, 0.125F, 0.875F, 0.75F, 0.875F);
|
||||
renderer.renderStandardBlock(block, x, y, z);
|
||||
}
|
||||
else
|
||||
{
|
||||
renderer.func_147782_a(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
|
||||
renderer.func_147784_q(block, x, y, z);
|
||||
renderer.setRenderBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
|
||||
renderer.renderStandardBlock(block, x, y, z);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
@@ -42,7 +42,7 @@ public class OreberryRender implements ISimpleBlockRenderingHandler
|
||||
{
|
||||
if (modelID == model)
|
||||
{
|
||||
renderer.func_147782_a(0.125F, 0.0F, 0.125F, 0.875F, 0.75F, 0.875F);
|
||||
renderer.setRenderBounds(0.125F, 0.0F, 0.125F, 0.875F, 0.75F, 0.875F);
|
||||
TProxyClient.renderStandardInvBlock(renderer, block, metadata);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,8 +28,8 @@ public class PaneConnectedRender implements ISimpleBlockRenderingHandler
|
||||
@Override
|
||||
public boolean renderWorldBlock (IBlockAccess world, int x, int y, int z, Block block, int modelId, RenderBlocks renderer)
|
||||
{
|
||||
boolean temp = renderer.field_147837_f;
|
||||
renderer.field_147837_f = true;
|
||||
boolean temp = renderer.renderAllFaces;
|
||||
renderer.renderAllFaces = true;
|
||||
|
||||
GlassPaneConnected pane = (GlassPaneConnected) block;
|
||||
|
||||
@@ -42,46 +42,46 @@ public class PaneConnectedRender implements ISimpleBlockRenderingHandler
|
||||
|
||||
if (!flag && !flag1 && !flag2 && !flag3)
|
||||
{
|
||||
renderer.func_147782_a(0D, 0D, 0.45D, 1D, 1D, 0.55D);
|
||||
renderer.func_147784_q(block, x, y, z);
|
||||
renderer.func_147782_a(0.45D, 0D, 0D, 0.55D, 1D, 1D);
|
||||
renderer.func_147784_q(block, x, y, z);
|
||||
renderer.setRenderBounds(0D, 0D, 0.45D, 1D, 1D, 0.55D);
|
||||
renderer.renderStandardBlock(block, x, y, z);
|
||||
renderer.setRenderBounds(0.45D, 0D, 0D, 0.55D, 1D, 1D);
|
||||
renderer.renderStandardBlock(block, x, y, z);
|
||||
}
|
||||
else
|
||||
{
|
||||
// renderer.func_147782_a(0.45D, 0D, 0.45D, 0.55D, 1D, 0.55D);
|
||||
// renderer.func_147784_q(block, x, y, z);
|
||||
// renderer.setRenderBounds(0.45D, 0D, 0.45D, 0.55D, 1D, 0.55D);
|
||||
// renderer.renderStandardBlock(block, x, y, z);
|
||||
}
|
||||
|
||||
// renderer.setOverrideBlockTexture(sideTexture);
|
||||
|
||||
if (flag)
|
||||
{
|
||||
renderer.func_147782_a(0.45D, 0D, 0.45D, 1D, 1D, 0.55D);
|
||||
renderer.func_147784_q(block, x, y, z);
|
||||
renderer.setRenderBounds(0.45D, 0D, 0.45D, 1D, 1D, 0.55D);
|
||||
renderer.renderStandardBlock(block, x, y, z);
|
||||
}
|
||||
|
||||
if (flag1)
|
||||
{
|
||||
renderer.func_147782_a(0D, 0D, 0.45D, 0.45D, 1D, 0.55D);
|
||||
renderer.func_147784_q(block, x, y, z);
|
||||
renderer.setRenderBounds(0D, 0D, 0.45D, 0.45D, 1D, 0.55D);
|
||||
renderer.renderStandardBlock(block, x, y, z);
|
||||
}
|
||||
|
||||
if (flag2)
|
||||
{
|
||||
renderer.func_147782_a(0.45D, 0D, 0.45D, 0.55D, 1D, 1D);
|
||||
renderer.func_147784_q(block, x, y, z);
|
||||
renderer.setRenderBounds(0.45D, 0D, 0.45D, 0.55D, 1D, 1D);
|
||||
renderer.renderStandardBlock(block, x, y, z);
|
||||
}
|
||||
|
||||
if (flag3)
|
||||
{
|
||||
renderer.func_147782_a(0.45D, 0D, 0D, 0.55D, 1D, 0.45D);
|
||||
renderer.func_147784_q(block, x, y, z);
|
||||
renderer.setRenderBounds(0.45D, 0D, 0D, 0.55D, 1D, 0.45D);
|
||||
renderer.renderStandardBlock(block, x, y, z);
|
||||
}
|
||||
|
||||
renderer.func_147771_a();
|
||||
renderer.clearOverrideBlockTexture();
|
||||
|
||||
renderer.field_147837_f = false;
|
||||
renderer.renderAllFaces = false;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Loaded 100 of 208 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user