promotional bannermobile promotional banner

AttributesAPI

Allows you (and further developers) to apply Attributes to ItemStacks

File Details

AttributesAPI 1.1

  • R
  • May 31, 2014
  • 34.00 KB
  • 2.4K
  • CB 1.7.9-R0.1

File Name

AttributesAPI.jar

Supported Versions

  • CB 1.7.9-R0.1

(API) Removed AttributeList, replaced with Attributes.

(API) You can apply Attributes now using

Attributes.apply(ItemStack is, Attribute a, boolean replace)

or

Attributes.apply(ItemStack is, Collection<? extends Attribute> a, boolean replace)

or

attribute.apply(ItemStack is, boolean replace)

(API) You can retrieve a List<Attribute> from an existing ItemStack using

Attributes.fromStack(ItemStack is)