File tree Expand file tree Collapse file tree
src/main/java/fr/mrmicky/fastinv Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ Small and easy Bukkit inventory API with 1.7 to 1.13.2 support !
6363```
6464
6565** Manual**
66+
6667Just copy ` FastInv.java ` and ` FastInvManager.java ` in your plugin. You can also add ` ItemBuilder.java `
6768
6869### Use FastInv
Original file line number Diff line number Diff line change 1515import java .util .function .Consumer ;
1616
1717/**
18- * Simple builder to create {@link ItemStack}
18+ * Simple {@link ItemStack} builder
1919 *
2020 * @author MrMicky
2121 */
@@ -77,9 +77,9 @@ public ItemBuilder meta(Consumer<ItemMeta> metaConsumer) {
7777 return this ;
7878 }
7979
80- @ SuppressWarnings ("unchecked" )
8180 public <T extends ItemMeta > ItemBuilder meta (Class <T > metaClass , Consumer <T > metaConsumer ) {
8281 if (metaClass .isAssignableFrom (meta .getClass ())) {
82+ //noinspection unchecked
8383 metaConsumer .accept ((T ) meta );
8484 }
8585 return this ;
You can’t perform that action at this time.
0 commit comments