geforkt von Mirrors/Paper
Add API to get default value of an Attribute
By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
Ursprung
597dc19283
Commit
cd5305a554
@ -60,6 +60,11 @@ public class CraftAttributeInstance implements AttributeInstance {
|
||||
return handle.getValue();
|
||||
}
|
||||
|
||||
@Override
|
||||
public double getDefaultValue() {
|
||||
return handle.getAttribute().getDefault();
|
||||
}
|
||||
|
||||
private static net.minecraft.server.AttributeModifier convert(AttributeModifier bukkit) {
|
||||
return new net.minecraft.server.AttributeModifier(bukkit.getUniqueId(), bukkit.getName(), bukkit.getAmount(), bukkit.getOperation().ordinal());
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren