mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-19 07:33:11 +01:00
Added World.getName and World.getId
This commit is contained in:
parent
81f920d927
commit
603156ea29
1 changed files with 8 additions and 0 deletions
|
@ -190,6 +190,14 @@ public class CraftWorld implements World {
|
|||
return world.l(x, y, z);
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return world.w;
|
||||
}
|
||||
|
||||
public long getId() {
|
||||
return world.u;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "CraftWorld";
|
||||
|
|
Loading…
Reference in a new issue