API: Location Tick Times #31

Open
opened 2023-04-03 00:47:00 +02:00 by sofianedjerbi · 1 comment
sofianedjerbi commented 2023-04-03 00:47:00 +02:00 (Migrated from github.com)

As a regionised server software, we don't know what current API Bukkit#getTickTimes, Bukkit#getAverageTickTime and Bukkit#getTPS should return.
It might be great to get significative TPS info based on region tick times.

Describe the solution you'd like.

Deprecate Bukkit#getTickTimes and Server#getTickTimes
Deprecate Bukkit#getAverageTickTime and Server#getAverageTickTime
Deprecate Bukkit#getTPS and Server#getTPS
Add Bukkit.getTickTimes(@NotNull Location): Give Tick Times based on Location Region Tick Times

Describe alternatives you've considered.

Bukkit.getTickTimes(@NotNull Entity): Give Tick Times based on Entity Region Tick Times
Same with getTPS getAverageTickTimes.

Other

No response

### Is your feature request related to a problem? As a regionised server software, we don't know what current API `Bukkit#getTickTimes`, `Bukkit#getAverageTickTime` and `Bukkit#getTPS` should return. It might be great to get significative TPS info based on region tick times. ### Describe the solution you'd like. Deprecate `Bukkit#getTickTimes` and `Server#getTickTimes` Deprecate `Bukkit#getAverageTickTime` and `Server#getAverageTickTime` Deprecate `Bukkit#getTPS` and `Server#getTPS` Add `Bukkit.getTickTimes(@NotNull Location)`: Give Tick Times based on Location Region Tick Times ### Describe alternatives you've considered. `Bukkit.getTickTimes(@NotNull Entity)`: Give Tick Times based on Entity Region Tick Times Same with `getTPS` `getAverageTickTimes`. ### Other _No response_
Spottedleaf commented 2023-04-17 03:51:22 +02:00 (Migrated from github.com)

The region at any location is undefined unless owned by the current thread. The region which owns an entity is even less-defined, too. These issues make the suggested APIs generally undefined - how do they play in with things such as region transience?

Basically, need APIs that ones that delay a return value when the region state is considered valid.

The region at any location is undefined unless owned by the current thread. The region which owns an entity is even less-defined, too. These issues make the suggested APIs generally undefined - how do they play in with things such as region transience? Basically, need APIs that ones that delay a return value when the region state is considered valid.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Minecraft/Folia#31
No description provided.