Added and Fixed lots of JavaDocs

This commit is contained in:
Sn0wStorm
2019-11-25 22:16:16 +01:00
parent c287b6350f
commit 16c03f9da1
32 changed files with 513 additions and 308 deletions
+5 -3
View File
@@ -59,7 +59,9 @@ public class BUtil {
}
}
// returns the Player if online
/**
* returns the Player if online
*/
public static Player getPlayerfromString(String name) {
if (P.useUUID) {
try {
@@ -97,7 +99,7 @@ public class BUtil {
}
/**
* Load A List of Strings from config. If found a single String, will convert to List
* Load A List of Strings from config, if found a single String, will convert to List
*/
@Nullable
public static List<String> loadCfgStringList(ConfigurationSection cfg, String path) {
@@ -112,7 +114,7 @@ public class BUtil {
}
/**
* Load a String from config. If found a List, will return the first String
* Load a String from config, if found a List, will return the first String
*/
@Nullable
public static String loadCfgString(ConfigurationSection cfg, String path) {
+6 -2
View File
@@ -191,7 +191,11 @@ public class LegacyUtil {
}
}
// 0 = empty, 1 = something in, 2 = full
/**
* Get The Fill Level of a Cauldron Block, 0 = empty, 1 = something in, 2 = full
*
* @return 0 = empty, 1 = something in, 2 = full
*/
public static byte getFillLevel(Block block) {
if (block.getType() != Material.CAULDRON) {
return EMPTY;
@@ -219,7 +223,7 @@ public class LegacyUtil {
}
}
/*
/**
* only used to convert a very old Datafile or config from a very old version
*/
public static Material getMaterial(int id) {
-8
View File
@@ -46,8 +46,6 @@ public class Tuple<A, B> {
/**
* Gets the first value in the tuple
*
* @return
*/
public A first() {
return a;
@@ -55,8 +53,6 @@ public class Tuple<A, B> {
/**
* Gets the second value in the tuple
*
* @return
*/
public B second() {
return b;
@@ -64,8 +60,6 @@ public class Tuple<A, B> {
/**
* Gets the first value in the tuple, Synonym for first()
*
* @return
*/
public A a() {
return a;
@@ -73,8 +67,6 @@ public class Tuple<A, B> {
/**
* Gets the second value in the tuple, Synonym for second()
*
* @return
*/
public B b() {
return b;