mirror of
https://github.com/exituser/Brewery.git
synced 2026-09-17 08:59:01 +00:00
Added and Fixed lots of JavaDocs
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user