mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 23:29:41 +00:00
Change from Double to Float
This commit is contained in:
1 parent
c4fdf1a7b6
commit
d482213c85
8 files changed
+129
-72
No files matched your search
@@ -6,9 +6,9 @@ import noppes.npcs.attribute.IAttributeInstance;
|
||||
|
||||
public class PlayerAttribute implements IAttributeInstance {
|
||||
private final AttributeDefinition attribute;
|
||||
private double baseValue;
|
||||
private float baseValue;
|
||||
|
||||
public PlayerAttribute(AttributeDefinition attribute, double baseValue) {
|
||||
public PlayerAttribute(AttributeDefinition attribute, float baseValue) {
|
||||
this.attribute = attribute;
|
||||
this.baseValue = baseValue;
|
||||
}
|
||||
@@ -19,12 +19,12 @@ public class PlayerAttribute implements IAttributeInstance {
|
||||
}
|
||||
|
||||
@Override
|
||||
public double getValue() {
|
||||
public float getValue() {
|
||||
return baseValue;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setValue(double value) {
|
||||
public void setValue(float value) {
|
||||
this.baseValue = value;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user