Explorar o código

Add private keyword

nossr50 %!s(int64=6) %!d(string=hai) anos
pai
achega
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." +
     @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.")
             "\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." +
     @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.")
             "\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.")
     @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() {
     public double getMaxActivationChance() {
         return maxActivationChance;
         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 {
 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) {
     public AbstractMaximumProgressionLevel(SubSkillType subSkillType, int standardMaxLevel, int retroMaxLevel) {
         this.subSkillType = subSkillType;
         this.subSkillType = subSkillType;