Move mail blocks to PluginMail.blocks

This commit is contained in:
mezz committed 2015-11-19 01:04:37 -08:00
1 parent 6cfae1462f
commit ffe19807db
14 files changed
+129 -72

No files matched your search

@@ -15,21 +15,21 @@ import net.minecraft.entity.player.InventoryPlayer;
import forestry.core.gui.ContainerTile;
import forestry.core.gui.slots.SlotFiltered;
import forestry.core.gui.slots.SlotOutput;
import forestry.mail.inventory.InventoryPhilatelist;
import forestry.mail.tiles.TilePhilatelist;
import forestry.mail.inventory.InventoryStampCollector;
import forestry.mail.tiles.TileStampCollector;
public class ContainerPhilatelist extends ContainerTile<TilePhilatelist> {
public class ContainerStampCollector extends ContainerTile<TileStampCollector> {
public ContainerPhilatelist(InventoryPlayer player, TilePhilatelist tile) {
public ContainerStampCollector(InventoryPlayer player, TileStampCollector tile) {
super(tile, player, 8, 111);
// Filter
addSlotToContainer(new SlotFiltered(tile, InventoryPhilatelist.SLOT_FILTER, 80, 19));
addSlotToContainer(new SlotFiltered(tile, InventoryStampCollector.SLOT_FILTER, 80, 19));
// Collected Stamps
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 9; j++) {
addSlotToContainer(new SlotOutput(tile, j + i * 9 + InventoryPhilatelist.SLOT_BUFFER_1, 8 + j * 18, 46 + i * 18));
addSlotToContainer(new SlotOutput(tile, j + i * 9 + InventoryStampCollector.SLOT_BUFFER_1, 8 + j * 18, 46 + i * 18));
}
}
}
@@ -14,14 +14,12 @@ import net.minecraft.entity.player.InventoryPlayer;
import forestry.core.config.Constants;
import forestry.core.gui.GuiForestry;
import forestry.mail.tiles.TilePhilatelist;
import forestry.mail.tiles.TileStampCollector;
public class GuiPhilatelist extends GuiForestry<ContainerPhilatelist, TilePhilatelist> {
public GuiPhilatelist(InventoryPlayer player, TilePhilatelist tile) {
super(Constants.TEXTURE_PATH_GUI + "/philatelist.png", new ContainerPhilatelist(player, tile), tile);
public class GuiStampCollector extends GuiForestry<ContainerStampCollector, TileStampCollector> {
public GuiStampCollector(InventoryPlayer player, TileStampCollector tile) {
super(Constants.TEXTURE_PATH_GUI + "/philatelist.png", new ContainerStampCollector(player, tile), tile);
this.xSize = 176;
this.ySize = 193;
}
}