| 351 | public static ItemStack make_(Item aItem , long aSize, long aMeta) {return new ItemStack(aItem , UT.Code.bindInt(aSize), UT.Code.bindShort(aMeta));} |
| 352 | public static ItemStack make_(Block aBlock, long aSize, long aMeta) {return new ItemStack(aBlock, UT.Code.bindInt(aSize), UT.Code.bindShort(aMeta));} |
| 353 | public static ItemStack make(ModData aModID, String aItem, long aSize) { |
| 354 | if (!aModID.mLoaded || UT.Code.stringInvalid(aItem) || !GAPI_POST.mStartedPreInit) return null; |
| 355 | ItemStack |
| 356 | rStack = GameRegistry.findItemStack(aModID.mID, aItem, (int)aSize); |
| 357 | if (valid(rStack)) return rStack; |
| 358 | if (aItem.length() < 5 || aItem.charAt(4) != '.' || !aItem.startsWith("tile")) return null; |
| 359 | return validate(GameRegistry.findItemStack(aModID.mID, aItem.substring(5), (int)aSize)); |
| 360 | } |
| 361 | public static ItemStack mkic(String aItem, long aSize) { |
| 362 | if (UT.Code.stringInvalid(aItem) || !GAPI_POST.mStartedPreInit) return null; |
| 363 | if (!sIC2ItemMap.containsKey(aItem)) try { |