mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-13 17:04:24 +00:00
54 lines
1.0 KiB
Java
54 lines
1.0 KiB
Java
package tconstruct.blocks.logic;
|
|
|
|
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
|
|
{
|
|
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);
|
|
}
|
|
|
|
@Override
|
|
public String getInventoryName ()
|
|
{
|
|
return getDefaultName();
|
|
}
|
|
|
|
@Override
|
|
public boolean hasCustomInventoryName ()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
@Override
|
|
public void openInventory ()
|
|
{
|
|
}
|
|
|
|
@Override
|
|
public void closeInventory ()
|
|
{
|
|
}
|
|
} |