mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-22 12:59:44 +00:00
Strict and consistent typing for GUI's Container and Inventory
This commit is contained in:
1 parent
7362286ead
commit
f4e9c61e3a
42 files changed
+131
-218
No files matched your search
@@ -11,25 +11,20 @@
|
||||
package forestry.food.gui;
|
||||
|
||||
import net.minecraft.entity.player.InventoryPlayer;
|
||||
import net.minecraft.inventory.IInventory;
|
||||
|
||||
import forestry.api.food.BeverageManager;
|
||||
import forestry.core.config.Defaults;
|
||||
import forestry.core.gadgets.TileForestry;
|
||||
import forestry.core.gui.GuiForestry;
|
||||
import forestry.food.items.ItemInfuser.InfuserInventory;
|
||||
|
||||
public class GuiInfuser extends GuiForestry<TileForestry> {
|
||||
public class GuiInfuser extends GuiForestry<ContainerInfuser, InfuserInventory> {
|
||||
|
||||
private final IInventory inventory;
|
||||
private int startX;
|
||||
private int startY;
|
||||
|
||||
public GuiInfuser(InventoryPlayer inventoryplayer, InfuserInventory inventory) {
|
||||
super(Defaults.TEXTURE_PATH_GUI + "/infuser.png", new ContainerInfuser(inventoryplayer, inventory), inventory);
|
||||
|
||||
this.inventory = inventory;
|
||||
|
||||
xSize = 176;
|
||||
ySize = 185;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user