本文整理汇总了Java中thaumcraft.api.ObjectTags类的典型用法代码示例。如果您正苦于以下问题:Java ObjectTags类的具体用法?Java ObjectTags怎么用?Java ObjectTags使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ObjectTags类属于thaumcraft.api包,在下文中一共展示了ObjectTags类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: ShapelessInfusionCraftingRecipes
import thaumcraft.api.ObjectTags; //导入依赖的package包/类
public ShapelessInfusionCraftingRecipes(String key, ItemStack par1ItemStack, List par2List, int cost, ObjectTags tags)
{
this.recipeOutput = par1ItemStack;
this.recipeItems = par2List;
this.key = key;
this.cost = cost;
this.tags = tags;
}
示例2: ShapelessInfusionCraftingWithNBTRecipes
import thaumcraft.api.ObjectTags; //导入依赖的package包/类
public ShapelessInfusionCraftingWithNBTRecipes(String key,
ItemStack par1ItemStack,
List par2List, int cost, ObjectTags tags,
List<NBTBase> nbtList)
{
this.recipeOutput = par1ItemStack;
this.recipeItems = par2List;
this.key = key;
this.cost = cost;
this.tags = tags;
this.nbtList = nbtList;
}
示例3: RecipeCrucible
import thaumcraft.api.ObjectTags; //导入依赖的package包/类
public RecipeCrucible(String researchKey, String key, ItemStack result, ObjectTags tags, int cost) {
recipeOutput = result;
this.tags = tags;
this.key = key;
this.researchKey = researchKey;
this.cost = cost;
}
示例4: matches
import thaumcraft.api.ObjectTags; //导入依赖的package包/类
public boolean matches(ObjectTags itags) {
if (itags==null) return false;
for (EnumTag tag:tags.getAspects()) {
if (itags.getAmount(tag)<tags.getAmount(tag)) return false;
}
return true;
}
示例5: removeMatching
import thaumcraft.api.ObjectTags; //导入依赖的package包/类
public ObjectTags removeMatching(ObjectTags itags) {
ObjectTags temptags = new ObjectTags();
temptags.tags.putAll(itags.tags);
for (EnumTag tag:tags.getAspects()) {
if (!temptags.reduceAmount(tag, tags.getAmount(tag))) return null;
}
itags = temptags;
return itags;
}
示例6: ShapedInfusionCraftingRecipes
import thaumcraft.api.ObjectTags; //导入依赖的package包/类
public ShapedInfusionCraftingRecipes(String key, int par1, int par2, ItemStack[] par3ArrayOfItemStack, ItemStack par4ItemStack, int cost, ObjectTags tags)
{
this.recipeOutputItemID = par4ItemStack.itemID;
this.recipeWidth = par1;
this.recipeHeight = par2;
this.recipeItems = par3ArrayOfItemStack;
this.recipeOutput = par4ItemStack;
this.key = key;
this.cost = cost;
this.tags = tags;
}
示例7: applyObjectTags
import thaumcraft.api.ObjectTags; //导入依赖的package包/类
public static void applyObjectTags() {
ObjectTags tags = new ObjectTags().add(EnumTag.LIFE, 1).add(EnumTag.EARTH, 2).add(EnumTag.CRYSTAL, 1);
ThaumcraftApi.registerObjectTag(PinkGum1.blockID, -1, tags);
tags = new ObjectTags().add(EnumTag.LIFE, 1).add(EnumTag.ROCK, 2).add(EnumTag.CRYSTAL, 1);
ThaumcraftApi.registerObjectTag(BlueGum1.blockID, -1, tags);
}
示例8: ResearchItem
import thaumcraft.api.ObjectTags; //导入依赖的package包/类
public ResearchItem(String par1, ObjectTags tags, int par3, int par4, int icon)
{
this(par1, tags, par3, par4, (ItemStack)null, icon);
}
示例9: getTags
import thaumcraft.api.ObjectTags; //导入依赖的package包/类
@Override
public ObjectTags getTags() {
return tags;
}
示例10: initItems
import thaumcraft.api.ObjectTags; //导入依赖的package包/类
public static void initItems() {
genericItems = new ItemGeneric(ConfigurationNecromancy.GenericItemID).setUnlocalizedName("ItemNecromancy");
ThaumcraftApi.registerObjectTag(genericItems.itemID, 0, (new ObjectTags()).add(EnumTag.DEATH, 2));
ThaumcraftApi.registerObjectTag(genericItems.itemID, 1, (new ObjectTags()).add(EnumTag.FLIGHT, 2).add(EnumTag.LIFE, 4).add(EnumTag.LIGHT, 2).add(EnumTag.CRYSTAL, 2));
ThaumcraftApi.registerObjectTag(genericItems.itemID, 2, (new ObjectTags()).add(EnumTag.HEAL, 2).add(EnumTag.LIFE, 4).add(EnumTag.CRYSTAL, 2));
ThaumcraftApi.registerObjectTag(genericItems.itemID, 3, (new ObjectTags()).add(EnumTag.FLESH, 8).add(EnumTag.KNOWLEDGE, 4));
for (int x = 0; x < ItemGeneric.names.length; x++) {
LanguageRegistry.addName(new ItemStack(genericItems, 1, x), ItemGeneric.names[x]);
}
necronomicon = new ItemNecronomicon(ConfigurationNecromancy.NecronomiconID).setUnlocalizedName("Necronomicon");
LanguageRegistry.addName(necronomicon, "Necronomicon");
ThaumcraftApi.registerObjectTag(necronomicon.itemID, -1, (new ObjectTags()).add(EnumTag.KNOWLEDGE, 666).add(EnumTag.DEATH, 666).add(EnumTag.DARK, 666).add(EnumTag.EVIL, 666).add(EnumTag.CONTROL, 666));
scythe = new ItemScythe(ConfigurationNecromancy.ScytheID, ItemScythe.toolScythe).setUnlocalizedName("ItemScythe");
LanguageRegistry.addName(scythe, "Blood Scythe");
ThaumcraftApi.registerObjectTag(scythe.itemID, -1, (new ObjectTags()).add(EnumTag.WEAPON, 8).add(EnumTag.LIFE, 2));
scytheBone = new ItemScythe(ConfigurationNecromancy.ScytheBoneID, ItemScythe.toolScytheBone).setUnlocalizedName("ItemScytheBone");
LanguageRegistry.addName(scytheBone, "Bone Scythe");
ThaumcraftApi.registerObjectTag(scytheBone.itemID, -1, (new ObjectTags()).add(EnumTag.WEAPON, 8).add(EnumTag.DEATH, 2));
bucketBlood = new ItemBucketBlood(ConfigurationNecromancy.BucketBloodID, ConfigurationNecromancy.BloodID).setUnlocalizedName("BucketBlood");
LanguageRegistry.addName(bucketBlood, "Blood Bucket");
ThaumcraftApi.registerObjectTag(scytheBone.itemID, -1, (new ObjectTags()).add(EnumTag.METAL, 13).add(EnumTag.HEAL, 16).add(EnumTag.LIFE, 32));
organs = new ItemOrgans(ConfigurationNecromancy.OrgansID).setUnlocalizedName("Organs");
ThaumcraftApi.registerObjectTag(organs.itemID, 0, (new ObjectTags()).add(EnumTag.FLESH, 8).add(EnumTag.KNOWLEDGE, 4));
ThaumcraftApi.registerObjectTag(organs.itemID, 1, (new ObjectTags()).add(EnumTag.FLESH, 8));
ThaumcraftApi.registerObjectTag(organs.itemID, 2, (new ObjectTags()).add(EnumTag.FLESH, 2));
ThaumcraftApi.registerObjectTag(organs.itemID, 3, (new ObjectTags()).add(EnumTag.FLESH, 8));
ThaumcraftApi.registerObjectTag(organs.itemID, 4, (new ObjectTags()).add(EnumTag.EVIL, 2));
for (int x = 0; x < ItemOrgans.names.length; x++) {
LanguageRegistry.addName(new ItemStack(organs, 1, x), ItemOrgans.names[x]);
}
NecroEntityBase.organID = organs.itemID;
bodyparts = new ItemBodyPart(ConfigurationNecromancy.BodyPartID).setUnlocalizedName("BodyParts");
ThaumcraftApi.registerObjectTag(organs.itemID, -1, (new ObjectTags()).add(EnumTag.EVIL, 2).add(EnumTag.BEAST, 2).add(EnumTag.DEATH, 8));
isaacsHead = new ItemIsaacsHead(ConfigurationNecromancy.IsaacsHeadID, isaac, Necromancy.Proxy.addArmour("Isaac"), 0);
LanguageRegistry.addName(isaacsHead, "Isaac's Severed Head");
spawner = new ItemSpawner(ConfigurationNecromancy.SpawnerID).setUnlocalizedName("NecroSpawner");
LanguageRegistry.addName(new ItemStack(spawner, 1, 0), "Isaac's Soul Heart");
initRecipes();
}
示例11: getTags
import thaumcraft.api.ObjectTags; //导入依赖的package包/类
ObjectTags getTags();