Java 类net.minecraftforge.fml.common.network.IGuiHandler 实例源码

项目:pnc-repressurized    文件:ThirdPartyManager.java   
@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;
}
项目:pnc-repressurized    文件:ThirdPartyManager.java   
@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;
}
项目:Fyrestone    文件:GuiHandlerRegistry.java   
@Override
public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z)
{
    IGuiHandler handler = registeredHandlers.get(ID);
    if (handler != null)
    {
        return handler.getServerGuiElement(ID, player, world, x, y, z);
    }

    return null;
}
项目:Fyrestone    文件:GuiHandlerRegistry.java   
@Override
public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z)
{
    IGuiHandler handler = registeredHandlers.get(ID);
    if (handler != null)
    {
        return handler.getClientGuiElement(ID, player, world, x, y, z);
    }

    return null;
}
项目:Fyrestone    文件:GuiHandlerRegistry.java   
public void registerGuiHandler(IGuiHandler handler, int guiID)
{
    registeredHandlers.put(guiID, handler);
}
项目:CommonUtils    文件:ProxyModBase.java   
public void setGuiHandler(IGuiHandler handler) {
    overrideGuiHandler = handler;
}
项目:CommonUtils    文件:ProxyModBase.java   
public IGuiHandler getGuiHandler() {
    return overrideGuiHandler != null ? overrideGuiHandler : guiHandler;
}
项目:TeambattleMod    文件:CommonRegistryUtil.java   
public static void registerGuiHandler(IGuiHandler handler) {
    NetworkRegistry.INSTANCE.registerGuiHandler(TeambattleReference.instance, handler);
}
项目:ZeroQuest    文件:Registers.java   
public static void addGuiHandler(Object mod, IGuiHandler handler) {
    NetworkRegistry.INSTANCE.registerGuiHandler(mod, handler);
}
项目:mcplus_mods    文件:MCP.java   
/**Register the gui handler with network registry under active mod container*/
public static final IGuiHandler guiHandler(IGuiHandler parGuiHandler)
{
    NetworkRegistry.INSTANCE.registerGuiHandler(MCP.mod().getMod(), parGuiHandler);
    return parGuiHandler;
}
项目:OpenModsLib    文件:OpenClientProxy.java   
@Override
public IGuiHandler wrapHandler(IGuiHandler modSpecificHandler) {
    return new ClientGuiHandler(modSpecificHandler);
}
项目:OpenModsLib    文件:OpenServerProxy.java   
@Override
public IGuiHandler wrapHandler(IGuiHandler modSpecificHandler) {
    return new CommonGuiHandler(modSpecificHandler);
}
项目:OpenModsLib    文件:CommonGuiHandler.java   
public CommonGuiHandler(IGuiHandler wrappedHandler) {
    this.wrappedHandler = wrappedHandler;
}
项目:OpenModsLib    文件:ClientGuiHandler.java   
public ClientGuiHandler(IGuiHandler wrappedHandler) {
    super(wrappedHandler);
}
项目:OpenModsLib    文件:IOpenModsProxy.java   
public IGuiHandler wrapHandler(IGuiHandler modSpecificHandler);