Skip to content

Commit

Permalink
change description return when null
Browse files Browse the repository at this point in the history
  • Loading branch information
Euphillya committed Jun 5, 2024
1 parent 0e0e69e commit f66faeb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions patches/api/0006-Add-TPS-From-Region.patch
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ index 67c021f6d5d2afed92c7ceb4f511e3a43bbe2417..f85b6efd4d2982acfa173920c9fd601d
+ * Gets the current location TPS.
+ *
+ * @param location the location for which to get the TPS
+ * @return current location TPS (5s, 15s, 1m, 5m, 15m in Folia-Server), or null if the position is not loaded
+ * @return current location TPS (5s, 15s, 1m, 5m, 15m in Folia-Server), or null if the region don't exist
+ */
+ public double @Nullable [] getTPS(Location location) {
+ return server.getTPS(location);
Expand All @@ -27,7 +27,7 @@ index 67c021f6d5d2afed92c7ceb4f511e3a43bbe2417..f85b6efd4d2982acfa173920c9fd601d
+ * Gets the current chunk TPS.
+ *
+ * @param chunk the chunk for which to get the TPS
+ * @return current chunk TPS (5s, 15s, 1m, 5m, 15m in Folia-Server), or null if the chunk is not loaded
+ * @return current chunk TPS (5s, 15s, 1m, 5m, 15m in Folia-Server), or null if the region don't exist
+ */
+ public double @Nullable [] getTPS(Chunk chunk){
+ return server.getTPS(chunk);
Expand All @@ -50,15 +50,15 @@ index d4c5b06fe4be177442ef1abaf1b223c6c2845930..4d65b05931dff6420c4da45a3f8ab99f
+ * Gets the current location TPS.
+ *
+ * @param location the location for which to get the TPS
+ * @return current location TPS (5s, 15s, 1m, 5m, 15m in Folia-Server), or null if the position is not loaded
+ * @return current location TPS (5s, 15s, 1m, 5m, 15m in Folia-Server), or null if the region don't exist
+ */
+ public double @Nullable [] getTPS(Location location);
+
+ /**
+ * Gets the current chunk TPS.
+ *
+ * @param chunk the chunk for which to get the TPS
+ * @return current chunk TPS (5s, 15s, 1m, 5m, 15m in Folia-Server), or null if the chunk is not loaded
+ * @return current chunk TPS (5s, 15s, 1m, 5m, 15m in Folia-Server), or null if the region don't exist
+ */
+ public double @Nullable [] getTPS(Chunk chunk);
+ // Folia end
Expand Down

0 comments on commit f66faeb

Please sign in to comment.