• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java ItemStackDataLists类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: registerFixesHorse

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


示例17: registerFixesDropper

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


示例18: registerFixesChest

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


示例19: registerFixesBrewingStand

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


示例20: registerFixes

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



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java RowsSetListener类代码示例发布时间:2022-05-22
下一篇:
Java LogicalTypes类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap