import cpw.mods.fml.common.registry.EntityRegistry;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;
import net.minecraftforge.common.EnumHelper;
import net.minecraftforge.common.MinecraftForge;
public class LinkseyiForgeAdapter //制作器自建类
{
public static yc addToolMaterial(String name, int harvestLevel, int maxUses, float efficiency, int damage, int enchantability) //添加工具材料方法
{
return EnumHelper.addToolMaterial(name, harvestLevel, maxUses, efficiency, damage, enchantability);
}
public static wi addArmorMaterial(String name, int durability, int[] reductionAmounts, int enchantability) { //添加武器材料方法
return EnumHelper.addArmorMaterial(name, durability, reductionAmounts, enchantability);
}
public static og addCreatureType(String name, Class typeClass, int maxNumber, ajz material, boolean peaceful) {
return EnumHelper.addCreatureType(name, typeClass, maxNumber, material, peaceful);
}
public static void addRegisteredName(Object object, String name) { //注册名称
LanguageRegistry.addName(object, name);
}
public static void registerModEntity(Class<? extends nm> entityClass, String entityName, int id, Object mod, int trackingRange, int updateFrequency, boolean sendsVelocityUpdates) { //注册实体
EntityRegistry.registerModEntity(entityClass, entityName, id, mod, trackingRange, updateFrequency, sendsVelocityUpdates);
}
public static void setBlockHarvestLevel(aqw block, String toolClass, int tier) { //设置方块强度
MinecraftForge.setBlockHarvestLevel(block, toolClass, tier);
}
public static void addSmelting(int inputItemID, yd result, float experience) { //添加冶炼
GameRegistry.addSmelting(inputItemID, result, experience);
}
}