2013-07-26 21:18:53 -07:00
|
|
|
package tconstruct.blocks.logic;
|
|
|
|
|
|
|
|
|
|
import tconstruct.inventory.PatternChestContainer;
|
2013-12-01 12:19:43 +00:00
|
|
|
import mantle.blocks.abstracts.InventoryLogic;
|
2013-07-26 21:18:53 -07:00
|
|
|
import net.minecraft.entity.player.InventoryPlayer;
|
|
|
|
|
import net.minecraft.inventory.Container;
|
|
|
|
|
import net.minecraft.world.World;
|
|
|
|
|
|
|
|
|
|
public class PatternChestLogic extends InventoryLogic
|
|
|
|
|
{
|
|
|
|
|
public PatternChestLogic()
|
|
|
|
|
{
|
|
|
|
|
super(30);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public boolean canUpdate ()
|
|
|
|
|
{
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public String getDefaultName ()
|
|
|
|
|
{
|
|
|
|
|
return "toolstation.patternholder";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public Container getGuiContainer (InventoryPlayer inventoryplayer, World world, int x, int y, int z)
|
|
|
|
|
{
|
|
|
|
|
return new PatternChestContainer(inventoryplayer, this);
|
|
|
|
|
}
|
2014-02-01 16:06:02 -05:00
|
|
|
|
|
|
|
|
@Override
|
2014-02-05 08:28:53 -05:00
|
|
|
public String getInventoryName ()
|
2014-02-01 16:06:02 -05:00
|
|
|
{
|
|
|
|
|
return getDefaultName();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
2014-02-05 08:28:53 -05:00
|
|
|
public boolean hasCustomInventoryName ()
|
2014-02-01 16:06:02 -05:00
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
2014-02-05 10:22:35 -05:00
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void openInventory() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void closeInventory() {
|
|
|
|
|
}
|
2013-07-26 21:18:53 -07:00
|
|
|
}
|