Fixed hundreds of small issues, code improvements, typos, ...
This commit is contained in:
@@ -39,7 +39,7 @@ public class GUIHotBar implements Listener {
|
||||
private final List<Player> currentPlayers = new ArrayList<>();
|
||||
|
||||
/**
|
||||
* Setup a new gui hot bar. You should not instantiate more than one hot bar.
|
||||
* Set up a new gui hot bar. You should not instantiate more than one hot bar.
|
||||
* @param defaultSlot the default slot (currently held item) when the player joins the hot bar.
|
||||
*/
|
||||
public GUIHotBar(int defaultSlot) {
|
||||
|
@@ -493,7 +493,7 @@ public class PerformanceAnalysisManager implements Listener {
|
||||
/**
|
||||
* Runs the garbage collector on the server.
|
||||
* Depending on the server load and the used memory, this can freeze the server for a second.
|
||||
* @param sender the command sender that triggers the garbase collector. Can be null (the report will be sent to the
|
||||
* @param sender the command sender that triggers the garbage collector. Can be null (the report will be sent to the
|
||||
* console)
|
||||
*/
|
||||
public static void gc(CommandSender sender) {
|
||||
|
@@ -57,8 +57,8 @@ public class AutoUpdatedBossBar implements Listener {
|
||||
* Schedule the update of this boss bar with synchronisation with the system clock.
|
||||
* The underlying method called is {@link Timer#schedule(TimerTask, long, long)}.
|
||||
* The updater is executed in a separate Thread.
|
||||
* @param msDelay ms before running the first update of this bossbar
|
||||
* @param msPeriod ms between each call of the updater
|
||||
* @param msDelay ms before running the first update of this boss bar.
|
||||
* @param msPeriod ms between each call of the updater.
|
||||
*/
|
||||
public synchronized void scheduleUpdateTimeSyncThreadAsync(long msDelay, long msPeriod) {
|
||||
if (scheduled)
|
||||
@@ -82,8 +82,8 @@ public class AutoUpdatedBossBar implements Listener {
|
||||
* Schedule the update of this boss bar with synchronisation with the ticking of this Minecraft server.
|
||||
* The underlying method called is {@link BukkitScheduler#runTaskTimer(org.bukkit.plugin.Plugin, Runnable, long, long)}.
|
||||
* The updater is executed by the main Server Thread.
|
||||
* @param tickDelay number of server tick before running the first update of this boss bar
|
||||
* @param tickPeriod number of server tick between each call of the updater
|
||||
* @param tickDelay number of server tick before running the first update of this boss bar.
|
||||
* @param tickPeriod number of server tick between each call of the updater.
|
||||
*/
|
||||
public synchronized void scheduleUpdateTickSyncThreadSync(long tickDelay, long tickPeriod) {
|
||||
if (scheduled)
|
||||
|
@@ -141,7 +141,7 @@ public class BukkitEvent {
|
||||
|
||||
|
||||
/**
|
||||
* An single executor event listener. Used for the {@link #register(Class, EventListener)} static method and the other variants.
|
||||
* A single executor event listener. Used for the {@link #register(Class, EventListener)} static method and the other variants.
|
||||
* @param <E> the event type.
|
||||
*/
|
||||
public interface EventListener<E extends Event> extends Listener, EventExecutor {
|
||||
|
Reference in New Issue
Block a user