mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-27 16:42:57 +00:00
Config Overhaul
This commit is contained in:
1 parent
b4cb69000e
commit
6e92f08851
51 files changed
+764
-395
No files matched your search
@@ -7,6 +7,7 @@ import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.common.util.EnumHelper;
|
||||
import noppes.npcs.CustomNpcs;
|
||||
import noppes.npcs.LogWriter;
|
||||
import noppes.npcs.config.ConfigMain;
|
||||
import noppes.npcs.items.ItemStaff;
|
||||
|
||||
public abstract class EnchantInterface extends Enchantment{
|
||||
@@ -21,7 +22,7 @@ public abstract class EnchantInterface extends Enchantment{
|
||||
private Class[] classes;
|
||||
|
||||
protected EnchantInterface(int par2, Class... obs) {
|
||||
super(CustomNpcs.EnchantStartId++, par2, CustomNpcsType);
|
||||
super(ConfigMain.EnchantStartId++, par2, CustomNpcsType);
|
||||
classes = obs;
|
||||
}
|
||||
|
||||
@@ -37,7 +38,7 @@ public abstract class EnchantInterface extends Enchantment{
|
||||
}
|
||||
|
||||
public static void load(){
|
||||
if(!CustomNpcs.DisableEnchants){
|
||||
if(!ConfigMain.DisableEnchants){
|
||||
CustomNpcsType = EnumHelper.addEnchantmentType("customnpcs_enchants");
|
||||
try{
|
||||
Damage = new EnchantDamage();
|
||||
@@ -52,7 +53,7 @@ public abstract class EnchantInterface extends Enchantment{
|
||||
}
|
||||
|
||||
public static int getLevel(EnchantInterface enchant, ItemStack stack) {
|
||||
if(CustomNpcs.DisableEnchants || enchant == null)
|
||||
if(ConfigMain.DisableEnchants || enchant == null)
|
||||
return 0;
|
||||
return EnchantmentHelper.getEnchantmentLevel(enchant.effectId, stack);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user