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

Method create

src/main/java/gregapi/data/MT.java:56–56  ·  view source on GitHub ↗
(int aID, String aNameOreDict)

Source from the content-addressed store, hash-verified

54 static OreDictMaterial deprecated (String aNameOreDict) {return create(-1, aNameOreDict).put(UNUSED_MATERIAL, DONT_SHOW_THIS_COMPONENT);}
55 static OreDictMaterial invalid (String aNameOreDict) {return create(-1, aNameOreDict).put(UNUSED_MATERIAL, DONT_SHOW_THIS_COMPONENT, INVALID_MATERIAL);}
56 static OreDictMaterial create (int aID, String aNameOreDict) {if (aID >= 10000) return null; OreDictMaterial rMaterial = OreDictMaterial.createMaterial(aID, aNameOreDict, aNameOreDict); ALL_MATERIALS_REGISTERED_HERE.add(rMaterial); if (aID > 0) rMaterial.setOriginalMod(MD.GAPI); return rMaterial.handle(ANY.WoodPlastic);}
57 static OreDictMaterial create (int aID, String aNameOreDict, TextureSet[] aSets) {return create(aID, aNameOreDict).setTextures(aSets);}
58 static OreDictMaterial create (int aID, String aNameOreDict, TextureSet[] aSets, long aR, long aG, long aB, long aA, Object... aRandomData) {return create(aID, aNameOreDict, aSets).setRGBa(aR, aG, aB, aA).put(aRandomData, aR==256?UNUSED_MATERIAL:null).hide(aR==256);}
59

Callers 15

tierMethod · 0.95
unusedMethod · 0.95
deprecatedMethod · 0.95
invalidMethod · 0.95
elementMethod · 0.95
dcmpMethod · 0.95
gasMethod · 0.95
lqudMethod · 0.95
gaschemMethod · 0.95
lqudchemMethod · 0.95
gasacidMethod · 0.95
lqudacidMethod · 0.95

Calls 8

createMaterialMethod · 0.95
setOriginalModMethod · 0.95
handleMethod · 0.95
setTexturesMethod · 0.80
setRGBaMethod · 0.80
addMethod · 0.65
hideMethod · 0.45
putMethod · 0.45

Tested by

no test coverage detected