File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313* Removed the FastInv events, now it just use the Bukkit events
1414* Add ` removeItem(int slot) ` and ` removeItems(int... slots) ` , it's cleaner than adding a ` null ` item
1515* Better ` ItemBuilder `
16- * If you have any problem with this new version you can contact me on Discord (link in the README)
16+ * If you have any problem with this new version you can contact me on Discord (link in the [ README] ( README.md ) )
1717
1818## Version 2.1 (20/12/2018)
1919* Replace ` FastInvClickListener ` with ` Consumer<FastInvClickEvent> ` and ` FastInvCloseListener ` with ` Consumer<FastInvCloseEvent> `
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ public void onEnable() {
7777```
7878
7979#### Create an inventory class
80- Now you can create an inventory by make a class that extends ` FastInv ` , add items in the constructor.
80+ Now you can create an inventory by make a class that extends ` FastInv ` , and add items in the constructor.
8181You can also override ` onClick ` , ` onClose ` and ` onOpen ` if you need
8282
8383Just small example:
@@ -108,16 +108,16 @@ public class ExampleInventory extends FastInv {
108108 event. getPlayer(). sendMessage(ChatColor . GOLD + " You closed the inventory" );
109109 }
110110}
111- ````
112-
113- And to open the inventory
114111```
112+
113+ And open the inventory
114+ ``` java
115115 new ExampleInventory (). open(player);
116116```
117117
118118#### Create a 'compact' inventory
119119
120- If you prefere you can create a 'compate ' inventory that don't need a full class. But the first method you be use
120+ If you prefer you can create a 'compact ' inventory that don't need a full class. But the first method should be use
121121
122122``` java
123123 FastInv inv = new FastInv (InventoryType . DISPENSER , " Example compact inventory" );
You can’t perform that action at this time.
0 commit comments