mirror of
https://github.com/songoda/UltimateStacker.git
synced 2025-02-21 13:51:20 +01:00
re-add missing API
This commit is contained in:
parent
2b192929f8
commit
0f1b5acd08
@ -98,6 +98,11 @@ public class Methods {
|
|||||||
|| !blacklist.isEmpty() && blacklist.contains(combined);
|
|| !blacklist.isEmpty() && blacklist.contains(combined);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// This function shouldn't change! This is the API that many plugins hook into!
|
||||||
|
public static void updateItemAmount(Item item, int newAmount) {
|
||||||
|
updateItemAmount(item, item.getItemStack(), newAmount);
|
||||||
|
}
|
||||||
|
|
||||||
public static void updateItemAmount(Item item, ItemStack itemStack, int newAmount) {
|
public static void updateItemAmount(Item item, ItemStack itemStack, int newAmount) {
|
||||||
UltimateStacker plugin = UltimateStacker.getInstance();
|
UltimateStacker plugin = UltimateStacker.getInstance();
|
||||||
Material material = itemStack.getType();
|
Material material = itemStack.getType();
|
||||||
|
Loading…
Reference in New Issue
Block a user