ItemLike

Importing the class

If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.

script.zs
import crafttweaker.api.world.ItemLike;

Members

asItem() as Item
script.zs
// ItemLike.asItem() as Item;
myItemLike.asItem();

Return Type: ItemDefinition

as Item
script.zs
// ItemLike as Item
myItemLike as Item

Return Type: ItemDefinition