當前位置: 首頁>>代碼示例>>Java>>正文


Java IGuiHandler類代碼示例

本文整理匯總了Java中net.minecraftforge.fml.common.network.IGuiHandler的典型用法代碼示例。如果您正苦於以下問題:Java IGuiHandler類的具體用法?Java IGuiHandler怎麽用?Java IGuiHandler使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


IGuiHandler類屬於net.minecraftforge.fml.common.network包,在下文中一共展示了IGuiHandler類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: getServerGuiElement

import net.minecraftforge.fml.common.network.IGuiHandler; //導入依賴的package包/類
@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;
}
 
開發者ID:TeamPneumatic,項目名稱:pnc-repressurized,代碼行數:11,代碼來源:ThirdPartyManager.java

示例2: getClientGuiElement

import net.minecraftforge.fml.common.network.IGuiHandler; //導入依賴的package包/類
@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;
}
 
開發者ID:TeamPneumatic,項目名稱:pnc-repressurized,代碼行數:11,代碼來源:ThirdPartyManager.java

示例3: getServerGuiElement

import net.minecraftforge.fml.common.network.IGuiHandler; //導入依賴的package包/類
@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;
}
 
開發者ID:gunnerwolf,項目名稱:Fyrestone,代碼行數:12,代碼來源:GuiHandlerRegistry.java

示例4: getClientGuiElement

import net.minecraftforge.fml.common.network.IGuiHandler; //導入依賴的package包/類
@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;
}
 
開發者ID:gunnerwolf,項目名稱:Fyrestone,代碼行數:12,代碼來源:GuiHandlerRegistry.java

示例5: registerGuiHandler

import net.minecraftforge.fml.common.network.IGuiHandler; //導入依賴的package包/類
public void registerGuiHandler(IGuiHandler handler, int guiID)
{
	registeredHandlers.put(guiID, handler);
}
 
開發者ID:gunnerwolf,項目名稱:Fyrestone,代碼行數:5,代碼來源:GuiHandlerRegistry.java

示例6: setGuiHandler

import net.minecraftforge.fml.common.network.IGuiHandler; //導入依賴的package包/類
public void setGuiHandler(IGuiHandler handler) {
	overrideGuiHandler = handler;
}
 
開發者ID:hea3ven,項目名稱:CommonUtils,代碼行數:4,代碼來源:ProxyModBase.java

示例7: getGuiHandler

import net.minecraftforge.fml.common.network.IGuiHandler; //導入依賴的package包/類
public IGuiHandler getGuiHandler() {
	return overrideGuiHandler != null ? overrideGuiHandler : guiHandler;
}
 
開發者ID:hea3ven,項目名稱:CommonUtils,代碼行數:4,代碼來源:ProxyModBase.java

示例8: registerGuiHandler

import net.minecraftforge.fml.common.network.IGuiHandler; //導入依賴的package包/類
public static void registerGuiHandler(IGuiHandler handler) {
	NetworkRegistry.INSTANCE.registerGuiHandler(TeambattleReference.instance, handler);
}
 
開發者ID:HyCraftHD,項目名稱:TeambattleMod,代碼行數:4,代碼來源:CommonRegistryUtil.java

示例9: addGuiHandler

import net.minecraftforge.fml.common.network.IGuiHandler; //導入依賴的package包/類
public static void addGuiHandler(Object mod, IGuiHandler handler) {
	NetworkRegistry.INSTANCE.registerGuiHandler(mod, handler);
}
 
開發者ID:NovaViper,項目名稱:ZeroQuest,代碼行數:4,代碼來源:Registers.java

示例10: guiHandler

import net.minecraftforge.fml.common.network.IGuiHandler; //導入依賴的package包/類
/**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;
}
 
開發者ID:andykuo1,項目名稱:mcplus_mods,代碼行數:7,代碼來源:MCP.java

示例11: wrapHandler

import net.minecraftforge.fml.common.network.IGuiHandler; //導入依賴的package包/類
@Override
public IGuiHandler wrapHandler(IGuiHandler modSpecificHandler) {
	return new ClientGuiHandler(modSpecificHandler);
}
 
開發者ID:OpenMods,項目名稱:OpenModsLib,代碼行數:5,代碼來源:OpenClientProxy.java

示例12: wrapHandler

import net.minecraftforge.fml.common.network.IGuiHandler; //導入依賴的package包/類
@Override
public IGuiHandler wrapHandler(IGuiHandler modSpecificHandler) {
	return new CommonGuiHandler(modSpecificHandler);
}
 
開發者ID:OpenMods,項目名稱:OpenModsLib,代碼行數:5,代碼來源:OpenServerProxy.java

示例13: CommonGuiHandler

import net.minecraftforge.fml.common.network.IGuiHandler; //導入依賴的package包/類
public CommonGuiHandler(IGuiHandler wrappedHandler) {
	this.wrappedHandler = wrappedHandler;
}
 
開發者ID:OpenMods,項目名稱:OpenModsLib,代碼行數:4,代碼來源:CommonGuiHandler.java

示例14: ClientGuiHandler

import net.minecraftforge.fml.common.network.IGuiHandler; //導入依賴的package包/類
public ClientGuiHandler(IGuiHandler wrappedHandler) {
	super(wrappedHandler);
}
 
開發者ID:OpenMods,項目名稱:OpenModsLib,代碼行數:4,代碼來源:ClientGuiHandler.java

示例15: wrapHandler

import net.minecraftforge.fml.common.network.IGuiHandler; //導入依賴的package包/類
public IGuiHandler wrapHandler(IGuiHandler modSpecificHandler); 
開發者ID:OpenMods,項目名稱:OpenModsLib,代碼行數:2,代碼來源:IOpenModsProxy.java


注:本文中的net.minecraftforge.fml.common.network.IGuiHandler類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。