mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 07:20:24 +01:00
Added World.getName and World.getId
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
ee4573d9d1
commit
a5f424708d
1 changed files with 8 additions and 0 deletions
|
@ -190,6 +190,14 @@ public class CraftWorld implements World {
|
||||||
return world.l(x, y, z);
|
return world.l(x, y, z);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getName() {
|
||||||
|
return world.w;
|
||||||
|
}
|
||||||
|
|
||||||
|
public long getId() {
|
||||||
|
return world.u;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "CraftWorld";
|
return "CraftWorld";
|
||||||
|
|
Loading…
Reference in a new issue