mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 23:29:41 +00:00
More Attribute Pushing
This commit is contained in:
1 parent
c3573d5d2c
commit
6e59cc760f
14 files changed
+264
-394
No files matched your search
@@ -0,0 +1,30 @@
|
||||
package noppes.npcs.attribute.player;
|
||||
|
||||
|
||||
import noppes.npcs.attribute.AttributeDefinition;
|
||||
import noppes.npcs.attribute.IAttributeInstance;
|
||||
|
||||
public class PlayerAttribute implements IAttributeInstance {
|
||||
private final AttributeDefinition attribute;
|
||||
private double baseValue;
|
||||
|
||||
public PlayerAttribute(AttributeDefinition attribute, double baseValue) {
|
||||
this.attribute = attribute;
|
||||
this.baseValue = baseValue;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AttributeDefinition getAttribute() {
|
||||
return attribute;
|
||||
}
|
||||
|
||||
@Override
|
||||
public double getValue() {
|
||||
return baseValue;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setValue(double value) {
|
||||
this.baseValue = value;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user