MCTag
Link to 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.
Importing the class
Link to importing-the-class
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.
ZenScript Copycrafttweaker.api.tag.MCTag
Implemented Interfaces
Link to implemented-interfaces
MCTag implements the following interfaces. That means any method available to them can also be used on this class.
Methods
Link to methods
addBlocks
Link to addblocks
ZenScript CopymyMCTag.addBlocks(blocks as crafttweaker.api.block.MCBlock[]);
Parameter | Type | Description |
---|---|---|
Parameter blocks | Type crafttweaker.api.block.MCBlock[] | Description No description provided |
addEntityTypes
Link to addentitytypes
ZenScript CopymyMCTag.addEntityTypes(entities as crafttweaker.api.entity.MCEntityType[]);
Parameter | Type | Description |
---|---|---|
Parameter entities | Type crafttweaker.api.entity.MCEntityType[] | Description No description provided |
addItems
Link to additems
ZenScript CopymyMCTag.addItems(items as crafttweaker.api.item.IItemStack[]);
Parameter | Type | Description |
---|---|---|
Parameter items | Type crafttweaker.api.item.IItemStack[] | Description No description provided |
createBlockTag
Link to createblocktag
Returns crafttweaker.api.tag.MCTag
ZenScript CopymyMCTag.createBlockTag();
createEntityTypeTag
Link to createentitytypetag
Returns crafttweaker.api.tag.MCTag
ZenScript CopymyMCTag.createEntityTypeTag();
createItemTag
Link to createitemtag
Returns crafttweaker.api.tag.MCTag
ZenScript CopymyMCTag.createItemTag();
getRemainingItem
Link to 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
ZenScript CopymyMCTag.getRemainingItem(stack as crafttweaker.api.item.IItemStack);
myMCTag.getRemainingItem(<item:minecraft:iron_ingot>);
Parameter | Type | Description |
---|---|---|
Parameter stack | Type crafttweaker.api.item.IItemStack | Description The stack to provide for this ingredient. |
matches
Link to matches
Does the given stack match the ingredient?
Returns boolean
ZenScript CopymyMCTag.matches(stack as crafttweaker.api.item.IItemStack);
myMCTag.matches(<item:minecraft:iron_ingot>);
Parameter | Type | Description |
---|---|---|
Parameter stack | Type crafttweaker.api.item.IItemStack | Description The stack to check |
removeBlocks
Link to removeblocks
ZenScript CopymyMCTag.removeBlocks(blocks as crafttweaker.api.block.MCBlock[]);
Parameter | Type | Description |
---|---|---|
Parameter blocks | Type crafttweaker.api.block.MCBlock[] | Description No description provided |
removeEntityTypes
Link to removeentitytypes
ZenScript CopymyMCTag.removeEntityTypes(entities as crafttweaker.api.entity.MCEntityType[]);
Parameter | Type | Description |
---|---|---|
Parameter entities | Type crafttweaker.api.entity.MCEntityType[] | Description No description provided |
removeItems
Link to removeitems
ZenScript CopymyMCTag.removeItems(items as crafttweaker.api.item.IItemStack[]);
Parameter | Type | Description |
---|---|---|
Parameter items | Type crafttweaker.api.item.IItemStack[] | Description No description provided |
Properties
Link to properties
Nombre | Type | Has Getter | Has Setter |
---|---|---|---|
Nombre blocks | Type crafttweaker.api.block.MCBlock[] | Has Getter true | Has Setter false |
Nombre commandString | Type String | Has Getter true | Has Setter false |
Nombre entityTypes | Type crafttweaker.api.entity.MCEntityType[] | Has Getter true | Has Setter false |
Nombre items | Type crafttweaker.api.item.IItemStack[] | Has Getter true | Has Setter false |
Casters
Link to casters
Result type | Is Implicit |
---|---|
Result type crafttweaker.api.data.IData | Is Implicit true |
Result type crafttweaker.api.data.MapData | Is Implicit true |