Java Code Examples for gregtech.api.enums.OrePrefixes#name()
The following examples show how to use
gregtech.api.enums.OrePrefixes#name() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BW_MetaGenerated_Items.java From bartworks with MIT License | 5 votes |
public BW_MetaGenerated_Items(OrePrefixes orePrefixes) { super("bwMetaGenerated" + orePrefixes.name(), (short) 32766, (short) 0); this.orePrefixes = orePrefixes; this.setCreativeTab(BW_MetaGenerated_Items.metaTab); for (Werkstoff w : werkstoffHashSet) { ItemStack tStack = new ItemStack(this, 1, w.getmID()); if (!w.hasItemType(this.orePrefixes)) continue; GT_LanguageManager.addStringLocalization(this.getUnlocalizedName(tStack) + ".name", this.getDefaultLocalization(w)); GT_LanguageManager.addStringLocalization(this.getUnlocalizedName(tStack) + ".tooltip", w.getToolTip()); GT_OreDictUnificator.registerOre(this.orePrefixes.name() + w.getVarName(), tStack); } }
Example 2
Source File: BW_MetaGenerated_Items.java From bartworks with MIT License | 4 votes |
public BW_MetaGenerated_Items(OrePrefixes orePrefixes, Object unused){ super("bwMetaGeneratedGTEnhancement" + orePrefixes.name(), (short) 32766, (short) 0); this.orePrefixes = orePrefixes; }