3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-12-26 08:10:11 +01:00

Fix javadoc errors

Dieser Commit ist enthalten in:
RednedEpic 2020-08-08 17:56:15 -05:00
Ursprung 0a5048232f
Commit 04cf8b2a99
6 geänderte Dateien mit 20 neuen und 7 gelöschten Zeilen

Datei anzeigen

@ -36,6 +36,9 @@ public interface GeyserLogger {
/**
* Logs a severe message and an exception to console
*
* @param message the message to log
* @param error the error to throw
*/
void severe(String message, Throwable error);
@ -48,6 +51,9 @@ public interface GeyserLogger {
/**
* Logs an error message and an exception to console
*
* @param message the message to log
* @param error the error to throw
*/
void error(String message, Throwable error);

Datei anzeigen

@ -665,7 +665,10 @@ public class GeyserSession implements CommandSender {
}
/**
* @see org.geysermc.connector.network.translators.world.WorldManager#hasPermission(GeyserSession, String)
* Checks if the given session's player has a permission
*
* @param permission The permission node to check
* @return true if the player has the requested permission, false if not
*/
public Boolean hasPermission(String permission) {
return connector.getWorldManager().hasPermission(this, permission);

Datei anzeigen

@ -42,6 +42,7 @@ public class FileUtils {
*
* @param src File to load
* @param valueType Class to load file into
* @param <T> the type
* @return The data as the given class
* @throws IOException if the config could not be loaded
*/

Datei anzeigen

@ -109,7 +109,7 @@ public enum GameRule {
* Fetch a game rule by the given Java ID
*
* @param id The ID of the gamerule
* @return A {@link GameRule} object representing the requested ID or {@link GameRule.UNKNOWN}
* @return A {@link GameRule} object representing the requested ID or {@link GameRule#UNKNOWN}
*/
public static GameRule fromJavaID(String id) {
for (GameRule gamerule : VALUES) {

Datei anzeigen

@ -136,6 +136,9 @@ public class InventoryUtils {
/**
* Returns a barrier block with custom name and lore to explain why
* part of the inventory is unusable.
*
* @param description the description
* @return the unusable space block
*/
public static ItemData createUnusableSpaceBlock(String description) {
NbtMapBuilder root = NbtMap.builder();

Datei anzeigen

@ -95,7 +95,7 @@ public class MessageUtils {
* @param messages A {@link List} of {@link Message} to parse
* @param locale A locale loaded to get the message for
* @param parent A {@link Message} to use as the parent (can be null)
* @return
* @return the translation parameters
*/
public static List<String> getTranslationParams(List<Message> messages, String locale, Message parent) {
List<String> strings = new ArrayList<>();
@ -160,10 +160,10 @@ public class MessageUtils {
* Translate a given {@link TranslationMessage} to the given locale
*
* @param message The {@link Message} to send
* @param locale
* @param shouldTranslate
* @param parent
* @return
* @param locale the locale
* @param shouldTranslate if the message should be translated
* @param parent the parent message
* @return the given translation message translated from the given locale
*/
public static String getTranslatedBedrockMessage(Message message, String locale, boolean shouldTranslate, Message parent) {
JsonParser parser = new JsonParser();