Java 类net.minecraft.util.datafix.walkers.ItemStackDataLists 实例源码

项目:ExpandedRailsMod    文件:EntityVillager.java   
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;
        }
    });
}
项目:Backmemed    文件:EntityMinecartContainer.java   
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"}));
}
项目:Backmemed    文件:EntityArmorStand.java   
public static void registerFixesArmorStand(DataFixer fixer)
{
    fixer.registerWalker(FixTypes.ENTITY, new ItemStackDataLists(EntityArmorStand.class, new String[] {"ArmorItems", "HandItems"}));
}
项目:Backmemed    文件:EntityLiving.java   
public static void registerFixesMob(DataFixer fixer, Class<?> name)
{
    fixer.registerWalker(FixTypes.ENTITY, new ItemStackDataLists(name, new String[] {"ArmorItems", "HandItems"}));
}
项目:Backmemed    文件:AbstractChestHorse.java   
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"}));
}
项目:Backmemed    文件:TileEntityDropper.java   
public static void registerFixesDropper(DataFixer fixer)
{
    fixer.registerWalker(FixTypes.BLOCK_ENTITY, new ItemStackDataLists(TileEntityDropper.class, new String[] {"Items"}));
}
项目:Backmemed    文件:TileEntityChest.java   
public static void registerFixesChest(DataFixer fixer)
{
    fixer.registerWalker(FixTypes.BLOCK_ENTITY, new ItemStackDataLists(TileEntityChest.class, new String[] {"Items"}));
}
项目:Backmemed    文件:TileEntityBrewingStand.java   
public static void registerFixesBrewingStand(DataFixer fixer)
{
    fixer.registerWalker(FixTypes.BLOCK_ENTITY, new ItemStackDataLists(TileEntityBrewingStand.class, new String[] {"Items"}));
}
项目:Backmemed    文件:TileEntityShulkerBox.java   
public static void func_190593_a(DataFixer p_190593_0_)
{
    p_190593_0_.registerWalker(FixTypes.BLOCK_ENTITY, new ItemStackDataLists(TileEntityShulkerBox.class, new String[] {"Items"}));
}
项目:Backmemed    文件:TileEntityDispenser.java   
public static void registerFixes(DataFixer fixer)
{
    fixer.registerWalker(FixTypes.BLOCK_ENTITY, new ItemStackDataLists(TileEntityDispenser.class, new String[] {"Items"}));
}
项目:Backmemed    文件:TileEntityHopper.java   
public static void registerFixesHopper(DataFixer fixer)
{
    fixer.registerWalker(FixTypes.BLOCK_ENTITY, new ItemStackDataLists(TileEntityHopper.class, new String[] {"Items"}));
}
项目:Backmemed    文件:TileEntityFurnace.java   
public static void registerFixesFurnace(DataFixer fixer)
{
    fixer.registerWalker(FixTypes.BLOCK_ENTITY, new ItemStackDataLists(TileEntityFurnace.class, new String[] {"Items"}));
}
项目:CustomWorldGen    文件:EntityMinecartContainer.java   
public static void registerFixesMinecartContainer(DataFixer fixer, String name)
{
    EntityMinecart.registerFixesMinecart(fixer, name);
    fixer.registerWalker(FixTypes.ENTITY, new ItemStackDataLists(name, new String[] {"Items"}));
}
项目:CustomWorldGen    文件:EntityArmorStand.java   
public static void registerFixesArmorStand(DataFixer fixer)
{
    fixer.registerWalker(FixTypes.ENTITY, new ItemStackDataLists("ArmorStand", new String[] {"ArmorItems", "HandItems"}));
}
项目:CustomWorldGen    文件:EntityLiving.java   
public static void registerFixesMob(DataFixer fixer, String name)
{
    fixer.registerWalker(FixTypes.ENTITY, new ItemStackDataLists(name, new String[] {"ArmorItems", "HandItems"}));
}
项目:CustomWorldGen    文件:EntityHorse.java   
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"}));
}
项目:CustomWorldGen    文件:TileEntityDropper.java   
public static void registerFixesDropper(DataFixer fixer)
{
    fixer.registerWalker(FixTypes.BLOCK_ENTITY, new ItemStackDataLists("Dropper", new String[] {"Items"}));
}
项目:CustomWorldGen    文件:TileEntityChest.java   
public static void registerFixesChest(DataFixer fixer)
{
    fixer.registerWalker(FixTypes.BLOCK_ENTITY, new ItemStackDataLists("Chest", new String[] {"Items"}));
}
项目:CustomWorldGen    文件:TileEntityBrewingStand.java   
public static void registerFixesBrewingStand(DataFixer fixer)
{
    fixer.registerWalker(FixTypes.BLOCK_ENTITY, new ItemStackDataLists("Cauldron", new String[] {"Items"}));
}
项目:CustomWorldGen    文件:TileEntityDispenser.java   
public static void registerFixes(DataFixer fixer)
{
    fixer.registerWalker(FixTypes.BLOCK_ENTITY, new ItemStackDataLists("Trap", new String[] {"Items"}));
}
项目:CustomWorldGen    文件:TileEntityHopper.java   
public static void registerFixesHopper(DataFixer fixer)
{
    fixer.registerWalker(FixTypes.BLOCK_ENTITY, new ItemStackDataLists("Hopper", new String[] {"Items"}));
}
项目:CustomWorldGen    文件:TileEntityFurnace.java   
public static void registerFixesFurnace(DataFixer fixer)
{
    fixer.registerWalker(FixTypes.BLOCK_ENTITY, new ItemStackDataLists("Furnace", new String[] {"Items"}));
}
项目:ToroQuest    文件:EntityVillageLord.java   
public static void registerFixesVillageLord(DataFixer fixer) {
    EntityLiving.registerFixesMob(fixer, EntityVillageLord.class);
    fixer.registerWalker(FixTypes.ENTITY, new ItemStackDataLists(EntityVillageLord.class, new String[] { "Items" }));
}
项目:EssentialFeatures    文件:TileEntityBlockPlacer.java   
public static void registerFixesDropper(DataFixer fixer)
{
    fixer.registerWalker(FixTypes.BLOCK_ENTITY, new ItemStackDataLists(TileEntityBlockPlacer.class, new String[] {"Items"}));
}
项目:ExpandedRailsMod    文件:EntityMinecartContainer.java   
public static void func_189680_b(DataFixer p_189680_0_, String p_189680_1_)
{
    EntityMinecart.func_189669_a(p_189680_0_, p_189680_1_);
    p_189680_0_.registerWalker(FixTypes.ENTITY, new ItemStackDataLists(p_189680_1_, new String[] {"Items"}));
}
项目:ExpandedRailsMod    文件:EntityArmorStand.java   
public static void func_189805_a(DataFixer p_189805_0_)
{
    p_189805_0_.registerWalker(FixTypes.ENTITY, new ItemStackDataLists("ArmorStand", new String[] {"ArmorItems", "HandItems"}));
}
项目:ExpandedRailsMod    文件:EntityLiving.java   
public static void func_189752_a(DataFixer p_189752_0_, String p_189752_1_)
{
    p_189752_0_.registerWalker(FixTypes.ENTITY, new ItemStackDataLists(p_189752_1_, new String[] {"ArmorItems", "HandItems"}));
}
项目:ExpandedRailsMod    文件:EntityHorse.java   
public static void func_189803_b(DataFixer p_189803_0_)
{
    EntityLiving.func_189752_a(p_189803_0_, "EntityHorse");
    p_189803_0_.registerWalker(FixTypes.ENTITY, new ItemStackDataLists("EntityHorse", new String[] {"Items"}));
    p_189803_0_.registerWalker(FixTypes.ENTITY, new ItemStackData("EntityHorse", new String[] {"ArmorItem", "SaddleItem"}));
}
项目:OpenBlocks    文件:EntityLuggage.java   
public static void registerFixes(DataFixer fixer) {
    registerFixesMob(fixer, EntityLuggage.class);
    fixer.registerWalker(FixTypes.ENTITY, new ItemStackDataLists(EntityLuggage.class, GenericInventory.TAG_ITEMS));
}
项目:OpenModsLib    文件:GenericInventoryTeFixerWalker.java   
@Override
public void register(DataFixer registry, Class<?> registeringClass) {
    registry.registerWalker(FixTypes.BLOCK_ENTITY, new ItemStackDataLists(registeringClass, GenericInventory.TAG_ITEMS));
}