MCPcopy Create free account
hub / github.com/GregTech6/gregtech6 / ItemBase

Method ItemBase

src/main/java/gregapi/item/ItemBase.java:60–69  ·  view source on GitHub ↗

@param aUnlocalized The unlocalised Name of this Item. DO NOT START YOUR UNLOCALISED NAME WITH "gt."!!!

(String aModID, String aUnlocalized, String aEnglish, String aEnglishTooltip)

Source from the content-addressed store, hash-verified

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")

Callers

nothing calls this directly

Calls 3

addMethod · 0.95
registerMethod · 0.95
stringValidMethod · 0.80

Tested by

no test coverage detected