Add missing method

This commit is contained in:
fullwall 2024-09-29 17:18:36 +08:00
parent 2ba1a1580d
commit 97960fcd48

View File

@ -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))