mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-24 16:24:26 +00:00
25 lines
552 B
Java
25 lines
552 B
Java
package kamkeel.npcs.controllers.data.attribute;
|
|
|
|
|
|
import noppes.npcs.api.handler.data.ICustomAttribute;
|
|
|
|
public class PlayerAttribute implements ICustomAttribute {
|
|
private final AttributeDefinition attribute;
|
|
public float value;
|
|
|
|
public PlayerAttribute(AttributeDefinition attribute, float value) {
|
|
this.attribute = attribute;
|
|
this.value = value;
|
|
}
|
|
|
|
@Override
|
|
public AttributeDefinition getAttribute() {
|
|
return attribute;
|
|
}
|
|
|
|
@Override
|
|
public float getValue() {
|
|
return value;
|
|
}
|
|
}
|