-
Notifications
You must be signed in to change notification settings - Fork 754
/
PatternChestLogic.java
54 lines (45 loc) · 1.04 KB
/
PatternChestLogic.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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;
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 ()
{
}
}