From a265085bd7742ebf1e2e95e4bf7397ba5bea01dc Mon Sep 17 00:00:00 2001 From: miozune Date: Sun, 9 Oct 2022 18:10:02 +0900 Subject: updateBuildScript & spotlessApply --- src/main/java/kekztech/GuiHandler.java | 55 ++++++++++++++++++---------------- 1 file changed, 29 insertions(+), 26 deletions(-) (limited to 'src/main/java/kekztech/GuiHandler.java') diff --git a/src/main/java/kekztech/GuiHandler.java b/src/main/java/kekztech/GuiHandler.java index 97d4350b71..56c7a8b102 100644 --- a/src/main/java/kekztech/GuiHandler.java +++ b/src/main/java/kekztech/GuiHandler.java @@ -10,32 +10,35 @@ import net.minecraft.tileentity.TileEntity; import net.minecraft.world.World; public class GuiHandler implements IGuiHandler { - - public static final int ITEM_PROXY_SOURCE = 0; - public static final int ITEM_PROXY_ENDPOINT = 1; - - @Override - public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) { - final TileEntity te = world.getTileEntity(x, y, z); - if(te != null) { - switch(ID) { - case ITEM_PROXY_SOURCE: return new Container_ItemProxySource(te, player); - case ITEM_PROXY_ENDPOINT: return new Container_ItemProxyEndpoint(te, player); - } - } - return null; - } - @Override - public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) { - final TileEntity te = world.getTileEntity(x, y, z); - if(te != null) { - switch(ID) { - case ITEM_PROXY_SOURCE: return new Gui_ItemProxySource(te, player); - case ITEM_PROXY_ENDPOINT: return new Gui_ItemProxyEndpoint(te, player); - } - } - return null; - } + public static final int ITEM_PROXY_SOURCE = 0; + public static final int ITEM_PROXY_ENDPOINT = 1; + @Override + public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) { + final TileEntity te = world.getTileEntity(x, y, z); + if (te != null) { + switch (ID) { + case ITEM_PROXY_SOURCE: + return new Container_ItemProxySource(te, player); + case ITEM_PROXY_ENDPOINT: + return new Container_ItemProxyEndpoint(te, player); + } + } + return null; + } + + @Override + public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) { + final TileEntity te = world.getTileEntity(x, y, z); + if (te != null) { + switch (ID) { + case ITEM_PROXY_SOURCE: + return new Gui_ItemProxySource(te, player); + case ITEM_PROXY_ENDPOINT: + return new Gui_ItemProxyEndpoint(te, player); + } + } + return null; + } } -- cgit