mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-21 20:52:26 +00:00
lots o fixes
This commit is contained in:
1 parent
d914004bde
commit
af3f99a746
66 files changed
+241
-229
No files matched your search
@@ -124,7 +124,7 @@ public class BlockLandmine extends BlockContainer
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registerIcons (IIconRegister par1IconRegister)
|
||||
public void func_149651_a (IIconRegister par1IconRegister)
|
||||
{
|
||||
this.field_149761_L = par1IconRegister.registerIcon("tinker:Landmine");
|
||||
}
|
||||
|
||||
@@ -94,7 +94,7 @@ public class CastingChannelBlock extends BlockContainer
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registerIcons (IIconRegister iconRegister)
|
||||
public void func_149651_a (IIconRegister iconRegister)
|
||||
{
|
||||
this.field_149761_L = iconRegister.registerIcon("tinker:searedstone");
|
||||
}
|
||||
|
||||
@@ -136,7 +136,7 @@ public class ConveyorBase extends MantleBlock
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registerIcons (IIconRegister iconRegister)
|
||||
public void func_149651_a (IIconRegister iconRegister)
|
||||
{
|
||||
String[] textureNames = new String[] { texturename, texturename + "_flow" };
|
||||
this.icons = new IIcon[textureNames.length];
|
||||
|
||||
@@ -7,6 +7,7 @@ import net.minecraft.block.material.Material;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.AxisAlignedBB;
|
||||
|
||||
@@ -97,7 +97,7 @@ public class FurnaceSlab extends InventorySlab
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registerIcons (IIconRegister iconRegister)
|
||||
public void func_149651_a (IIconRegister iconRegister)
|
||||
{
|
||||
String[] textureNames = getTextureNames();
|
||||
this.icons = new IIcon[textureNames.length];
|
||||
|
||||
@@ -64,7 +64,7 @@ public class GlassBlock extends TConstructBlock
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerIcons (IIconRegister iconRegister)
|
||||
public void func_149651_a (IIconRegister iconRegister)
|
||||
{
|
||||
this.icons = new IIcon[textureNames.length];
|
||||
|
||||
|
||||
@@ -611,7 +611,7 @@ public class GlassBlockConnected extends MantleBlock
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registerIcons (IIconRegister par1IconRegister)
|
||||
public void func_149651_a (IIconRegister par1IconRegister)
|
||||
{
|
||||
icons[0] = par1IconRegister.registerIcon("tinker:glass/" + folder + "/glass");
|
||||
icons[1] = par1IconRegister.registerIcon("tinker:glass/" + folder + "/glass_1_d");
|
||||
|
||||
@@ -65,7 +65,7 @@ public class GlassBlockConnectedMeta extends GlassBlockConnected
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registerIcons (IIconRegister par1IconRegister)
|
||||
public void func_149651_a (IIconRegister par1IconRegister)
|
||||
{
|
||||
for (int i = 0; i < textures.length; i++)
|
||||
{
|
||||
|
||||
@@ -39,7 +39,7 @@ public class GlassBlockStained extends TConstructBlock
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerIcons (IIconRegister iconRegister)
|
||||
public void func_149651_a (IIconRegister iconRegister)
|
||||
{
|
||||
this.icons = new IIcon[textureNames.length];
|
||||
|
||||
|
||||
@@ -672,9 +672,9 @@ public class GlassPaneConnected extends GlassBlockConnected
|
||||
return Block.opaqueCubeLookup[b] || b == (Block) this || b == Blocks.glass;
|
||||
}
|
||||
|
||||
public void registerIcons (IIconRegister par1IconRegister)
|
||||
public void func_149651_a (IIconRegister par1IconRegister)
|
||||
{
|
||||
super.registerIcons(par1IconRegister);
|
||||
super.func_149651_a(par1IconRegister);
|
||||
this.theIcon = par1IconRegister.registerIcon("tinker:glass/" + folder + "/glass_side");
|
||||
}
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ public class GlueFluid extends BlockFluidFinite {
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerIcons (IIconRegister iconRegister)
|
||||
public void func_149651_a (IIconRegister iconRegister)
|
||||
{
|
||||
stillIcon = iconRegister.registerIcon("tinker:liquid_glue");
|
||||
flowIcon = iconRegister.registerIcon("tinker:liquid_glue_flow");
|
||||
|
||||
@@ -83,7 +83,7 @@ public class LavaTankBlock extends BlockContainer
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean renderAsNormalBlock ()
|
||||
public boolean func_149686_d ()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ public class LiquidMetalFinite extends BlockFluidFinite
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registerIcons (IIconRegister iconRegister)
|
||||
public void func_149651_a (IIconRegister iconRegister)
|
||||
{
|
||||
stillIcon = iconRegister.registerIcon("tinker:" + texture);
|
||||
flowIcon = iconRegister.registerIcon("tinker:" + texture + "_flow");
|
||||
|
||||
@@ -58,7 +58,7 @@ public class MeatBlock extends Block
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerIcons (IIconRegister iconRegister)
|
||||
public void func_149651_a (IIconRegister iconRegister)
|
||||
{
|
||||
this.icons = new IIcon[textureNames.length];
|
||||
|
||||
|
||||
@@ -142,7 +142,7 @@ public class MultiBrick extends TConstructBlock
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerIcons (IIconRegister iconRegister)
|
||||
public void func_149651_a (IIconRegister iconRegister)
|
||||
{
|
||||
this.icons = new IIcon[textureNames.length];
|
||||
|
||||
|
||||
@@ -156,7 +156,7 @@ public class MultiBrickFancy extends TConstructBlock
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerIcons (IIconRegister iconRegister)
|
||||
public void func_149651_a (IIconRegister iconRegister)
|
||||
{
|
||||
this.icons = new IIcon[textureNames.length];
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ public class OreberryBush extends BlockLeavesBase implements IPlantable
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
@Override
|
||||
public void registerIcons (IIconRegister iconRegister)
|
||||
public void func_149651_a (IIconRegister iconRegister)
|
||||
{
|
||||
this.fastIcons = new IIcon[textureNames.length];
|
||||
this.fancyIcons = new IIcon[textureNames.length];
|
||||
|
||||
@@ -46,7 +46,7 @@ public class PaneBase extends Block
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerIcons (IIconRegister iconRegister)
|
||||
public void func_149651_a (IIconRegister iconRegister)
|
||||
{
|
||||
this.icons = new IIcon[textureNames.length];
|
||||
this.sideIcons = new IIcon[textureNames.length];
|
||||
|
||||
@@ -230,7 +230,7 @@ public class SearedBlock extends InventoryBlock
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean renderAsNormalBlock ()
|
||||
public boolean func_149686_d ()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ public class SearedSlab extends SlabBase
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerIcons (IIconRegister iconRegister)
|
||||
public void func_149651_a (IIconRegister iconRegister)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -80,7 +80,7 @@ public class SlabBase extends MantleBlock
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerIcons (IIconRegister iconRegister)
|
||||
public void func_149651_a (IIconRegister iconRegister)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -101,7 +101,7 @@ public class SlimePad extends MantleBlock
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean renderAsNormalBlock ()
|
||||
public boolean func_149686_d ()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -125,7 +125,7 @@ public class SlimePad extends MantleBlock
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registerIcons (IIconRegister iconRegister)
|
||||
public void func_149651_a (IIconRegister iconRegister)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ public class SoilSlab extends SlabBase
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerIcons (IIconRegister iconRegister)
|
||||
public void func_149651_a (IIconRegister iconRegister)
|
||||
{
|
||||
this.field_149761_L = iconRegister.registerIcon("tinker:grass_top");
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ public class SpeedSlab extends SlabBase
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerIcons (IIconRegister iconRegister)
|
||||
public void func_149651_a (IIconRegister iconRegister)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ public class StoneLadder extends BlockLadder
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registerIcons (IIconRegister register)
|
||||
public void func_149651_a (IIconRegister register)
|
||||
{
|
||||
icon = register.registerIcon("tinker:ladder_stone");
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class TankAirBlock extends BlockContainer
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean renderAsNormalBlock ()
|
||||
public boolean func_149686_d ()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -46,9 +46,9 @@ public class ToolForgeBlock extends InventoryBlock
|
||||
IIcon textureTop;
|
||||
|
||||
@Override
|
||||
public void registerIcons (IIconRegister iconRegister)
|
||||
public void func_149651_a (IIconRegister iconRegister)
|
||||
{
|
||||
super.registerIcons(iconRegister);
|
||||
super.func_149651_a(iconRegister);
|
||||
textureTop = iconRegister.registerIcon("tinker:toolforge_top");
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ public class ToolForgeBlock extends InventoryBlock
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean renderAsNormalBlock ()
|
||||
public boolean func_149686_d ()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -149,16 +149,16 @@ public class AdaptiveDrainLogic extends MultiServantLogic implements IFluidHandl
|
||||
}
|
||||
}
|
||||
|
||||
public void readFromNBT (NBTTagCompound tags)
|
||||
public void func_145839_a (NBTTagCompound tags)
|
||||
{
|
||||
super.readFromNBT(tags);
|
||||
super.func_145839_a(tags);
|
||||
direction = tags.getByte("Direction");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_145839_a (NBTTagCompound tags)
|
||||
public void func_145841_b (NBTTagCompound tags)
|
||||
{
|
||||
super.func_145839_a(tags);
|
||||
super.func_145841_b(tags);
|
||||
tags.setByte("Direction", direction);
|
||||
}
|
||||
|
||||
@@ -167,14 +167,14 @@ public class AdaptiveDrainLogic extends MultiServantLogic implements IFluidHandl
|
||||
public Packet getDescriptionPacket ()
|
||||
{
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
func_145839_a(tag);
|
||||
func_145841_b(tag);
|
||||
return new Packet132TileEntityData(field_145851_c, field_145848_d, field_145849_e, 1, tag);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDataPacket (NetworkManager net, Packet132TileEntityData packet)
|
||||
{
|
||||
readFromNBT(packet.data);
|
||||
func_145839_a(packet.data);
|
||||
field_145850_b.markBlockForRenderUpdate(field_145851_c, field_145848_d, field_145849_e);
|
||||
}
|
||||
}
|
||||
@@ -527,14 +527,14 @@ public class AdaptiveSmelteryLogic extends AdaptiveInventoryLogic implements IAc
|
||||
/* NBT */
|
||||
|
||||
@Override
|
||||
public void readFromNBT (NBTTagCompound tags)
|
||||
public void func_145839_a (NBTTagCompound tags)
|
||||
{
|
||||
super.readFromNBT(tags);
|
||||
super.func_145839_a(tags);
|
||||
readNetworkNBT(tags);
|
||||
|
||||
structure.readFromNBT(tags);
|
||||
multitank.readFromNBT(tags);
|
||||
smeltery.readFromNBT(tags);
|
||||
structure.func_145839_a(tags);
|
||||
multitank.func_145839_a(tags);
|
||||
smeltery.func_145839_a(tags);
|
||||
}
|
||||
|
||||
public void readNetworkNBT (NBTTagCompound tags)
|
||||
@@ -549,14 +549,14 @@ public class AdaptiveSmelteryLogic extends AdaptiveInventoryLogic implements IAc
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_145839_a (NBTTagCompound tags)
|
||||
public void func_145841_b (NBTTagCompound tags)
|
||||
{
|
||||
super.func_145839_a(tags);
|
||||
super.func_145841_b(tags);
|
||||
writeNetworkNBT(tags);
|
||||
|
||||
structure.func_145839_a(tags);
|
||||
multitank.func_145839_a(tags);
|
||||
smeltery.func_145839_a(tags);
|
||||
structure.func_145841_b(tags);
|
||||
multitank.func_145841_b(tags);
|
||||
smeltery.func_145841_b(tags);
|
||||
}
|
||||
|
||||
public void writeNetworkNBT (NBTTagCompound tags)
|
||||
|
||||
@@ -340,9 +340,9 @@ public class CastingBasinLogic extends InventoryLogic implements IFluidTank, IFl
|
||||
/* NBT */
|
||||
|
||||
@Override
|
||||
public void readFromNBT (NBTTagCompound tags)
|
||||
public void func_145839_a (NBTTagCompound tags)
|
||||
{
|
||||
super.readFromNBT(tags);
|
||||
super.func_145839_a(tags);
|
||||
readCustomNBT(tags);
|
||||
}
|
||||
|
||||
@@ -365,9 +365,9 @@ public class CastingBasinLogic extends InventoryLogic implements IFluidTank, IFl
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_145839_a (NBTTagCompound tags)
|
||||
public void func_145841_b (NBTTagCompound tags)
|
||||
{
|
||||
super.func_145839_a(tags);
|
||||
super.func_145841_b(tags);
|
||||
writeCustomNBT(tags);
|
||||
}
|
||||
|
||||
@@ -377,7 +377,7 @@ public class CastingBasinLogic extends InventoryLogic implements IFluidTank, IFl
|
||||
if (liquid != null)
|
||||
{
|
||||
NBTTagCompound nbt = new NBTTagCompound();
|
||||
liquid.func_145839_a(nbt);
|
||||
liquid.func_145841_b(nbt);
|
||||
tags.setTag("Fluid", nbt);
|
||||
}
|
||||
tags.setBoolean("Initialized", init);
|
||||
@@ -390,14 +390,14 @@ public class CastingBasinLogic extends InventoryLogic implements IFluidTank, IFl
|
||||
public Packet getDescriptionPacket ()
|
||||
{
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
func_145839_a(tag);
|
||||
func_145841_b(tag);
|
||||
return new Packet132TileEntityData(field_145851_c, field_145848_d, field_145849_e, 1, tag);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDataPacket (NetworkManager net, Packet132TileEntityData packet)
|
||||
{
|
||||
readFromNBT(packet.data);
|
||||
func_145839_a(packet.data);
|
||||
field_145850_b.markBlockForRenderUpdate(field_145851_c, field_145848_d, field_145849_e);
|
||||
}
|
||||
|
||||
|
||||
@@ -522,9 +522,9 @@ public class CastingChannelLogic extends TileEntity implements IFluidTank, IFlui
|
||||
}
|
||||
|
||||
@Override
|
||||
public void readFromNBT (NBTTagCompound tags)
|
||||
public void func_145839_a (NBTTagCompound tags)
|
||||
{
|
||||
super.readFromNBT(tags);
|
||||
super.func_145839_a(tags);
|
||||
readCustomNBT(tags);
|
||||
pullingLiquids = tags.getBoolean("PullingLiquids");
|
||||
}
|
||||
@@ -542,9 +542,9 @@ public class CastingChannelLogic extends TileEntity implements IFluidTank, IFlui
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_145839_a (NBTTagCompound tags)
|
||||
public void func_145841_b (NBTTagCompound tags)
|
||||
{
|
||||
super.func_145839_a(tags);
|
||||
super.func_145841_b(tags);
|
||||
writeCustomNBT(tags);
|
||||
tags.setBoolean("PullingLiquids", pullingLiquids);
|
||||
}
|
||||
@@ -555,7 +555,7 @@ public class CastingChannelLogic extends TileEntity implements IFluidTank, IFlui
|
||||
if (liquid != null)
|
||||
{
|
||||
NBTTagCompound nbt = new NBTTagCompound();
|
||||
liquid.func_145839_a(nbt);
|
||||
liquid.func_145841_b(nbt);
|
||||
tags.setTag("Fluid", nbt);
|
||||
}
|
||||
tags.setInteger("LastProvider", this.convertFDToInt(this.lastProvider));
|
||||
|
||||
@@ -264,7 +264,6 @@ public class CastingTableLogic extends InventoryLogic implements IFluidTank, IFl
|
||||
@Override
|
||||
public boolean canDrain (ForgeDirection from, Fluid fluid)
|
||||
{
|
||||
// TODO Auto-generated method stub
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -340,9 +339,9 @@ public class CastingTableLogic extends InventoryLogic implements IFluidTank, IFl
|
||||
/* NBT */
|
||||
|
||||
@Override
|
||||
public void readFromNBT (NBTTagCompound tags)
|
||||
public void func_145839_a (NBTTagCompound tags)
|
||||
{
|
||||
super.readFromNBT(tags);
|
||||
super.func_145839_a(tags);
|
||||
readCustomNBT(tags);
|
||||
}
|
||||
|
||||
@@ -363,9 +362,9 @@ public class CastingTableLogic extends InventoryLogic implements IFluidTank, IFl
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_145839_a (NBTTagCompound tags)
|
||||
public void func_145841_b (NBTTagCompound tags)
|
||||
{
|
||||
super.func_145839_a(tags);
|
||||
super.func_145841_b(tags);
|
||||
writeCustomNBT(tags);
|
||||
}
|
||||
|
||||
@@ -375,7 +374,7 @@ public class CastingTableLogic extends InventoryLogic implements IFluidTank, IFl
|
||||
if (liquid != null)
|
||||
{
|
||||
NBTTagCompound nbt = new NBTTagCompound();
|
||||
liquid.func_145839_a(nbt);
|
||||
liquid.func_145841_b(nbt);
|
||||
tags.setTag("Fluid", nbt);
|
||||
}
|
||||
tags.setBoolean("Initialized", init);
|
||||
@@ -395,7 +394,7 @@ public class CastingTableLogic extends InventoryLogic implements IFluidTank, IFl
|
||||
@Override
|
||||
public void onDataPacket (NetworkManager net, Packet132TileEntityData packet)
|
||||
{
|
||||
readFromNBT(packet.data);
|
||||
func_145839_a(packet.data);
|
||||
getWorld().markBlockForRenderUpdate(field_145851_c, field_145848_d, field_145849_e);
|
||||
}
|
||||
|
||||
|
||||
@@ -77,7 +77,7 @@ public class DryingRackLogic extends InventoryLogic
|
||||
}
|
||||
|
||||
@Override
|
||||
public void readFromNBT (NBTTagCompound tags)
|
||||
public void func_145839_a (NBTTagCompound tags)
|
||||
{
|
||||
currentTime = tags.getInteger("Time");
|
||||
maxTime = tags.getInteger("MaxTime");
|
||||
@@ -85,7 +85,7 @@ public class DryingRackLogic extends InventoryLogic
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_145839_a (NBTTagCompound tags)
|
||||
public void func_145841_b (NBTTagCompound tags)
|
||||
{
|
||||
tags.setInteger("Time", currentTime);
|
||||
tags.setInteger("MaxTime", maxTime);
|
||||
@@ -94,12 +94,12 @@ public class DryingRackLogic extends InventoryLogic
|
||||
|
||||
public void readCustomNBT (NBTTagCompound tags)
|
||||
{
|
||||
super.readFromNBT(tags);
|
||||
super.func_145839_a(tags);
|
||||
}
|
||||
|
||||
public void writeCustomNBT (NBTTagCompound tags)
|
||||
{
|
||||
super.func_145839_a(tags);
|
||||
super.func_145841_b(tags);
|
||||
}
|
||||
|
||||
/* Packets */
|
||||
|
||||
@@ -131,9 +131,9 @@ public class FaucetLogic extends TileEntity implements IFacingLogic, IActiveLogi
|
||||
}
|
||||
|
||||
@Override
|
||||
public void readFromNBT (NBTTagCompound tags)
|
||||
public void func_145839_a (NBTTagCompound tags)
|
||||
{
|
||||
super.readFromNBT(tags);
|
||||
super.func_145839_a(tags);
|
||||
readCustomNBT(tags);
|
||||
}
|
||||
|
||||
@@ -149,9 +149,9 @@ public class FaucetLogic extends TileEntity implements IFacingLogic, IActiveLogi
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_145839_a (NBTTagCompound tags)
|
||||
public void func_145841_b (NBTTagCompound tags)
|
||||
{
|
||||
super.func_145839_a(tags);
|
||||
super.func_145841_b(tags);
|
||||
writeCustomNBT(tags);
|
||||
}
|
||||
|
||||
@@ -162,7 +162,7 @@ public class FaucetLogic extends TileEntity implements IFacingLogic, IActiveLogi
|
||||
if (liquid != null)
|
||||
{
|
||||
NBTTagCompound nbt = new NBTTagCompound();
|
||||
liquid.func_145839_a(nbt);
|
||||
liquid.func_145841_b(nbt);
|
||||
tags.setTag("Fluid", nbt);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -270,17 +270,17 @@ public class FrypanLogic extends EquipLogic implements IActiveLogic
|
||||
}
|
||||
|
||||
/* NBT */
|
||||
public void readFromNBT (NBTTagCompound tags)
|
||||
public void func_145839_a (NBTTagCompound tags)
|
||||
{
|
||||
super.readFromNBT(tags);
|
||||
super.func_145839_a(tags);
|
||||
active = tags.getBoolean("Active");
|
||||
fuel = tags.getInteger("Fuel");
|
||||
fuelGague = tags.getInteger("FuelGague");
|
||||
}
|
||||
|
||||
public void func_145839_a (NBTTagCompound tags)
|
||||
public void func_145841_b (NBTTagCompound tags)
|
||||
{
|
||||
super.func_145839_a(tags);
|
||||
super.func_145841_b(tags);
|
||||
tags.setBoolean("Active", active);
|
||||
tags.setInteger("Fuel", fuel);
|
||||
tags.setInteger("FuelGague", fuelGague);
|
||||
|
||||
@@ -255,18 +255,18 @@ public class FurnaceLogic extends InventoryLogic implements IActiveLogic, IFacin
|
||||
}
|
||||
|
||||
/* NBT */
|
||||
public void readFromNBT (NBTTagCompound tags)
|
||||
public void func_145839_a (NBTTagCompound tags)
|
||||
{
|
||||
super.readFromNBT(tags);
|
||||
super.func_145839_a(tags);
|
||||
active = tags.getBoolean("Active");
|
||||
fuel = tags.getInteger("Fuel");
|
||||
fuelGague = tags.getInteger("FuelGague");
|
||||
readNetworkNBT(tags);
|
||||
}
|
||||
|
||||
public void func_145839_a (NBTTagCompound tags)
|
||||
public void func_145841_b (NBTTagCompound tags)
|
||||
{
|
||||
super.func_145839_a(tags);
|
||||
super.func_145841_b(tags);
|
||||
tags.setBoolean("Active", active);
|
||||
tags.setInteger("Fuel", fuel);
|
||||
tags.setInteger("FuelGague", fuelGague);
|
||||
|
||||
@@ -114,16 +114,16 @@ public class LavaTankLogic extends MultiServantLogic implements IFluidHandler
|
||||
}
|
||||
|
||||
@Override
|
||||
public void readFromNBT (NBTTagCompound tags)
|
||||
public void func_145839_a (NBTTagCompound tags)
|
||||
{
|
||||
super.readFromNBT(tags);
|
||||
super.func_145839_a(tags);
|
||||
readCustomNBT(tags);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_145839_a (NBTTagCompound tags)
|
||||
public void func_145841_b (NBTTagCompound tags)
|
||||
{
|
||||
super.func_145839_a(tags);
|
||||
super.func_145841_b(tags);
|
||||
writeCustomNBT(tags);
|
||||
}
|
||||
|
||||
|
||||
@@ -26,9 +26,9 @@ public class LiquidTextureLogic extends TileEntity
|
||||
return texturePos;
|
||||
}
|
||||
|
||||
public void readFromNBT (NBTTagCompound tags)
|
||||
public void func_145839_a (NBTTagCompound tags)
|
||||
{
|
||||
super.readFromNBT(tags);
|
||||
super.func_145839_a(tags);
|
||||
readCustomNBT(tags);
|
||||
}
|
||||
|
||||
@@ -37,9 +37,9 @@ public class LiquidTextureLogic extends TileEntity
|
||||
texturePos = tags.getInteger("Texture");
|
||||
}
|
||||
|
||||
public void func_145839_a (NBTTagCompound tags)
|
||||
public void func_145841_b (NBTTagCompound tags)
|
||||
{
|
||||
super.func_145839_a(tags);
|
||||
super.func_145841_b(tags);
|
||||
writeCustomNBT(tags);
|
||||
}
|
||||
|
||||
|
||||
@@ -146,16 +146,16 @@ public class PartBuilderLogic extends InventoryLogic implements ISidedInventory
|
||||
}
|
||||
|
||||
/* NBT */
|
||||
public void readFromNBT (NBTTagCompound tags)
|
||||
public void func_145839_a (NBTTagCompound tags)
|
||||
{
|
||||
super.readFromNBT(tags);
|
||||
super.func_145839_a(tags);
|
||||
craftedTop = tags.getBoolean("CraftedTop");
|
||||
craftedBottom = tags.getBoolean("CraftedBottom");
|
||||
}
|
||||
|
||||
public void writeToNBT (NBTTagCompound tags)
|
||||
public void func_145841_b (NBTTagCompound tags)
|
||||
{
|
||||
super.writeToNBT(tags);
|
||||
super.func_145841_b(tags);
|
||||
tags.setBoolean("CraftedTop", craftedTop);
|
||||
tags.setBoolean("CraftedBottom", craftedBottom);
|
||||
}
|
||||
@@ -177,4 +177,16 @@ public class PartBuilderLogic extends InventoryLogic implements ISidedInventory
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String func_145825_b ()
|
||||
{
|
||||
return getDefaultName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_145818_k_ ()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -41,16 +41,16 @@ public class RedwireLogic extends TileEntity
|
||||
}
|
||||
|
||||
@Override
|
||||
public void readFromNBT (NBTTagCompound tags)
|
||||
public void func_145839_a (NBTTagCompound tags)
|
||||
{
|
||||
super.readFromNBT(tags);
|
||||
super.func_145839_a(tags);
|
||||
readCustomNBT(tags);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_145839_a (NBTTagCompound tags)
|
||||
public void func_145841_b (NBTTagCompound tags)
|
||||
{
|
||||
super.func_145839_a(tags);
|
||||
super.func_145841_b(tags);
|
||||
writeCustomNBT(tags);
|
||||
}
|
||||
|
||||
|
||||
@@ -155,16 +155,16 @@ public class SmelteryDrainLogic extends MultiServantLogic implements IFluidHandl
|
||||
}
|
||||
}
|
||||
|
||||
public void readFromNBT (NBTTagCompound tags)
|
||||
public void func_145839_a (NBTTagCompound tags)
|
||||
{
|
||||
super.readFromNBT(tags);
|
||||
super.func_145839_a(tags);
|
||||
direction = tags.getByte("Direction");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_145839_a (NBTTagCompound tags)
|
||||
public void func_145841_b (NBTTagCompound tags)
|
||||
{
|
||||
super.func_145839_a(tags);
|
||||
super.func_145841_b(tags);
|
||||
tags.setByte("Direction", direction);
|
||||
}
|
||||
|
||||
@@ -173,14 +173,14 @@ public class SmelteryDrainLogic extends MultiServantLogic implements IFluidHandl
|
||||
public Packet getDescriptionPacket ()
|
||||
{
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
func_145839_a(tag);
|
||||
func_145841_b(tag);
|
||||
return new Packet132TileEntityData(field_145851_c, field_145848_d, field_145849_e, 1, tag);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDataPacket (NetworkManager net, Packet132TileEntityData packet)
|
||||
{
|
||||
readFromNBT(packet.data);
|
||||
func_145839_a(packet.data);
|
||||
field_145850_b.markBlockForRenderUpdate(field_145851_c, field_145848_d, field_145849_e);
|
||||
}
|
||||
}
|
||||
@@ -1070,11 +1070,11 @@ public class SmelteryLogic extends InventoryLogic implements IActiveLogic, IFaci
|
||||
/* NBT */
|
||||
|
||||
@Override
|
||||
public void readFromNBT (NBTTagCompound tags)
|
||||
public void func_145839_a (NBTTagCompound tags)
|
||||
{
|
||||
layers = tags.getInteger("Layers");
|
||||
inventory = new ItemStack[layers * 9];
|
||||
super.readFromNBT(tags);
|
||||
super.func_145839_a(tags);
|
||||
|
||||
//validStructure = tags.getBoolean("ValidStructure");
|
||||
internalTemp = tags.getInteger("InternalTemp");
|
||||
@@ -1108,9 +1108,9 @@ public class SmelteryLogic extends InventoryLogic implements IActiveLogic, IFaci
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_145839_a (NBTTagCompound tags)
|
||||
public void func_145841_b (NBTTagCompound tags)
|
||||
{
|
||||
super.func_145839_a(tags);
|
||||
super.func_145841_b(tags);
|
||||
|
||||
//tags.setBoolean("ValidStructure", validStructure);
|
||||
tags.setInteger("InternalTemp", internalTemp);
|
||||
@@ -1135,7 +1135,7 @@ public class SmelteryLogic extends InventoryLogic implements IActiveLogic, IFaci
|
||||
for (FluidStack liquid : moltenMetal)
|
||||
{
|
||||
NBTTagCompound nbt = new NBTTagCompound();
|
||||
liquid.func_145839_a(nbt);
|
||||
liquid.func_145841_b(nbt);
|
||||
taglist.appendTag(nbt);
|
||||
}
|
||||
|
||||
@@ -1154,7 +1154,7 @@ public class SmelteryLogic extends InventoryLogic implements IActiveLogic, IFaci
|
||||
@Override
|
||||
public void onDataPacket (NetworkManager net, Packet132TileEntityData packet)
|
||||
{
|
||||
readFromNBT(packet.data);
|
||||
func_145839_a(packet.data);
|
||||
onInventoryChanged();
|
||||
field_145850_b.markBlockForRenderUpdate(field_145851_c, field_145848_d, field_145849_e);
|
||||
this.needsUpdate = true;
|
||||
|
||||
@@ -150,11 +150,11 @@ public class TankAirLogic extends InventoryLogic implements IServantLogic, ISide
|
||||
/* NBT */
|
||||
|
||||
@Override
|
||||
public void readFromNBT (NBTTagCompound tags)
|
||||
public void func_145839_a (NBTTagCompound tags)
|
||||
{
|
||||
super.readFromNBT(tags);
|
||||
super.func_145839_a(tags);
|
||||
readNetworkNBT(tags);
|
||||
multitank.readFromNBT(tags);
|
||||
multitank.func_145839_a(tags);
|
||||
}
|
||||
|
||||
public void readNetworkNBT (NBTTagCompound tags)
|
||||
@@ -164,11 +164,11 @@ public class TankAirLogic extends InventoryLogic implements IServantLogic, ISide
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_145839_a (NBTTagCompound tags)
|
||||
public void func_145841_b (NBTTagCompound tags)
|
||||
{
|
||||
super.func_145839_a(tags);
|
||||
writeNetworkNBT(tags);
|
||||
multitank.func_145839_a(tags);
|
||||
multitank.func_145841_b(tags);
|
||||
}
|
||||
|
||||
public void writeNetworkNBT (NBTTagCompound tags)
|
||||
|
||||
@@ -44,9 +44,9 @@ public class TileEntityLandmine extends TileEntity implements IInventory
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_145839_a (NBTTagCompound par1NBTTagCompound)
|
||||
public void func_145841_b (NBTTagCompound par1NBTTagCompound)
|
||||
{
|
||||
super.func_145839_a(par1NBTTagCompound);
|
||||
super.func_145841_b(par1NBTTagCompound);
|
||||
NBTTagList nbttaglist = new NBTTagList();
|
||||
|
||||
for (int i = 0; i < this.inventory.length; ++i)
|
||||
@@ -55,7 +55,7 @@ public class TileEntityLandmine extends TileEntity implements IInventory
|
||||
{
|
||||
NBTTagCompound nbttagcompound1 = new NBTTagCompound();
|
||||
nbttagcompound1.setByte("Slot", (byte) i);
|
||||
this.inventory[i].func_145839_a(nbttagcompound1);
|
||||
this.inventory[i].writeToNBT(nbttagcompound1);
|
||||
nbttaglist.appendTag(nbttagcompound1);
|
||||
}
|
||||
}
|
||||
@@ -71,9 +71,9 @@ public class TileEntityLandmine extends TileEntity implements IInventory
|
||||
}
|
||||
|
||||
@Override
|
||||
public void readFromNBT (NBTTagCompound par1NBTTagCompound)
|
||||
public void func_145839_a (NBTTagCompound par1NBTTagCompound)
|
||||
{
|
||||
super.readFromNBT(par1NBTTagCompound);
|
||||
super.func_145839_a(par1NBTTagCompound);
|
||||
NBTTagList nbttaglist = par1NBTTagCompound.getTagList("Items");
|
||||
this.inventory = new ItemStack[this.getSizeInventory()];
|
||||
|
||||
@@ -100,14 +100,14 @@ public class TileEntityLandmine extends TileEntity implements IInventory
|
||||
public Packet getDescriptionPacket ()
|
||||
{
|
||||
NBTTagCompound nbt = new NBTTagCompound();
|
||||
func_145839_a(nbt);
|
||||
func_145841_b(nbt);
|
||||
return new Packet132TileEntityData(field_145851_c, field_145848_d, field_145849_e, 0, nbt);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDataPacket (NetworkManager net, Packet132TileEntityData packet)
|
||||
{
|
||||
readFromNBT(packet.data);
|
||||
func_145839_a(packet.data);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -27,7 +27,7 @@ public class SlimeFluid extends BlockFluidClassic
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerIcons (IIconRegister iconRegister)
|
||||
public void func_149651_a (IIconRegister iconRegister)
|
||||
{
|
||||
stillIcon = iconRegister.registerIcon("tinker:slime_blue");
|
||||
flowIcon = iconRegister.registerIcon("tinker:slime_blue_flow");
|
||||
|
||||
@@ -48,7 +48,7 @@ public class SlimeGrass extends MantleBlock
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerIcons (IIconRegister iconRegister)
|
||||
public void func_149651_a (IIconRegister iconRegister)
|
||||
{
|
||||
this.icons = new IIcon[textureNames.length];
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ public class SlimeLeaves extends BlockLeaves
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
@Override
|
||||
public void registerIcons (IIconRegister iconRegister)
|
||||
public void func_149651_a (IIconRegister iconRegister)
|
||||
{
|
||||
this.fastIcons = new IIcon[fastLeaves.length];
|
||||
this.fancyIcons = new IIcon[fancyLeaves.length];
|
||||
|
||||
@@ -38,7 +38,7 @@ public class SlimeSapling extends BlockSapling
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerIcons (IIconRegister iconRegister)
|
||||
public void func_149651_a (IIconRegister iconRegister)
|
||||
{
|
||||
this.icons = new IIcon[textureNames.length];
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ public class BarricadeBlock extends MantleBlock
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registerIcons (IIconRegister par1IconRegister)
|
||||
public void func_149651_a (IIconRegister par1IconRegister)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@@ -104,7 +104,7 @@ public class Punji extends MantleBlock
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerIcons (IIconRegister iconRegister)
|
||||
public void func_149651_a (IIconRegister iconRegister)
|
||||
{
|
||||
this.field_149761_L = iconRegister.registerIcon("tinker:punji");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user