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


Java ItemStackDataLists类代码示例

本文整理汇总了Java中net.minecraft.util.datafix.walkers.ItemStackDataLists的典型用法代码示例。如果您正苦于以下问题:Java ItemStackDataLists类的具体用法?Java ItemStackDataLists怎么用?Java ItemStackDataLists使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: func_189785_b

import net.minecraft.util.datafix.walkers.ItemStackDataLists; //导入依赖的package包/类
public static void func_189785_b(DataFixer p_189785_0_)
{
    EntityLiving.func_189752_a(p_189785_0_, "Villager");
    p_189785_0_.registerWalker(FixTypes.ENTITY, new ItemStackDataLists("Villager", new String[] {"Inventory"}));
    p_189785_0_.registerWalker(FixTypes.ENTITY, new IDataWalker()
    {
        public NBTTagCompound process(IDataFixer fixer, NBTTagCompound compound, int versionIn)
        {
            if ("Villager".equals(compound.getString("id")) && compound.hasKey("Offers", 10))
            {
                NBTTagCompound nbttagcompound = compound.getCompoundTag("Offers");

                if (nbttagcompound.hasKey("Recipes", 9))
                {
                    NBTTagList nbttaglist = nbttagcompound.getTagList("Recipes", 10);

                    for (int i = 0; i < nbttaglist.tagCount(); ++i)
                    {
                        NBTTagCompound nbttagcompound1 = nbttaglist.getCompoundTagAt(i);
                        DataFixesManager.processItemStack(fixer, nbttagcompound1, versionIn, "buy");
                        DataFixesManager.processItemStack(fixer, nbttagcompound1, versionIn, "buyB");
                        DataFixesManager.processItemStack(fixer, nbttagcompound1, versionIn, "sell");
                        nbttaglist.set(i, nbttagcompound1);
                    }
                }
            }

            return compound;
        }
    });
}
 
开发者ID:BlazeAxtrius,项目名称:ExpandedRailsMod,代码行数:32,代码来源:EntityVillager.java

示例2: func_190574_b

import net.minecraft.util.datafix.walkers.ItemStackDataLists; //导入依赖的package包/类
public static void func_190574_b(DataFixer p_190574_0_, Class<?> p_190574_1_)
{
    EntityMinecart.registerFixesMinecart(p_190574_0_, p_190574_1_);
    p_190574_0_.registerWalker(FixTypes.ENTITY, new ItemStackDataLists(p_190574_1_, new String[] {"Items"}));
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:6,代码来源:EntityMinecartContainer.java

示例3: registerFixesArmorStand

import net.minecraft.util.datafix.walkers.ItemStackDataLists; //导入依赖的package包/类
public static void registerFixesArmorStand(DataFixer fixer)
{
    fixer.registerWalker(FixTypes.ENTITY, new ItemStackDataLists(EntityArmorStand.class, new String[] {"ArmorItems", "HandItems"}));
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:5,代码来源:EntityArmorStand.java

示例4: registerFixesMob

import net.minecraft.util.datafix.walkers.ItemStackDataLists; //导入依赖的package包/类
public static void registerFixesMob(DataFixer fixer, Class<?> name)
{
    fixer.registerWalker(FixTypes.ENTITY, new ItemStackDataLists(name, new String[] {"ArmorItems", "HandItems"}));
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:5,代码来源:EntityLiving.java

示例5: func_190694_b

import net.minecraft.util.datafix.walkers.ItemStackDataLists; //导入依赖的package包/类
public static void func_190694_b(DataFixer p_190694_0_, Class<?> p_190694_1_)
{
    AbstractHorse.func_190683_c(p_190694_0_, p_190694_1_);
    p_190694_0_.registerWalker(FixTypes.ENTITY, new ItemStackDataLists(p_190694_1_, new String[] {"Items"}));
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:6,代码来源:AbstractChestHorse.java

示例6: registerFixesDropper

import net.minecraft.util.datafix.walkers.ItemStackDataLists; //导入依赖的package包/类
public static void registerFixesDropper(DataFixer fixer)
{
    fixer.registerWalker(FixTypes.BLOCK_ENTITY, new ItemStackDataLists(TileEntityDropper.class, new String[] {"Items"}));
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:5,代码来源:TileEntityDropper.java

示例7: registerFixesChest

import net.minecraft.util.datafix.walkers.ItemStackDataLists; //导入依赖的package包/类
public static void registerFixesChest(DataFixer fixer)
{
    fixer.registerWalker(FixTypes.BLOCK_ENTITY, new ItemStackDataLists(TileEntityChest.class, new String[] {"Items"}));
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:5,代码来源:TileEntityChest.java

示例8: registerFixesBrewingStand

import net.minecraft.util.datafix.walkers.ItemStackDataLists; //导入依赖的package包/类
public static void registerFixesBrewingStand(DataFixer fixer)
{
    fixer.registerWalker(FixTypes.BLOCK_ENTITY, new ItemStackDataLists(TileEntityBrewingStand.class, new String[] {"Items"}));
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:5,代码来源:TileEntityBrewingStand.java

示例9: func_190593_a

import net.minecraft.util.datafix.walkers.ItemStackDataLists; //导入依赖的package包/类
public static void func_190593_a(DataFixer p_190593_0_)
{
    p_190593_0_.registerWalker(FixTypes.BLOCK_ENTITY, new ItemStackDataLists(TileEntityShulkerBox.class, new String[] {"Items"}));
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:5,代码来源:TileEntityShulkerBox.java

示例10: registerFixes

import net.minecraft.util.datafix.walkers.ItemStackDataLists; //导入依赖的package包/类
public static void registerFixes(DataFixer fixer)
{
    fixer.registerWalker(FixTypes.BLOCK_ENTITY, new ItemStackDataLists(TileEntityDispenser.class, new String[] {"Items"}));
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:5,代码来源:TileEntityDispenser.java

示例11: registerFixesHopper

import net.minecraft.util.datafix.walkers.ItemStackDataLists; //导入依赖的package包/类
public static void registerFixesHopper(DataFixer fixer)
{
    fixer.registerWalker(FixTypes.BLOCK_ENTITY, new ItemStackDataLists(TileEntityHopper.class, new String[] {"Items"}));
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:5,代码来源:TileEntityHopper.java

示例12: registerFixesFurnace

import net.minecraft.util.datafix.walkers.ItemStackDataLists; //导入依赖的package包/类
public static void registerFixesFurnace(DataFixer fixer)
{
    fixer.registerWalker(FixTypes.BLOCK_ENTITY, new ItemStackDataLists(TileEntityFurnace.class, new String[] {"Items"}));
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:5,代码来源:TileEntityFurnace.java

示例13: registerFixesMinecartContainer

import net.minecraft.util.datafix.walkers.ItemStackDataLists; //导入依赖的package包/类
public static void registerFixesMinecartContainer(DataFixer fixer, String name)
{
    EntityMinecart.registerFixesMinecart(fixer, name);
    fixer.registerWalker(FixTypes.ENTITY, new ItemStackDataLists(name, new String[] {"Items"}));
}
 
开发者ID:F1r3w477,项目名称:CustomWorldGen,代码行数:6,代码来源:EntityMinecartContainer.java

示例14: registerFixesArmorStand

import net.minecraft.util.datafix.walkers.ItemStackDataLists; //导入依赖的package包/类
public static void registerFixesArmorStand(DataFixer fixer)
{
    fixer.registerWalker(FixTypes.ENTITY, new ItemStackDataLists("ArmorStand", new String[] {"ArmorItems", "HandItems"}));
}
 
开发者ID:F1r3w477,项目名称:CustomWorldGen,代码行数:5,代码来源:EntityArmorStand.java

示例15: registerFixesMob

import net.minecraft.util.datafix.walkers.ItemStackDataLists; //导入依赖的package包/类
public static void registerFixesMob(DataFixer fixer, String name)
{
    fixer.registerWalker(FixTypes.ENTITY, new ItemStackDataLists(name, new String[] {"ArmorItems", "HandItems"}));
}
 
开发者ID:F1r3w477,项目名称:CustomWorldGen,代码行数:5,代码来源:EntityLiving.java


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