MCTag

This class was added by a mod with mod-id crafttweaker. So you need to have this mod installed if you want to use this feature.

Diese Klasse importieren

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import.

crafttweaker.api.tag.MCTag

Implemented Interfaces

MCTag implements the following interfaces. That means any method available to them can also be used on this class.

Methoden

addBlocks

myMCTag.addBlocks(blocks as crafttweaker.api.block.MCBlock[]);
ParameterTypeBeschreibung
blockscrafttweaker.api.block.MCBlock[]No description provided

addEntityTypes

myMCTag.addEntityTypes(entities as crafttweaker.api.entity.MCEntityType[]);
ParameterTypeBeschreibung
entitiescrafttweaker.api.entity.MCEntityType[]No description provided

addItems

myMCTag.addItems(items as crafttweaker.api.item.IItemStack[]);
ParameterTypeBeschreibung
itemscrafttweaker.api.item.IItemStack[]No description provided

createBlockTag

Returns crafttweaker.api.tag.MCTag

myMCTag.createBlockTag();

createEntityTypeTag

Returns crafttweaker.api.tag.MCTag

myMCTag.createEntityTypeTag();

createItemTag

Returns crafttweaker.api.tag.MCTag

myMCTag.createItemTag();

getRemainingItem

When this ingredient stack is crafted, what will remain in the grid? Does not check if the stack matches though! Used e.g. in CrT's net.minecraft.item.crafting.ICraftingRecipe

Returns crafttweaker.api.item.IItemStack

myMCTag.getRemainingItem(stack as crafttweaker.api.item.IItemStack);
myMCTag.getRemainingItem(<item:minecraft:iron_ingot>);
ParameterTypeBeschreibung
stackcrafttweaker.api.item.IItemStackThe stack to provide for this ingredient.

matches

Does the given stack match the ingredient?

Returns boolean

myMCTag.matches(stack as crafttweaker.api.item.IItemStack);
myMCTag.matches(<item:minecraft:iron_ingot>);
ParameterTypeBeschreibung
stackcrafttweaker.api.item.IItemStackThe stack to check

removeBlocks

myMCTag.removeBlocks(blocks as crafttweaker.api.block.MCBlock[]);
ParameterTypeBeschreibung
blockscrafttweaker.api.block.MCBlock[]No description provided

removeEntityTypes

myMCTag.removeEntityTypes(entities as crafttweaker.api.entity.MCEntityType[]);
ParameterTypeBeschreibung
entitiescrafttweaker.api.entity.MCEntityType[]No description provided

removeItems

myMCTag.removeItems(items as crafttweaker.api.item.IItemStack[]);
ParameterTypeBeschreibung
itemscrafttweaker.api.item.IItemStack[]No description provided

Properties

NameTypeHas GetterHas Setter
blockscrafttweaker.api.block.MCBlock[]truefalse
commandStringStringtruefalse
entityTypescrafttweaker.api.entity.MCEntityType[]truefalse
itemscrafttweaker.api.item.IItemStack[]truefalse

Casters