当前位置: 首页>>代码示例>>Java>>正文


Java Items.GLOWSTONE_DUST属性代码示例

本文整理汇总了Java中net.minecraft.init.Items.GLOWSTONE_DUST属性的典型用法代码示例。如果您正苦于以下问题:Java Items.GLOWSTONE_DUST属性的具体用法?Java Items.GLOWSTONE_DUST怎么用?Java Items.GLOWSTONE_DUST使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在net.minecraft.init.Items的用法示例。


在下文中一共展示了Items.GLOWSTONE_DUST属性的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getLightLevel

public static int getLightLevel(ItemStack p_getLightLevel_0_)
{
    if (p_getLightLevel_0_ == null)
    {
        return 0;
    }
    else
    {
        Item item = p_getLightLevel_0_.getItem();

        if (item instanceof ItemBlock)
        {
            ItemBlock itemblock = (ItemBlock)item;
            Block block = itemblock.getBlock();

            if (block != null)
            {
                return block.getLightValue(block.getDefaultState());
            }
        }

        return item == Items.LAVA_BUCKET ? Blocks.LAVA.getLightValue(Blocks.LAVA.getDefaultState()) : (item != Items.BLAZE_ROD && item != Items.BLAZE_POWDER ? (item == Items.GLOWSTONE_DUST ? 8 : (item == Items.PRISMARINE_CRYSTALS ? 8 : (item == Items.MAGMA_CREAM ? 8 : (item == Items.NETHER_STAR ? Blocks.BEACON.getLightValue(Blocks.BEACON.getDefaultState()) / 2 : 0)))) : 10);
    }
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:24,代码来源:DynamicLights.java

示例2: getPages

@Override
public List<NotebookPage> getPages(INotebookInfo info)
{
	List<NotebookPage> pages = new ArrayList<NotebookPage>();
	List<INotebookEntry> page0 = new ArrayList<INotebookEntry>();
	for (int i = 0; i < 2; i++)
	{
		page0.add(new NotebookEntryText(getUnlocalizedName() + "." + i, 0x000000));
	}

	pages.add(new NotebookPage(page0));
	List<INotebookEntry> page1 = new ArrayList<INotebookEntry>();
	ItemStack[][] elementalCraftingTableRecipe = {
			{ ItemStack.EMPTY, new ItemStack(Items.GLOWSTONE_DUST), ItemStack.EMPTY },
			{ new ItemStack(Blocks.PLANKS), new ItemStack(Blocks.CRAFTING_TABLE), new ItemStack(Blocks.PLANKS) },
			{ new ItemStack(Blocks.PLANKS), ItemStack.EMPTY, new ItemStack(Blocks.PLANKS) } };
	page1.add(new NotebookEntryCraftingRecipe(elementalCraftingTableRecipe,
			new ItemStack(ModRegistry.ARCANE_TRANSFIGURATION_TABLE)));
	page1.add(new NotebookEntryText(getUnlocalizedName() + ".2", 0x000000));
	ItemStack[][] essenceChannelingRodRecipe = {
			{ ItemStack.EMPTY, new ItemStack(Items.GLOWSTONE_DUST), new ItemStack(Items.REDSTONE) },
			{ ItemStack.EMPTY, new ItemStack(Items.STICK), new ItemStack(Items.GLOWSTONE_DUST) },
			{ new ItemStack(Items.STICK), ItemStack.EMPTY, ItemStack.EMPTY } };
	page1.add(new NotebookEntryCraftingRecipe(essenceChannelingRodRecipe,
			new ItemStack(ModRegistry.ESSENCE_CHANNELING_ROD)));
	pages.add(new NotebookPage(page1));
	return pages;
}
 
开发者ID:raphydaphy,项目名称:ArcaneMagic,代码行数:28,代码来源:CategoryEssenceManipulation.java

示例3: getPages

@Override
public List<NotebookPage> getPages(INotebookInfo info)
{
	List<NotebookPage> pages = new ArrayList<NotebookPage>();
	List<INotebookEntry> page0 = new ArrayList<INotebookEntry>();
	for (int i = 0; i < 2; i++)
	{
		page0.add(new NotebookEntryText(getUnlocalizedName() + "." + i, 0x000000));
	}
	pages.add(new NotebookPage(page0));
	List<INotebookEntry> page1 = new ArrayList<INotebookEntry>();

	page1.add(new NotebookEntryText(getUnlocalizedName() + ".2", 0x000000));
	ItemStack[][] crystallizerItemsIn = { { ItemStack.EMPTY, new ItemStack(Items.BLAZE_ROD), ItemStack.EMPTY },
			{ new ItemStack(Items.BLAZE_ROD), new ItemStack(Items.PRISMARINE_CRYSTALS),
					new ItemStack(Items.BLAZE_ROD) },
			{ new ItemStack(Blocks.IRON_BLOCK), new ItemStack(Blocks.IRON_BLOCK),
					new ItemStack(Blocks.IRON_BLOCK) } };
	page1.add(new NotebookEntryCraftingRecipe(crystallizerItemsIn, new ItemStack(ModRegistry.ANIMUS_MATERIALIZER)));
	page1.add(new NotebookEntryText(getUnlocalizedName() + ".3", 0x000000));
	ItemStack[][] concentratorItemsIn = { { ItemStack.EMPTY, new ItemStack(Items.REDSTONE), ItemStack.EMPTY },
			{ new ItemStack(Items.GLOWSTONE_DUST), new ItemStack(Blocks.IRON_BLOCK),
					new ItemStack(Items.GLOWSTONE_DUST) },
			{ new ItemStack(Blocks.IRON_BLOCK), new ItemStack(Blocks.IRON_BLOCK),
					new ItemStack(Blocks.IRON_BLOCK) } };
	page1.add(
			new NotebookEntryCraftingRecipe(concentratorItemsIn, new ItemStack(ModRegistry.ANIMA_CONJURER)));
	pages.add(new NotebookPage(page1));
	return pages;
}
 
开发者ID:raphydaphy,项目名称:ArcaneMagic,代码行数:30,代码来源:CategoryElementalCrafting.java

示例4: getItemDropped

/**
 * Get the Item that this Block should drop when harvested.
 */
public Item getItemDropped(IBlockState state, Random rand, int fortune)
{
    return Items.GLOWSTONE_DUST;
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:7,代码来源:BlockGlowstone.java

示例5: init

public static void init()
{
    Predicate<ItemStack> predicate = new PotionHelper.ItemPredicateInstance(Items.NETHER_WART);
    Predicate<ItemStack> predicate1 = new PotionHelper.ItemPredicateInstance(Items.GOLDEN_CARROT);
    Predicate<ItemStack> predicate2 = new PotionHelper.ItemPredicateInstance(Items.REDSTONE);
    Predicate<ItemStack> predicate3 = new PotionHelper.ItemPredicateInstance(Items.FERMENTED_SPIDER_EYE);
    Predicate<ItemStack> predicate4 = new PotionHelper.ItemPredicateInstance(Items.RABBIT_FOOT);
    Predicate<ItemStack> predicate5 = new PotionHelper.ItemPredicateInstance(Items.GLOWSTONE_DUST);
    Predicate<ItemStack> predicate6 = new PotionHelper.ItemPredicateInstance(Items.MAGMA_CREAM);
    Predicate<ItemStack> predicate7 = new PotionHelper.ItemPredicateInstance(Items.SUGAR);
    Predicate<ItemStack> predicate8 = new PotionHelper.ItemPredicateInstance(Items.FISH, ItemFishFood.FishType.PUFFERFISH.getMetadata());
    Predicate<ItemStack> predicate9 = new PotionHelper.ItemPredicateInstance(Items.SPECKLED_MELON);
    Predicate<ItemStack> predicate10 = new PotionHelper.ItemPredicateInstance(Items.SPIDER_EYE);
    Predicate<ItemStack> predicate11 = new PotionHelper.ItemPredicateInstance(Items.GHAST_TEAR);
    Predicate<ItemStack> predicate12 = new PotionHelper.ItemPredicateInstance(Items.BLAZE_POWDER);
    registerPotionItem(new PotionHelper.ItemPredicateInstance(Items.POTIONITEM));
    registerPotionItem(new PotionHelper.ItemPredicateInstance(Items.SPLASH_POTION));
    registerPotionItem(new PotionHelper.ItemPredicateInstance(Items.LINGERING_POTION));
    registerPotionItemConversion(Items.POTIONITEM, new PotionHelper.ItemPredicateInstance(Items.GUNPOWDER), Items.SPLASH_POTION);
    registerPotionItemConversion(Items.SPLASH_POTION, new PotionHelper.ItemPredicateInstance(Items.DRAGON_BREATH), Items.LINGERING_POTION);
    registerPotionTypeConversion(PotionTypes.WATER, predicate9, PotionTypes.MUNDANE);
    registerPotionTypeConversion(PotionTypes.WATER, predicate11, PotionTypes.MUNDANE);
    registerPotionTypeConversion(PotionTypes.WATER, predicate4, PotionTypes.MUNDANE);
    registerPotionTypeConversion(PotionTypes.WATER, predicate12, PotionTypes.MUNDANE);
    registerPotionTypeConversion(PotionTypes.WATER, predicate10, PotionTypes.MUNDANE);
    registerPotionTypeConversion(PotionTypes.WATER, predicate7, PotionTypes.MUNDANE);
    registerPotionTypeConversion(PotionTypes.WATER, predicate6, PotionTypes.MUNDANE);
    registerPotionTypeConversion(PotionTypes.WATER, predicate5, PotionTypes.THICK);
    registerPotionTypeConversion(PotionTypes.WATER, predicate2, PotionTypes.MUNDANE);
    registerPotionTypeConversion(PotionTypes.WATER, predicate, PotionTypes.AWKWARD);
    registerPotionTypeConversion(PotionTypes.AWKWARD, predicate1, PotionTypes.NIGHT_VISION);
    registerPotionTypeConversion(PotionTypes.NIGHT_VISION, predicate2, PotionTypes.LONG_NIGHT_VISION);
    registerPotionTypeConversion(PotionTypes.NIGHT_VISION, predicate3, PotionTypes.INVISIBILITY);
    registerPotionTypeConversion(PotionTypes.LONG_NIGHT_VISION, predicate3, PotionTypes.LONG_INVISIBILITY);
    registerPotionTypeConversion(PotionTypes.INVISIBILITY, predicate2, PotionTypes.LONG_INVISIBILITY);
    registerPotionTypeConversion(PotionTypes.AWKWARD, predicate6, PotionTypes.FIRE_RESISTANCE);
    registerPotionTypeConversion(PotionTypes.FIRE_RESISTANCE, predicate2, PotionTypes.LONG_FIRE_RESISTANCE);
    registerPotionTypeConversion(PotionTypes.AWKWARD, predicate4, PotionTypes.LEAPING);
    registerPotionTypeConversion(PotionTypes.LEAPING, predicate2, PotionTypes.LONG_LEAPING);
    registerPotionTypeConversion(PotionTypes.LEAPING, predicate5, PotionTypes.STRONG_LEAPING);
    registerPotionTypeConversion(PotionTypes.LEAPING, predicate3, PotionTypes.SLOWNESS);
    registerPotionTypeConversion(PotionTypes.LONG_LEAPING, predicate3, PotionTypes.LONG_SLOWNESS);
    registerPotionTypeConversion(PotionTypes.SLOWNESS, predicate2, PotionTypes.LONG_SLOWNESS);
    registerPotionTypeConversion(PotionTypes.SWIFTNESS, predicate3, PotionTypes.SLOWNESS);
    registerPotionTypeConversion(PotionTypes.LONG_SWIFTNESS, predicate3, PotionTypes.LONG_SLOWNESS);
    registerPotionTypeConversion(PotionTypes.AWKWARD, predicate7, PotionTypes.SWIFTNESS);
    registerPotionTypeConversion(PotionTypes.SWIFTNESS, predicate2, PotionTypes.LONG_SWIFTNESS);
    registerPotionTypeConversion(PotionTypes.SWIFTNESS, predicate5, PotionTypes.STRONG_SWIFTNESS);
    registerPotionTypeConversion(PotionTypes.AWKWARD, predicate8, PotionTypes.WATER_BREATHING);
    registerPotionTypeConversion(PotionTypes.WATER_BREATHING, predicate2, PotionTypes.LONG_WATER_BREATHING);
    registerPotionTypeConversion(PotionTypes.AWKWARD, predicate9, PotionTypes.HEALING);
    registerPotionTypeConversion(PotionTypes.HEALING, predicate5, PotionTypes.STRONG_HEALING);
    registerPotionTypeConversion(PotionTypes.HEALING, predicate3, PotionTypes.HARMING);
    registerPotionTypeConversion(PotionTypes.STRONG_HEALING, predicate3, PotionTypes.STRONG_HARMING);
    registerPotionTypeConversion(PotionTypes.HARMING, predicate5, PotionTypes.STRONG_HARMING);
    registerPotionTypeConversion(PotionTypes.POISON, predicate3, PotionTypes.HARMING);
    registerPotionTypeConversion(PotionTypes.LONG_POISON, predicate3, PotionTypes.HARMING);
    registerPotionTypeConversion(PotionTypes.STRONG_POISON, predicate3, PotionTypes.STRONG_HARMING);
    registerPotionTypeConversion(PotionTypes.AWKWARD, predicate10, PotionTypes.POISON);
    registerPotionTypeConversion(PotionTypes.POISON, predicate2, PotionTypes.LONG_POISON);
    registerPotionTypeConversion(PotionTypes.POISON, predicate5, PotionTypes.STRONG_POISON);
    registerPotionTypeConversion(PotionTypes.AWKWARD, predicate11, PotionTypes.REGENERATION);
    registerPotionTypeConversion(PotionTypes.REGENERATION, predicate2, PotionTypes.LONG_REGENERATION);
    registerPotionTypeConversion(PotionTypes.REGENERATION, predicate5, PotionTypes.STRONG_REGENERATION);
    registerPotionTypeConversion(PotionTypes.AWKWARD, predicate12, PotionTypes.STRENGTH);
    registerPotionTypeConversion(PotionTypes.STRENGTH, predicate2, PotionTypes.LONG_STRENGTH);
    registerPotionTypeConversion(PotionTypes.STRENGTH, predicate5, PotionTypes.STRONG_STRENGTH);
    registerPotionTypeConversion(PotionTypes.WATER, predicate3, PotionTypes.WEAKNESS);
    registerPotionTypeConversion(PotionTypes.WEAKNESS, predicate2, PotionTypes.LONG_WEAKNESS);
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:70,代码来源:PotionHelper.java

示例6: getItemDropped

/**
 * Get the Item that this Block should drop when harvested.
 */
@Nullable
public Item getItemDropped(IBlockState state, Random rand, int fortune)
{
    return Items.GLOWSTONE_DUST;
}
 
开发者ID:F1r3w477,项目名称:CustomWorldGen,代码行数:8,代码来源:BlockGlowstone.java


注:本文中的net.minecraft.init.Items.GLOWSTONE_DUST属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。