mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 07:20:24 +01:00
Expose the internal current tick
This commit is contained in:
parent
2cee31307e
commit
9a251fbd95
2 changed files with 11 additions and 0 deletions
|
@ -2552,6 +2552,10 @@ public final class Bukkit {
|
||||||
public static com.destroystokyo.paper.profile.PlayerProfile createProfileExact(@Nullable UUID uuid, @Nullable String name) {
|
public static com.destroystokyo.paper.profile.PlayerProfile createProfileExact(@Nullable UUID uuid, @Nullable String name) {
|
||||||
return server.createProfileExact(uuid, name);
|
return server.createProfileExact(uuid, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static int getCurrentTick() {
|
||||||
|
return server.getCurrentTick();
|
||||||
|
}
|
||||||
// Paper end
|
// Paper end
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
|
|
|
@ -2221,5 +2221,12 @@ public interface Server extends PluginMessageRecipient, net.kyori.adventure.audi
|
||||||
*/
|
*/
|
||||||
@NotNull
|
@NotNull
|
||||||
com.destroystokyo.paper.profile.PlayerProfile createProfileExact(@Nullable UUID uuid, @Nullable String name);
|
com.destroystokyo.paper.profile.PlayerProfile createProfileExact(@Nullable UUID uuid, @Nullable String name);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the current internal server tick
|
||||||
|
*
|
||||||
|
* @return Current tick
|
||||||
|
*/
|
||||||
|
int getCurrentTick();
|
||||||
// Paper end
|
// Paper end
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue