本文整理匯總了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);