mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-25 06:14:46 +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
@@ -10,19 +10,19 @@
|
||||
******************************************************************************/
|
||||
package forestry.storage.gui;
|
||||
|
||||
import net.minecraft.inventory.IInventory;
|
||||
|
||||
import forestry.core.config.Defaults;
|
||||
import forestry.core.gadgets.TileForestry;
|
||||
import forestry.core.gui.ContainerForestry;
|
||||
import forestry.core.gui.GuiForestry;
|
||||
|
||||
public class GuiBackpack extends GuiForestry<TileForestry> {
|
||||
public class GuiBackpack extends GuiForestry<ContainerBackpack, IInventory> {
|
||||
|
||||
public GuiBackpack(ContainerForestry container) {
|
||||
public GuiBackpack(ContainerBackpack container) {
|
||||
this(Defaults.TEXTURE_PATH_GUI + "/backpack.png", container);
|
||||
}
|
||||
|
||||
protected GuiBackpack(String texture, ContainerForestry container) {
|
||||
super(texture, container);
|
||||
protected GuiBackpack(String texture, ContainerBackpack container) {
|
||||
super(texture, container, null);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -10,13 +10,11 @@
|
||||
******************************************************************************/
|
||||
package forestry.storage.gui;
|
||||
|
||||
|
||||
import forestry.core.config.Defaults;
|
||||
import forestry.core.gui.ContainerForestry;
|
||||
|
||||
public class GuiBackpackT2 extends GuiBackpack {
|
||||
|
||||
public GuiBackpackT2(ContainerForestry container) {
|
||||
public GuiBackpackT2(ContainerBackpack container) {
|
||||
super(Defaults.TEXTURE_PATH_GUI + "/backpackT2.png", container);
|
||||
|
||||
xSize = 176;
|
||||
|
||||
Reference in new issue
Block a user