本文整理匯總了Java中net.minecraft.creativetab.CreativeTabs.getNextID方法的典型用法代碼示例。如果您正苦於以下問題:Java CreativeTabs.getNextID方法的具體用法?Java CreativeTabs.getNextID怎麽用?Java CreativeTabs.getNextID使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類net.minecraft.creativetab.CreativeTabs
的用法示例。
在下文中一共展示了CreativeTabs.getNextID方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: init
import net.minecraft.creativetab.CreativeTabs; //導入方法依賴的package包/類
@EventHandler
public void init(FMLInitializationEvent event) {
proxy.load();
this.registerEntities();
// TODO Register Planets: -------------------------------
TrappistOnePlanets.init();
TPCreativeTabs.TPBlocksTab = new CreativeTabGC(CreativeTabs.getNextID(), "TPBlocks", Item.getItemFromBlock(Blocks.grass), 0);
TPCreativeTabs.TPItemsTab = new CreativeTabGC(CreativeTabs.getNextID(), "TPItems", TPItems.itemAlienGel, 0);
TPCreativeTabs.TPArmorTab = new CreativeTabGC(CreativeTabs.getNextID(), "TPArmor", Items.diamond_helmet, 0);
}
示例2: preInit
import net.minecraft.creativetab.CreativeTabs; //導入方法依賴的package包/類
@EventHandler
public void preInit(FMLPreInitializationEvent event)
{
creativeTabRunicArcana = new CreativeTabRunicArcana(CreativeTabs.getNextID(),"Runic Arcana");
proxy.preInit(event);
ModItems.preInit();
ModBlocks.preInit();
ModTileEntities.preInit();
PacketHandler.registerMessages("chalkNBT");
ModRecipesVanilla.registerRecipes();
ModEnchantment.registerEnchantments();
ModEvents.initCommon();
}
示例3: preInit
import net.minecraft.creativetab.CreativeTabs; //導入方法依賴的package包/類
@Mod.EventHandler
public void preInit(FMLPreInitializationEvent event) {
TabStatclock = new CreativeTabSC(CreativeTabs.getNextID(), "tab_statclock");
ModItems.preInit();
ModBlocks.preInit();
GameRegistry.registerWorldGenerator(new Generation(), 2);
proxy.preInit(event);
}
示例4: preInit
import net.minecraft.creativetab.CreativeTabs; //導入方法依賴的package包/類
@EventHandler
public void preInit(FMLPreInitializationEvent event){
thisTab = new thiscreativetab(CreativeTabs.getNextID(), "this_tab");
Moditems.preInit();
proxy.preInit(event);
}
示例5: preInit
import net.minecraft.creativetab.CreativeTabs; //導入方法依賴的package包/類
@EventHandler
public void preInit(FMLPreInitializationEvent event) {
creativetab = new Creativetab(CreativeTabs.getNextID(), "creativetab");
proxy.preInit(event);
}