add smelting default xp values

This commit is contained in:
nossr50 2019-04-24 18:51:52 -07:00
parent 0a63e6674a
commit 7928ababf6
2 changed files with 27 additions and 0 deletions

View File

@ -102,4 +102,7 @@ public class ConfigExperienceMining {
@Setting(value = "Mining-Experience")
private HashMap<String, Integer> miningExperienceMap = MINING_EXPERIENCE_DEFAULT;
public HashMap<String, Integer> getMiningExperienceMap() {
return miningExperienceMap;
}
}

View File

@ -1,8 +1,32 @@
package com.gmail.nossr50.config.hocon.experience;
import ninja.leaping.configurate.objectmapping.Setting;
import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;
import java.util.HashMap;
@ConfigSerializable
public class ConfigExperienceSmelting {
private final static HashMap<String, Integer> SMELTING_EXPERIENCE_MAP_DEFAULT;
static {
SMELTING_EXPERIENCE_MAP_DEFAULT = new HashMap<>();
SMELTING_EXPERIENCE_MAP_DEFAULT.put("minecraft:coal_ore", 10);
SMELTING_EXPERIENCE_MAP_DEFAULT.put("minecraft:diamond_ore", 75);
SMELTING_EXPERIENCE_MAP_DEFAULT.put("minecraft:emerald_ore", 100);
SMELTING_EXPERIENCE_MAP_DEFAULT.put("minecraft:gold_ore", 35);
SMELTING_EXPERIENCE_MAP_DEFAULT.put("minecraft:iron_ore", 25);
SMELTING_EXPERIENCE_MAP_DEFAULT.put("minecraft:lapis_ore", 40);
SMELTING_EXPERIENCE_MAP_DEFAULT.put("minecraft:nether_quartz_ore", 25);
SMELTING_EXPERIENCE_MAP_DEFAULT.put("minecraft:redstone_ore", 15);
}
@Setting(value = "Smelting-XP-Values")
private HashMap<String, Integer> smeltingExperienceMap = SMELTING_EXPERIENCE_MAP_DEFAULT;
public HashMap<String, Integer> getSmeltingExperienceMap() {
return smeltingExperienceMap;
}
}