Commits

md_5 authored d986a3f774d
Add Unbreakable to ItemMeta
No tags

src/main/java/org/bukkit/inventory/meta/ItemMeta.java

Modified
148 148 Set<ItemFlag> getItemFlags();
149 149
150 150 /**
151 151 * Check if the specified flag is present on this item.
152 152 *
153 153 * @param flag the flag to check
154 154 * @return if it is present
155 155 */
156 156 boolean hasItemFlag(ItemFlag flag);
157 157
158 + /**
159 + * Return if the unbreakable tag is true. An unbreakable item will not lose
160 + * durability.
161 + *
162 + * @return true if the unbreakable tag is true
163 + */
164 + boolean isUnbreakable();
165 +
166 + /**
167 + * Sets the unbreakable tag. An unbreakable item will not lose durability.
168 + *
169 + * @param unbreakable true if set unbreakable
170 + */
171 + void setUnbreakable(boolean unbreakable);
172 +
158 173 @SuppressWarnings("javadoc")
159 174 ItemMeta clone();
160 175 }

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut