mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 12:27:59 +01:00
Tameable#getOwnerUniqueId API
This is faster if all you need is the UUID, as .getOwner() will cause an OfflinePlayer to be loaded from disk.
This commit is contained in:
parent
794fc9799b
commit
4b38f09815
@ -88,6 +88,10 @@ public abstract class CraftAbstractHorse extends CraftAnimals implements Abstrac
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public UUID getOwnerUniqueId() {
|
||||
return getOwnerUUID();
|
||||
}
|
||||
public UUID getOwnerUUID() {
|
||||
return this.getHandle().getOwnerUUID();
|
||||
}
|
||||
|
@ -17,6 +17,10 @@ public class CraftTameableAnimal extends CraftAnimals implements Tameable, Creat
|
||||
return (TamableAnimal) super.getHandle();
|
||||
}
|
||||
|
||||
@Override
|
||||
public UUID getOwnerUniqueId() {
|
||||
return getOwnerUUID();
|
||||
}
|
||||
public UUID getOwnerUUID() {
|
||||
try {
|
||||
return this.getHandle().getOwnerUUID();
|
||||
|
Loading…
Reference in New Issue
Block a user