forked from GeyserMC/Geyser
Fix javadoc errors
This commit is contained in:
parent
0a5048232f
commit
04cf8b2a99
6 changed files with 20 additions and 7 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue