本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例5: registerGuiHandler
import net.minecraftforge.fml.common.network.IGuiHandler; //导入依赖的package包/类
public void registerGuiHandler(IGuiHandler handler, int guiID)
{
registeredHandlers.put(guiID, handler);
}
示例6: setGuiHandler
import net.minecraftforge.fml.common.network.IGuiHandler; //导入依赖的package包/类
public void setGuiHandler(IGuiHandler handler) {
overrideGuiHandler = handler;
}
示例7: getGuiHandler
import net.minecraftforge.fml.common.network.IGuiHandler; //导入依赖的package包/类
public IGuiHandler getGuiHandler() {
return overrideGuiHandler != null ? overrideGuiHandler : guiHandler;
}
示例8: registerGuiHandler
import net.minecraftforge.fml.common.network.IGuiHandler; //导入依赖的package包/类
public static void registerGuiHandler(IGuiHandler handler) {
NetworkRegistry.INSTANCE.registerGuiHandler(TeambattleReference.instance, handler);
}
示例9: addGuiHandler
import net.minecraftforge.fml.common.network.IGuiHandler; //导入依赖的package包/类
public static void addGuiHandler(Object mod, IGuiHandler handler) {
NetworkRegistry.INSTANCE.registerGuiHandler(mod, handler);
}
示例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;
}
示例11: wrapHandler
import net.minecraftforge.fml.common.network.IGuiHandler; //导入依赖的package包/类
@Override
public IGuiHandler wrapHandler(IGuiHandler modSpecificHandler) {
return new ClientGuiHandler(modSpecificHandler);
}
示例12: wrapHandler
import net.minecraftforge.fml.common.network.IGuiHandler; //导入依赖的package包/类
@Override
public IGuiHandler wrapHandler(IGuiHandler modSpecificHandler) {
return new CommonGuiHandler(modSpecificHandler);
}
示例13: CommonGuiHandler
import net.minecraftforge.fml.common.network.IGuiHandler; //导入依赖的package包/类
public CommonGuiHandler(IGuiHandler wrappedHandler) {
this.wrappedHandler = wrappedHandler;
}
示例14: ClientGuiHandler
import net.minecraftforge.fml.common.network.IGuiHandler; //导入依赖的package包/类
public ClientGuiHandler(IGuiHandler wrappedHandler) {
super(wrappedHandler);
}
示例15: wrapHandler
import net.minecraftforge.fml.common.network.IGuiHandler; //导入依赖的package包/类
public IGuiHandler wrapHandler(IGuiHandler modSpecificHandler);