Java Code Examples for net.minecraft.item.Item.registerItems()

The following are Jave code examples for showing how to use registerItems() of the net.minecraft.item.Item class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: DecompiledMinecraft   File: Bootstrap.java   View Source Code Vote up 6 votes
/**
 * Registers blocks, items, stats, etc.
 */
public static void register()
{
    if (!alreadyRegistered)
    {
        alreadyRegistered = true;

        if (LOGGER.isDebugEnabled())
        {
            redirectOutputToLog();
        }

        Block.registerBlocks();
        BlockFire.init();
        Item.registerItems();
        StatList.init();
        registerDispenserBehaviors();
    }
}
 
Example 2
Project: DecompiledMinecraft   File: Bootstrap.java   View Source Code Vote up 6 votes
/**
 * Registers blocks, items, stats, etc.
 */
public static void register()
{
    if (!alreadyRegistered)
    {
        alreadyRegistered = true;

        if (LOGGER.isDebugEnabled())
        {
            redirectOutputToLog();
        }

        Block.registerBlocks();
        BlockFire.init();
        Item.registerItems();
        StatList.init();
        registerDispenserBehaviors();
    }
}
 
Example 3
Project: BaseClient   File: Bootstrap.java   View Source Code Vote up 6 votes
/**
 * Registers blocks, items, stats, etc.
 */
public static void register()
{
    if (!alreadyRegistered)
    {
        alreadyRegistered = true;

        if (LOGGER.isDebugEnabled())
        {
            redirectOutputToLog();
        }

        Block.registerBlocks();
        BlockFire.init();
        Item.registerItems();
        StatList.init();
        registerDispenserBehaviors();
    }
}
 
Example 4
Project: BaseClient   File: Bootstrap.java   View Source Code Vote up 6 votes
/**
 * Registers blocks, items, stats, etc.
 */
public static void register()
{
    if (!alreadyRegistered)
    {
        alreadyRegistered = true;

        if (LOGGER.isDebugEnabled())
        {
            redirectOutputToLog();
        }

        Block.registerBlocks();
        BlockFire.init();
        Item.registerItems();
        StatList.init();
        registerDispenserBehaviors();
    }
}
 
Example 5
Project: Backmemed   File: Bootstrap.java   View Source Code Vote up 6 votes
/**
 * Registers blocks, items, stats, etc.
 */
public static void register()
{
    if (!alreadyRegistered)
    {
        alreadyRegistered = true;
        redirectOutputToLog();
        SoundEvent.registerSounds();
        Block.registerBlocks();
        BlockFire.init();
        Potion.registerPotions();
        Enchantment.registerEnchantments();
        Item.registerItems();
        PotionType.registerPotionTypes();
        PotionHelper.init();
        EntityList.init();
        StatList.init();
        Biome.registerBiomes();
        registerDispenserBehaviors();
    }
}
 
Example 6
Project: CustomWorldGen   File: Bootstrap.java   View Source Code Vote up 6 votes
/**
 * Registers blocks, items, stats, etc.
 */
public static void register()
{
    if (!alreadyRegistered)
    {
        alreadyRegistered = true;

        if (LOGGER.isDebugEnabled())
        {
            redirectOutputToLog();
        }

        SoundEvent.registerSounds();
        Block.registerBlocks();
        BlockFire.init();
        Potion.registerPotions();
        Enchantment.registerEnchantments();
        Item.registerItems();
        PotionType.registerPotionTypes();
        PotionHelper.init();
        StatList.init();
        Biome.registerBiomes();
        registerDispenserBehaviors();
        net.minecraftforge.fml.common.registry.GameData.vanillaSnapshot();
    }
}