mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-22 10:36:10 +01:00
Add missing method
This commit is contained in:
parent
2ba1a1580d
commit
97960fcd48
@ -21,6 +21,14 @@ public class AttributeTrait extends Trait {
|
||||
super("attributetrait");
|
||||
}
|
||||
|
||||
public Double getAttributeValue(Attribute attribute) {
|
||||
return attributes.get(attribute);
|
||||
}
|
||||
|
||||
public boolean hasAttribute(Attribute attribute) {
|
||||
return attributes.containsKey(attribute);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onSpawn() {
|
||||
if (!(npc.getEntity() instanceof LivingEntity))
|
||||
|
Loading…
Reference in New Issue
Block a user