Browse Source

Add private keyword

nossr50 6 years ago
parent
commit
9d47234918

+ 3 - 3
src/main/java/com/gmail/nossr50/config/hocon/skills/axes/ConfigAxesCriticalStrikes.java

@@ -14,14 +14,14 @@ public class ConfigAxesCriticalStrikes {
 
     @Setting(value = "Max-Activation-Chance", comment = "This is max percentage chance that is used to determine whether or not the ability is successful." +
             "\nA value of 50.0 would mean at most the ability can only have a 50% chance to work at max skill level.")
-    double maxActivationChance = MAX_ACTIVATION_CHANCE_DEFAULT;
+    private double maxActivationChance = MAX_ACTIVATION_CHANCE_DEFAULT;
 
     @Setting(value = "Maximum-Level", comment = "This is the level at which full benefits for this skill will be reached." +
             "\nProperties of this skill may or may not scale with level, but those that do will gradually increase until max level is achieved.")
-    AbstractMaximumProgressionLevel maximumProgressionLevel = new AbstractMaximumProgressionLevel(SubSkillType.AXES_CRITICAL_STRIKES, 100, 1000);
+    private AbstractMaximumProgressionLevel maximumProgressionLevel = new AbstractMaximumProgressionLevel(SubSkillType.AXES_CRITICAL_STRIKES, 100, 1000);
 
     @Setting(value = "Damage-Modifiers", comment = "Damage dealt is multiplied by these values when this skill is successfully activated.")
-    DamageProperty damageProperty = new AbstractDamageProperty(1.5, 2.0);
+    private DamageProperty damageProperty = new AbstractDamageProperty(1.5, 2.0);
 
     public double getMaxActivationChance() {
         return maxActivationChance;

+ 3 - 3
src/main/java/com/gmail/nossr50/datatypes/skills/properties/AbstractMaximumProgressionLevel.java

@@ -4,10 +4,10 @@ import com.gmail.nossr50.datatypes.skills.SubSkillType;
 
 public class AbstractMaximumProgressionLevel implements MaximumProgressionLevel {
 
-    SubSkillType subSkillType;
+    private SubSkillType subSkillType;
 
-    int standardMaxLevel;
-    int retroMaxLevel;
+    private int standardMaxLevel;
+    private int retroMaxLevel;
 
     public AbstractMaximumProgressionLevel(SubSkillType subSkillType, int standardMaxLevel, int retroMaxLevel) {
         this.subSkillType = subSkillType;