|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.quartercode.quarterbukkit.api.thread.ThreadUtil
public class ThreadUtil
This class is for handle the Bukkit-Thread-Errors. It will manage the called method with their actions.
| Method Summary | |
|---|---|
static void |
check()
Checks if the current Thread is valid for Bukkit-API-functions and throws an IllegalThreadStateException if not. |
static void |
check(java.lang.Thread thread)
Checks if a Thread is valid for Bukkit-API-functions and throws an IllegalThreadStateException if not. |
static java.lang.Thread |
getBukkitThrad()
Returns the initalized Bukkit-Main- Thread. |
static void |
initalizeThread()
Initalizes the Thread management. |
static boolean |
isInBukkitThread()
Checks if the current Thread is the Bukkit-Main-Thread. |
static boolean |
isInBukkitThread(java.lang.Thread thread)
Checks if a Thread is the Bukkit-Main-Thread. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void initalizeThread()
Thread management.
This can only be called one time.
public static java.lang.Thread getBukkitThrad()
Thread.
Thread.public static boolean isInBukkitThread()
Thread is the Bukkit-Main-Thread.
Thread is valid for Bukkit-API-functions.public static boolean isInBukkitThread(java.lang.Thread thread)
Thread is the Bukkit-Main-Thread.
thread - The Thread to check.
Thread is valid for Bukkit-API-functions.public static void check()
Thread is valid for Bukkit-API-functions and throws an IllegalThreadStateException if not.
public static void check(java.lang.Thread thread)
Thread is valid for Bukkit-API-functions and throws an IllegalThreadStateException if not.
thread - The Thread to check.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||