mirror of
https://github.com/GTNewHorizons/Applied-Energistics-2-Unofficial.git
synced 2026-11-22 13:10:06 +00:00
Universal GUI (#872)
Co-authored-by: Kogepan229 <[email protected]> Co-authored-by: Kogepan229 <[email protected]> Co-authored-by: Martin Robertz <[email protected]>
This commit is contained in:
225 files changed
+8182
-5684
No files matched your search
@@ -13,6 +13,7 @@
|
||||
|
||||
package appeng.api.implementations.guiobjects;
|
||||
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
@@ -21,5 +22,12 @@ import net.minecraft.world.World;
|
||||
*/
|
||||
public interface IGuiItem {
|
||||
|
||||
IGuiItemObject getGuiObject(ItemStack is, World world, int x, int y, int z);
|
||||
@Deprecated
|
||||
default IGuiItemObject getGuiObject(ItemStack is, World world, int x, int y, int z) {
|
||||
return getGuiObject(is, world, null, x, y, z);
|
||||
}
|
||||
|
||||
default IGuiItemObject getGuiObject(ItemStack is, World world, EntityPlayer player, int x, int y, int z) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user