cpw.mods.fml.common.network.IGuiHandler Java Examples
The following examples show how to use
cpw.mods.fml.common.network.IGuiHandler.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ThirdPartyManager.java From PneumaticCraft with GNU General Public License v3.0 | 5 votes |
@Override public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z){ for(IThirdParty thirdParty : thirdPartyMods) { if(thirdParty instanceof IGuiHandler) { Object obj = ((IGuiHandler)thirdParty).getServerGuiElement(ID, player, world, x, y, z); if(obj != null) return obj; } } return null; }
Example #2
Source File: ThirdPartyManager.java From PneumaticCraft with GNU General Public License v3.0 | 5 votes |
@Override public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z){ for(IThirdParty thirdParty : thirdPartyMods) { if(thirdParty instanceof IGuiHandler) { Object obj = ((IGuiHandler)thirdParty).getClientGuiElement(ID, player, world, x, y, z); if(obj != null) return obj; } } return null; }
Example #3
Source File: GuiHandlerWrapper.java From Framez with GNU General Public License v3.0 | 2 votes |
public GuiHandlerWrapper(IGuiHandler handler) { this.handler = handler; }