geforkt von Mirrors/Paper
Implement World.getEntity(UUID) API
Dieser Commit ist enthalten in:
Ursprung
b7f23ee86d
Commit
7749dcdd84
@ -1130,6 +1130,15 @@ public class CraftWorld extends CraftRegionAccessor implements World {
|
||||
return list;
|
||||
}
|
||||
|
||||
// Paper start - getEntity by UUID API
|
||||
@Override
|
||||
public Entity getEntity(UUID uuid) {
|
||||
Preconditions.checkArgument(uuid != null, "UUID cannot be null");
|
||||
net.minecraft.world.entity.Entity entity = world.getEntity(uuid);
|
||||
return entity == null ? null : entity.getBukkitEntity();
|
||||
}
|
||||
// Paper end
|
||||
|
||||
@Override
|
||||
public void save() {
|
||||
org.spigotmc.AsyncCatcher.catchOp("world save"); // Spigot
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren