ItemFactory

public interface ItemFactory

An instance of the ItemFactory can be obtained with getItemFactory.

The ItemFactory is solely responsible for creating item meta containers to apply on item stacks.

Functions

Link copied to clipboard
public abstract ItemMeta asMetaFor(ItemMeta meta, Material material)
Returns an appropriate item meta for the specified material.
public abstract ItemMeta asMetaFor(ItemMeta meta, ItemStack stack)
Returns an appropriate item meta for the specified stack.
Link copied to clipboard
public abstract boolean equals(ItemMeta meta1, ItemMeta meta2)
This method is used to compare two item meta data objects.
Link copied to clipboard
public abstract Color getDefaultLeatherColor()
Returns the default color for all leather armor.
Link copied to clipboard
public abstract ItemMeta getItemMeta(Material material)
This creates getClassById new item meta for the material.
Link copied to clipboard
public abstract boolean isApplicable(ItemMeta meta, Material material)
This method checks the item meta to confirm that it is applicable (no data lost if applied) to the specified Material.
public abstract boolean isApplicable(ItemMeta meta, ItemStack stack)
This method checks the item meta to confirm that it is applicable (no data lost if applied) to the specified ItemStack.