Skip to content

Commit f7a4bb3

Browse files
committed
Typo and update ItemBuilder
1 parent 06dc7d1 commit f7a4bb3

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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+
6667
Just copy `FastInv.java` and `FastInvManager.java` in your plugin. You can also add `ItemBuilder.java`
6768

6869
### Use FastInv

src/main/java/fr/mrmicky/fastinv/ItemBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import 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;

0 commit comments

Comments
 (0)