本文整理汇总了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;
}
});
}
示例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"}));
}
示例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"}));
}
示例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"}));
}
示例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"}));
}
示例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"}));
}
示例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"}));
}
示例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"}));
}
示例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"}));
}
示例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"}));
}
示例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"}));
}
示例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"}));
}
示例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"}));
}
示例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"}));
}
示例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"}));
}