mirror of
https://github.com/darksaid98/SiegeEngines.git
synced 2026-12-01 22:22:10 +00:00
more refactoring
This commit is contained in:
1 parent
2d3c8760b0
commit
0fee7b004f
6 files changed
+763
-783
No files matched your search
@@ -5,6 +5,7 @@ import java.util.concurrent.TimeUnit;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.entity.Entity;
|
||||
import org.bukkit.entity.LivingEntity;
|
||||
import org.bukkit.inventory.Inventory;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
import org.bukkit.inventory.meta.ItemMeta;
|
||||
import org.bukkit.metadata.FixedMetadataValue;
|
||||
@@ -48,4 +49,8 @@ public class SiegeEnginesUtil {
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static boolean hasItem(Inventory inv, ItemStack m) {
|
||||
return inv.containsAtLeast(m, m.getAmount());
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user