Skip to content

Instantly share code, notes, and snippets.

@LionZXY
Created October 4, 2015 12:40
Show Gist options
  • Save LionZXY/fead607929f9dec27d48 to your computer and use it in GitHub Desktop.
Save LionZXY/fead607929f9dec27d48 to your computer and use it in GitHub Desktop.
import mods.MTUtils
//Items:
MTUtils.setItemMaxDamage(itemstack, damage);
MTUtils.getItemMaxDamage(itemstack); (Return int)
MTUtils.getItemDamage(itemstack); (Return int)
Blocks
MTUtils.setHarvestLevel(itemstack, String tooltip, int harvestLevel);
MTUtils.setBlockUnbreakable(itemstack);
MTUtils.setHardness(itemstack, float hardness;
MTUtils.setLightLevel(itemstack, float lightLevel);
MTUtils.setLightOpacity(itemstack, int lightOpacity);
MTUtils.setResistance(itemstack, float resistance);
MTUtils.setTextureName(itemstack, String texturename);
MTUtils.getHarvestLevel(itemstack); (Return int)
MTUtils.getHarvestTool(itemstack); (Return String)
MTUtils.getTextureName(itemstack, int side); (Return String)
Utils:
MTUtils.getIntFromString(string); (Return int)
MTUtils.getFloatFromString(string); (Return float)
MTUtils.getStringFromInt(int); (Return String)
MTUtils.getStringFromFloat(float); (Return String)
MTUtils.getStringFromFormattedText(IFormattedText text); (Return String)
MTUtils.getStringFromFormattedString(IMCFormattedString text); (Return String)
MTUtils.getCrossMatch(IOreDictEntry ... oreDictEntries); (Return IItemStack[])
MTUtils.getIngredientFromString(String in) (Return IIngredient)
MTUtils.getItemStackFromString(String in) (Return IItemStack)
MTUtils.getIOreDictEntryFromString(String in) (Return IOreDictEntry)
MTUtils.getIFormatedTextFromString(String in) (Return IFormattedText)
MTUtils.getIMCFormattedTextFromString(String in) (Return IMCFormattedString)
Drops:
MTUtils.clearDrops() //Recreated HashMap drops
MTUtils.setBlockDrops(@Nullable IItemStack harvester, IItemStack block, IItemStack drops[], float quantiDrop[], IItemStack falseDrops[])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment