@param aUnlocalized The unlocalised Name of this Item. DO NOT START YOUR UNLOCALISED NAME WITH "gt."!!!
(String aModID, String aUnlocalized, String aEnglish, String aEnglishTooltip)
| 58 | * @param aUnlocalized The unlocalised Name of this Item. DO NOT START YOUR UNLOCALISED NAME WITH "gt."!!! |
| 59 | */ |
| 60 | public ItemBase(String aModID, String aUnlocalized, String aEnglish, String aEnglishTooltip) { |
| 61 | super(); |
| 62 | if (GAPI.mStartedInit) throw new IllegalStateException("Items can only be initialised within preInit!"); |
| 63 | mName = aUnlocalized; |
| 64 | mModID = aModID; |
| 65 | LH.add(mName, aEnglish); |
| 66 | if (UT.Code.stringValid(aEnglishTooltip)) LH.add(mTooltip = mName + ".tooltip_main", aEnglishTooltip); else mTooltip = null; |
| 67 | ST.register(this, mName); |
| 68 | BlockDispenser.dispenseBehaviorRegistry.putObject(this, new GT_Item_Dispense()); |
| 69 | } |
| 70 | |
| 71 | @Override |
| 72 | @SuppressWarnings("unchecked") |
nothing calls this directly
no test coverage detected