mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-11-04 02:53:43 +01:00 
			
		
		
		
	Cleanup
This commit is contained in:
		@@ -112,33 +112,6 @@ public class ExperienceConfig extends ConfigValidated {
 | 
			
		||||
        return reason;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /*
 | 
			
		||||
     * FORMULA SETTINGS
 | 
			
		||||
     */
 | 
			
		||||
 | 
			
		||||
    //TODO: Rewrite this
 | 
			
		||||
    /*public void setExperienceGainsGlobalMultiplier(double value) {
 | 
			
		||||
        config.set(EXPERIENCE_FORMULA, MULTIPLIER, GLOBAL, value);
 | 
			
		||||
    }*/
 | 
			
		||||
 | 
			
		||||
    /*
 | 
			
		||||
     * XP SETTINGS
 | 
			
		||||
     */
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Gets the raw XP given for breaking this block, this does not include modifiers
 | 
			
		||||
     *
 | 
			
		||||
     * @param skill     The skill to give XP for
 | 
			
		||||
     * @param blockType the type of block
 | 
			
		||||
     * @return the raw amount of XP for this block before modifiers
 | 
			
		||||
     */
 | 
			
		||||
    //public int getXp(PrimarySkillType skill, BlockType blockType) {
 | 
			
		||||
    public int getXp(PrimarySkillType skill, Material blockType) {
 | 
			
		||||
        //TODO: This is going to need to be changed, this code here is only placeholder
 | 
			
		||||
        String[] path = new String[]{EXPERIENCE, StringUtils.getCapitalized(skill.toString()), blockType.toString()};
 | 
			
		||||
        return getIntValue(path);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /*
 | 
			
		||||
     * Experience Bar Stuff
 | 
			
		||||
     */
 | 
			
		||||
 
 | 
			
		||||
@@ -1,17 +1,9 @@
 | 
			
		||||
package com.gmail.nossr50.skills.smelting;
 | 
			
		||||
 | 
			
		||||
import com.gmail.nossr50.datatypes.skills.SubSkillType;
 | 
			
		||||
import com.gmail.nossr50.mcMMO;
 | 
			
		||||
import com.gmail.nossr50.util.skills.RankUtils;
 | 
			
		||||
import org.bukkit.entity.Player;
 | 
			
		||||
import org.bukkit.inventory.ItemStack;
 | 
			
		||||
 | 
			
		||||
public class Smelting {
 | 
			
		||||
 | 
			
		||||
    public static int getRank(Player player) {
 | 
			
		||||
        return RankUtils.getRank(player, SubSkillType.SMELTING_UNDERSTANDING_THE_ART);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    protected static int getResourceXp(ItemStack smelting) {
 | 
			
		||||
        return mcMMO.getDynamicSettingsManager().getExperienceManager().getFurnaceItemXP(smelting.getType());
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user