PaperdollCache use of doubleValue method.

This commit is contained in:
MobiusDevelopment 2020-07-04 04:40:42 +00:00
parent 1a1241957f
commit 14e6131507
15 changed files with 45 additions and 45 deletions

View File

@ -57,12 +57,12 @@ public final class PaperdollCache
_maxSetEnchant = -1; _maxSetEnchant = -1;
} }
public double getBaseStatValue(PlayerInstance player, final BaseStat stat) public double getBaseStatValue(PlayerInstance player, BaseStat stat)
{ {
final Double baseStatValue = _baseStatValues.get(stat); final Double baseStatValue = _baseStatValues.get(stat);
if (baseStatValue != null) if (baseStatValue != null)
{ {
return baseStatValue; return baseStatValue.doubleValue();
} }
final Set<ArmorSet> appliedSets = new HashSet<>(2); final Set<ArmorSet> appliedSets = new HashSet<>(2);
@ -112,7 +112,7 @@ public final class PaperdollCache
final Double statValue = _statValues.get(stat); final Double statValue = _statValues.get(stat);
if (statValue != null) if (statValue != null)
{ {
return statValue; return statValue.doubleValue();
} }
double value = 0; double value = 0;

View File

@ -57,12 +57,12 @@ public final class PaperdollCache
_maxSetEnchant = -1; _maxSetEnchant = -1;
} }
public double getBaseStatValue(PlayerInstance player, final BaseStat stat) public double getBaseStatValue(PlayerInstance player, BaseStat stat)
{ {
final Double baseStatValue = _baseStatValues.get(stat); final Double baseStatValue = _baseStatValues.get(stat);
if (baseStatValue != null) if (baseStatValue != null)
{ {
return baseStatValue; return baseStatValue.doubleValue();
} }
final Set<ArmorSet> appliedSets = new HashSet<>(2); final Set<ArmorSet> appliedSets = new HashSet<>(2);
@ -112,7 +112,7 @@ public final class PaperdollCache
final Double statValue = _statValues.get(stat); final Double statValue = _statValues.get(stat);
if (statValue != null) if (statValue != null)
{ {
return statValue; return statValue.doubleValue();
} }
double value = 0; double value = 0;

View File

@ -57,12 +57,12 @@ public final class PaperdollCache
_maxSetEnchant = -1; _maxSetEnchant = -1;
} }
public double getBaseStatValue(PlayerInstance player, final BaseStat stat) public double getBaseStatValue(PlayerInstance player, BaseStat stat)
{ {
final Double baseStatValue = _baseStatValues.get(stat); final Double baseStatValue = _baseStatValues.get(stat);
if (baseStatValue != null) if (baseStatValue != null)
{ {
return baseStatValue; return baseStatValue.doubleValue();
} }
final Set<ArmorSet> appliedSets = new HashSet<>(2); final Set<ArmorSet> appliedSets = new HashSet<>(2);
@ -112,7 +112,7 @@ public final class PaperdollCache
final Double statValue = _statValues.get(stat); final Double statValue = _statValues.get(stat);
if (statValue != null) if (statValue != null)
{ {
return statValue; return statValue.doubleValue();
} }
double value = 0; double value = 0;

View File

@ -57,12 +57,12 @@ public final class PaperdollCache
_maxSetEnchant = -1; _maxSetEnchant = -1;
} }
public double getBaseStatValue(PlayerInstance player, final BaseStat stat) public double getBaseStatValue(PlayerInstance player, BaseStat stat)
{ {
final Double baseStatValue = _baseStatValues.get(stat); final Double baseStatValue = _baseStatValues.get(stat);
if (baseStatValue != null) if (baseStatValue != null)
{ {
return baseStatValue; return baseStatValue.doubleValue();
} }
final Set<ArmorSet> appliedSets = new HashSet<>(2); final Set<ArmorSet> appliedSets = new HashSet<>(2);
@ -112,7 +112,7 @@ public final class PaperdollCache
final Double statValue = _statValues.get(stat); final Double statValue = _statValues.get(stat);
if (statValue != null) if (statValue != null)
{ {
return statValue; return statValue.doubleValue();
} }
double value = 0; double value = 0;

View File

@ -57,12 +57,12 @@ public final class PaperdollCache
_maxSetEnchant = -1; _maxSetEnchant = -1;
} }
public double getBaseStatValue(PlayerInstance player, final BaseStat stat) public double getBaseStatValue(PlayerInstance player, BaseStat stat)
{ {
final Double baseStatValue = _baseStatValues.get(stat); final Double baseStatValue = _baseStatValues.get(stat);
if (baseStatValue != null) if (baseStatValue != null)
{ {
return baseStatValue; return baseStatValue.doubleValue();
} }
final Set<ArmorSet> appliedSets = new HashSet<>(2); final Set<ArmorSet> appliedSets = new HashSet<>(2);
@ -112,7 +112,7 @@ public final class PaperdollCache
final Double statValue = _statValues.get(stat); final Double statValue = _statValues.get(stat);
if (statValue != null) if (statValue != null)
{ {
return statValue; return statValue.doubleValue();
} }
double value = 0; double value = 0;

View File

@ -57,12 +57,12 @@ public final class PaperdollCache
_maxSetEnchant = -1; _maxSetEnchant = -1;
} }
public double getBaseStatValue(PlayerInstance player, final BaseStat stat) public double getBaseStatValue(PlayerInstance player, BaseStat stat)
{ {
final Double baseStatValue = _baseStatValues.get(stat); final Double baseStatValue = _baseStatValues.get(stat);
if (baseStatValue != null) if (baseStatValue != null)
{ {
return baseStatValue; return baseStatValue.doubleValue();
} }
final Set<ArmorSet> appliedSets = new HashSet<>(2); final Set<ArmorSet> appliedSets = new HashSet<>(2);
@ -112,7 +112,7 @@ public final class PaperdollCache
final Double statValue = _statValues.get(stat); final Double statValue = _statValues.get(stat);
if (statValue != null) if (statValue != null)
{ {
return statValue; return statValue.doubleValue();
} }
double value = 0; double value = 0;

View File

@ -57,12 +57,12 @@ public final class PaperdollCache
_maxSetEnchant = -1; _maxSetEnchant = -1;
} }
public double getBaseStatValue(PlayerInstance player, final BaseStat stat) public double getBaseStatValue(PlayerInstance player, BaseStat stat)
{ {
final Double baseStatValue = _baseStatValues.get(stat); final Double baseStatValue = _baseStatValues.get(stat);
if (baseStatValue != null) if (baseStatValue != null)
{ {
return baseStatValue; return baseStatValue.doubleValue();
} }
final Set<ArmorSet> appliedSets = new HashSet<>(2); final Set<ArmorSet> appliedSets = new HashSet<>(2);
@ -112,7 +112,7 @@ public final class PaperdollCache
final Double statValue = _statValues.get(stat); final Double statValue = _statValues.get(stat);
if (statValue != null) if (statValue != null)
{ {
return statValue; return statValue.doubleValue();
} }
double value = 0; double value = 0;

View File

@ -57,12 +57,12 @@ public final class PaperdollCache
_maxSetEnchant = -1; _maxSetEnchant = -1;
} }
public double getBaseStatValue(PlayerInstance player, final BaseStat stat) public double getBaseStatValue(PlayerInstance player, BaseStat stat)
{ {
final Double baseStatValue = _baseStatValues.get(stat); final Double baseStatValue = _baseStatValues.get(stat);
if (baseStatValue != null) if (baseStatValue != null)
{ {
return baseStatValue; return baseStatValue.doubleValue();
} }
final Set<ArmorSet> appliedSets = new HashSet<>(2); final Set<ArmorSet> appliedSets = new HashSet<>(2);
@ -112,7 +112,7 @@ public final class PaperdollCache
final Double statValue = _statValues.get(stat); final Double statValue = _statValues.get(stat);
if (statValue != null) if (statValue != null)
{ {
return statValue; return statValue.doubleValue();
} }
double value = 0; double value = 0;

View File

@ -57,12 +57,12 @@ public final class PaperdollCache
_maxSetEnchant = -1; _maxSetEnchant = -1;
} }
public double getBaseStatValue(PlayerInstance player, final BaseStat stat) public double getBaseStatValue(PlayerInstance player, BaseStat stat)
{ {
final Double baseStatValue = _baseStatValues.get(stat); final Double baseStatValue = _baseStatValues.get(stat);
if (baseStatValue != null) if (baseStatValue != null)
{ {
return baseStatValue; return baseStatValue.doubleValue();
} }
final Set<ArmorSet> appliedSets = new HashSet<>(2); final Set<ArmorSet> appliedSets = new HashSet<>(2);
@ -112,7 +112,7 @@ public final class PaperdollCache
final Double statValue = _statValues.get(stat); final Double statValue = _statValues.get(stat);
if (statValue != null) if (statValue != null)
{ {
return statValue; return statValue.doubleValue();
} }
double value = 0; double value = 0;

View File

@ -57,12 +57,12 @@ public final class PaperdollCache
_maxSetEnchant = -1; _maxSetEnchant = -1;
} }
public double getBaseStatValue(PlayerInstance player, final BaseStat stat) public double getBaseStatValue(PlayerInstance player, BaseStat stat)
{ {
final Double baseStatValue = _baseStatValues.get(stat); final Double baseStatValue = _baseStatValues.get(stat);
if (baseStatValue != null) if (baseStatValue != null)
{ {
return baseStatValue; return baseStatValue.doubleValue();
} }
final Set<ArmorSet> appliedSets = new HashSet<>(2); final Set<ArmorSet> appliedSets = new HashSet<>(2);
@ -112,7 +112,7 @@ public final class PaperdollCache
final Double statValue = _statValues.get(stat); final Double statValue = _statValues.get(stat);
if (statValue != null) if (statValue != null)
{ {
return statValue; return statValue.doubleValue();
} }
double value = 0; double value = 0;

View File

@ -57,12 +57,12 @@ public final class PaperdollCache
_maxSetEnchant = -1; _maxSetEnchant = -1;
} }
public double getBaseStatValue(PlayerInstance player, final BaseStat stat) public double getBaseStatValue(PlayerInstance player, BaseStat stat)
{ {
final Double baseStatValue = _baseStatValues.get(stat); final Double baseStatValue = _baseStatValues.get(stat);
if (baseStatValue != null) if (baseStatValue != null)
{ {
return baseStatValue; return baseStatValue.doubleValue();
} }
final Set<ArmorSet> appliedSets = new HashSet<>(2); final Set<ArmorSet> appliedSets = new HashSet<>(2);
@ -112,7 +112,7 @@ public final class PaperdollCache
final Double statValue = _statValues.get(stat); final Double statValue = _statValues.get(stat);
if (statValue != null) if (statValue != null)
{ {
return statValue; return statValue.doubleValue();
} }
double value = 0; double value = 0;

View File

@ -57,12 +57,12 @@ public final class PaperdollCache
_maxSetEnchant = -1; _maxSetEnchant = -1;
} }
public double getBaseStatValue(PlayerInstance player, final BaseStat stat) public double getBaseStatValue(PlayerInstance player, BaseStat stat)
{ {
final Double baseStatValue = _baseStatValues.get(stat); final Double baseStatValue = _baseStatValues.get(stat);
if (baseStatValue != null) if (baseStatValue != null)
{ {
return baseStatValue; return baseStatValue.doubleValue();
} }
final Set<ArmorSet> appliedSets = new HashSet<>(2); final Set<ArmorSet> appliedSets = new HashSet<>(2);
@ -112,7 +112,7 @@ public final class PaperdollCache
final Double statValue = _statValues.get(stat); final Double statValue = _statValues.get(stat);
if (statValue != null) if (statValue != null)
{ {
return statValue; return statValue.doubleValue();
} }
double value = 0; double value = 0;

View File

@ -57,12 +57,12 @@ public final class PaperdollCache
_maxSetEnchant = -1; _maxSetEnchant = -1;
} }
public double getBaseStatValue(PlayerInstance player, final BaseStat stat) public double getBaseStatValue(PlayerInstance player, BaseStat stat)
{ {
final Double baseStatValue = _baseStatValues.get(stat); final Double baseStatValue = _baseStatValues.get(stat);
if (baseStatValue != null) if (baseStatValue != null)
{ {
return baseStatValue; return baseStatValue.doubleValue();
} }
final Set<ArmorSet> appliedSets = new HashSet<>(2); final Set<ArmorSet> appliedSets = new HashSet<>(2);
@ -112,7 +112,7 @@ public final class PaperdollCache
final Double statValue = _statValues.get(stat); final Double statValue = _statValues.get(stat);
if (statValue != null) if (statValue != null)
{ {
return statValue; return statValue.doubleValue();
} }
double value = 0; double value = 0;

View File

@ -57,12 +57,12 @@ public final class PaperdollCache
_maxSetEnchant = -1; _maxSetEnchant = -1;
} }
public double getBaseStatValue(PlayerInstance player, final BaseStat stat) public double getBaseStatValue(PlayerInstance player, BaseStat stat)
{ {
final Double baseStatValue = _baseStatValues.get(stat); final Double baseStatValue = _baseStatValues.get(stat);
if (baseStatValue != null) if (baseStatValue != null)
{ {
return baseStatValue; return baseStatValue.doubleValue();
} }
final Set<ArmorSet> appliedSets = new HashSet<>(2); final Set<ArmorSet> appliedSets = new HashSet<>(2);
@ -112,7 +112,7 @@ public final class PaperdollCache
final Double statValue = _statValues.get(stat); final Double statValue = _statValues.get(stat);
if (statValue != null) if (statValue != null)
{ {
return statValue; return statValue.doubleValue();
} }
double value = 0; double value = 0;

View File

@ -57,12 +57,12 @@ public final class PaperdollCache
_maxSetEnchant = -1; _maxSetEnchant = -1;
} }
public double getBaseStatValue(PlayerInstance player, final BaseStat stat) public double getBaseStatValue(PlayerInstance player, BaseStat stat)
{ {
final Double baseStatValue = _baseStatValues.get(stat); final Double baseStatValue = _baseStatValues.get(stat);
if (baseStatValue != null) if (baseStatValue != null)
{ {
return baseStatValue; return baseStatValue.doubleValue();
} }
final Set<ArmorSet> appliedSets = new HashSet<>(2); final Set<ArmorSet> appliedSets = new HashSet<>(2);
@ -112,7 +112,7 @@ public final class PaperdollCache
final Double statValue = _statValues.get(stat); final Double statValue = _statValues.get(stat);
if (statValue != null) if (statValue != null)
{ {
return statValue; return statValue.doubleValue();
} }
double value = 0; double value = 0;