当前位置: 首页>>代码示例>>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;未经允许,请勿转载。