From 25d4639636100b1e10612e63a5eaa74b64c6687e Mon Sep 17 00:00:00 2001
From: Indyuce <cym.peyrat@yahoo.fr>
Date: Sat, 29 Oct 2022 01:18:56 +0200
Subject: [PATCH] Fixed doc

---
 .../Indyuce/mmocore/experience/Booster.java   | 186 +++++++++---------
 1 file changed, 90 insertions(+), 96 deletions(-)

diff --git a/MMOCore-API/src/main/java/net/Indyuce/mmocore/experience/Booster.java b/MMOCore-API/src/main/java/net/Indyuce/mmocore/experience/Booster.java
index 28f609a5..8daa0bd1 100644
--- a/MMOCore-API/src/main/java/net/Indyuce/mmocore/experience/Booster.java
+++ b/MMOCore-API/src/main/java/net/Indyuce/mmocore/experience/Booster.java
@@ -6,118 +6,112 @@ import java.util.Objects;
 import java.util.UUID;
 
 public class Booster {
-	private final UUID uuid = UUID.randomUUID();
-	private final long date = System.currentTimeMillis();
-	private final Profession profession;
-	private final double extra;
-	private final String author;
+    private final UUID uuid = UUID.randomUUID();
+    private final long date = System.currentTimeMillis();
+    private final Profession profession;
+    private final double extra;
+    private final String author;
 
-	/**
-	 * Length is not final because boosters can stacks. This allows to reduce
-	 * the amount of boosters displayed in the main player menu
-	 * 
-	 * See {@link BoosterManager#register(Booster)}
-	 */
-	private long length;
+    /**
+     * Length is not final because boosters can stacks. This allows to reduce
+     * the amount of boosters displayed in the main player menu
+     * <p>
+     * See {@link BoosterManager#register(Booster)}
+     */
+    private long length;
 
-	/**
-	 * @param extra
-	 *            1 for +100% experience, 3 for 300% etc.
-	 * @param length
-	 *            Booster length in milliseconds
-	 */
-	public Booster(double extra, long length) {
-		this(null, null, extra, length);
-	}
+    /**
+     * @param extra  1 for +100% experience, 3 for 300% etc.
+     * @param length Booster length in seconds
+     */
+    public Booster(double extra, long length) {
+        this(null, null, extra, length);
+    }
 
-	/**
-	 * Main class experience booster
-	 *
-	 * @param author The booster creator
-	 * @param extra  1 for +100% experience, 3 for 300% etc.
-	 * @param length Booster length in milliseconds
-	 */
-	public Booster(String author, double extra, long length) {
-		this(author, null, extra, length);
-	}
+    /**
+     * Main class experience booster
+     *
+     * @param author The booster creator
+     * @param extra  1 for +100% experience, 3 for 300% etc.
+     * @param length Booster length in seconds
+     */
+    public Booster(String author, double extra, long length) {
+        this(author, null, extra, length);
+    }
 
-	/**
-	 * Profession experience booster
-	 *
-	 * @param author
-	 *            The booster creator
-	 * @param profession
-	 *            Either null for main level boosters or a specific profession
-	 * @param extra
-	 *            1 for +100% experience, 3 for 300% etc.
-	 * @param length
-	 *            Booster length in milliseconds
-	 */
-	public Booster(String author, Profession profession, double extra, long length) {
-		this.author = author;
-		this.length = length * 1000;
-		this.profession = profession;
-		this.extra = extra;
-	}
+    /**
+     * Profession experience booster
+     *
+     * @param author     The booster creator
+     * @param profession Either null for main level boosters or a specific profession
+     * @param extra      1 for +100% experience, 3 for 300% etc.
+     * @param length     Booster length in seconds
+     */
+    public Booster(String author, Profession profession, double extra, long length) {
+        this.author = author;
+        this.length = length * 1000;
+        this.profession = profession;
+        this.extra = extra;
+    }
 
-	public UUID getUniqueId() {
-		return uuid;
-	}
+    public UUID getUniqueId() {
+        return uuid;
+    }
 
-	public double getExtra() {
-		return extra;
-	}
+    public double getExtra() {
+        return extra;
+    }
 
-	public boolean hasAuthor() {
-		return author != null;
-	}
+    public boolean hasAuthor() {
+        return author != null;
+    }
 
-	public String getAuthor() {
-		return author;
-	}
+    public String getAuthor() {
+        return author;
+    }
 
-	public long getCreationDate() {
-		return date;
-	}
+    public long getCreationDate() {
+        return date;
+    }
 
-	public boolean hasProfession() {
-		return profession != null;
-	}
+    public boolean hasProfession() {
+        return profession != null;
+    }
 
-	public Profession getProfession() {
-		return profession;
-	}
+    public Profession getProfession() {
+        return profession;
+    }
 
-	public boolean isTimedOut() {
-		return date + length < System.currentTimeMillis();
-	}
+    public boolean isTimedOut() {
+        return date + length < System.currentTimeMillis();
+    }
 
-	public long getLeft() {
-		return Math.max(0, date + length - System.currentTimeMillis());
-	}
+    public long getLeft() {
+        return Math.max(0, date + length - System.currentTimeMillis());
+    }
 
-	public long getLength() {
-		return length;
-	}
+    public long getLength() {
+        return length;
+    }
 
-	public void addLength(long length) {
-		this.length += length;
-	}
+    public void addLength(long length) {
+        this.length += length;
+    }
 
-	public boolean canStackWith(Booster booster) {
-		return extra == booster.extra && Objects.equals(profession, booster.profession);
-	}
+    public boolean canStackWith(Booster booster) {
+        return extra == booster.extra && Objects.equals(profession, booster.profession);
+    }
 
-	@Override
-	public boolean equals(Object o) {
-		if (this == o) return true;
-		if (o == null || getClass() != o.getClass()) return false;
-		Booster booster = (Booster) o;
-		return Objects.equals(uuid, booster.uuid);
-	}
+    @Override
+    public boolean equals(Object o) {
+        if (this == o) return true;
+        if (o == null || getClass() != o.getClass()) return false;
+        Booster booster = (Booster) o;
+        return Objects.equals(uuid, booster.uuid);
+    }
 
-	@Override
-	public int hashCode() {
-		return Objects.hash(uuid);
-	}
+    @Override
+    public int hashCode() {
+        return Objects.hash(uuid);
+    }
 }