Fix Syncs

This commit is contained in:
Alexander committed 2014-02-15 00:29:24 -05:00
1 parent 3ea1d589d3
commit 6574e331fc
10 files changed
+63 -83

No files matched your search

@@ -1,5 +1,8 @@
package tconstruct.blocks.logic;
import tconstruct.TConstruct;
import tconstruct.library.crafting.CastingRecipe;
import tconstruct.library.util.IPattern;
import mantle.blocks.abstracts.InventoryLogic;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.inventory.Container;
@@ -17,9 +20,6 @@ import net.minecraftforge.fluids.FluidStack;
import net.minecraftforge.fluids.FluidTankInfo;
import net.minecraftforge.fluids.IFluidHandler;
import net.minecraftforge.fluids.IFluidTank;
import tconstruct.TConstruct;
import tconstruct.library.crafting.CastingRecipe;
import tconstruct.library.util.IPattern;
public class CastingTableLogic extends InventoryLogic implements IFluidTank, IFluidHandler, ISidedInventory
{
@@ -425,7 +425,7 @@ public class CastingTableLogic extends InventoryLogic implements IFluidTank, IFl
return false;
}
@Override
public String getInventoryName ()
{
@@ -60,6 +60,7 @@ public class CraftingStationLogic extends InventoryLogic implements ISidedInvent
}
}
}
return new CraftingStationContainer(inventoryplayer, this, x, y, z);
}
@@ -100,7 +101,7 @@ public class CraftingStationLogic extends InventoryLogic implements ISidedInvent
{
return true;
}
@Override
public String getInventoryName ()
{
@@ -132,4 +133,4 @@ public class CraftingStationLogic extends InventoryLogic implements ISidedInvent
{
return false;
}
}
}
@@ -1,5 +1,9 @@
package tconstruct.blocks.logic;
import tconstruct.inventory.PartCrafterChestContainer;
import tconstruct.inventory.PartCrafterContainer;
import tconstruct.library.crafting.PatternBuilder;
import tconstruct.library.util.IPattern;
import mantle.blocks.abstracts.InventoryLogic;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.inventory.Container;
@@ -8,10 +12,6 @@ import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import tconstruct.inventory.PartCrafterChestContainer;
import tconstruct.inventory.PartCrafterContainer;
import tconstruct.library.crafting.PatternBuilder;
import tconstruct.library.util.IPattern;
public class PartBuilderLogic extends InventoryLogic implements ISidedInventory
{
@@ -38,9 +38,12 @@ public class PartBuilderLogic extends InventoryLogic implements ISidedInventory
{
for (int zPos = z - 1; zPos <= z + 1; zPos++)
{
TileEntity tile = world.getTileEntity(xPos, y, zPos);
if (tile != null && tile instanceof PatternChestLogic)
return new PartCrafterChestContainer(inventoryplayer, this, (PatternChestLogic) tile);
for (int yPos = y - 1; zPos <= y + 1; zPos++)
{
TileEntity tile = world.getTileEntity(xPos, yPos, zPos);
if (tile != null && tile instanceof PatternChestLogic)
return new PartCrafterChestContainer(inventoryplayer, this, (PatternChestLogic) tile);
}
}
}
return new PartCrafterContainer(inventoryplayer, this);
@@ -205,4 +208,4 @@ public class PartBuilderLogic extends InventoryLogic implements ISidedInventory
{
return false;
}
}
}
@@ -1,10 +1,10 @@
package tconstruct.blocks.logic;
import tconstruct.inventory.PatternChestContainer;
import mantle.blocks.abstracts.InventoryLogic;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.inventory.Container;
import net.minecraft.world.World;
import tconstruct.inventory.PatternChestContainer;
public class PatternChestLogic extends InventoryLogic
{
@@ -29,7 +29,7 @@ public class PatternChestLogic extends InventoryLogic
{
return new PatternChestContainer(inventoryplayer, this);
}
@Override
public String getInventoryName ()
{
@@ -51,4 +51,4 @@ public class PatternChestLogic extends InventoryLogic
public void closeInventory ()
{
}
}
}
@@ -1,5 +1,8 @@
package tconstruct.blocks.logic;
import tconstruct.common.TContent;
import tconstruct.common.TRepo;
import tconstruct.inventory.PatternShaperContainer;
import mantle.blocks.abstracts.InventoryLogic;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.inventory.Container;
@@ -7,8 +10,6 @@ import net.minecraft.inventory.ISidedInventory;
import net.minecraft.item.ItemStack;
import net.minecraft.util.StatCollector;
import net.minecraft.world.World;
import tconstruct.common.TRepo;
import tconstruct.inventory.PatternShaperContainer;
public class StencilTableLogic extends InventoryLogic implements ISidedInventory
{
@@ -35,7 +36,7 @@ public class StencilTableLogic extends InventoryLogic implements ISidedInventory
}
/*@Override
public void InventoryLogic()
public void markDirty()
{
if (inventory[0] == null)
inventory[1] = null;
@@ -120,7 +121,7 @@ public class StencilTableLogic extends InventoryLogic implements ISidedInventory
{
return false;
}
@Override
public String getInventoryName ()
{
@@ -142,4 +143,4 @@ public class StencilTableLogic extends InventoryLogic implements ISidedInventory
public void openInventory ()
{
}
}
}
@@ -1,5 +1,7 @@
package tconstruct.blocks.logic;
import tconstruct.inventory.ToolStationContainer;
import tconstruct.library.crafting.ToolBuilder;
import mantle.blocks.abstracts.InventoryLogic;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.inventory.Container;
@@ -7,8 +9,6 @@ import net.minecraft.inventory.ISidedInventory;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.world.World;
import tconstruct.inventory.ToolStationContainer;
import tconstruct.library.crafting.ToolBuilder;
/* Simple class for storing items in the block
*/