Fix some javadoc warnings

Also remove a couple old/broken deprecated methods

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot
2019-05-20 20:29:33 +10:00
parent 7a2194f937
commit b2c53e8c68
21 changed files with 56 additions and 67 deletions

View File

@@ -26,7 +26,6 @@ public class Potion {
* water bottle.
*
* @param type The potion type
* @see #Potion(int)
*/
public Potion(@NotNull PotionType type) {
Validate.notNull(type, "Null PotionType");
@@ -77,14 +76,6 @@ public class Potion {
this.extended = extended;
}
/**
* @deprecated
*/
@Deprecated
public Potion(int name) {
this(PotionType.WATER);
}
/**
* Chain this to the constructor to make the potion a splash potion.
*

View File

@@ -37,6 +37,8 @@ public interface PotionBrewer {
* a potion with the given type.
*
* @param type The type of the potion
* @param upgraded Whether the potion is upgraded
* @param extended Whether the potion is extended
* @return The list of effects
*/
@NotNull

View File

@@ -1,6 +1,5 @@
package org.bukkit.potion;
import org.jetbrains.annotations.Contract;
import org.jetbrains.annotations.Nullable;
/**
@@ -71,29 +70,13 @@ public enum PotionType {
return extendable;
}
/**
* @deprecated Non-functional
*/
@Deprecated
public int getDamageValue() {
return this.ordinal();
}
public int getMaxLevel() {
return upgradeable ? 2 : 1;
}
/**
* @deprecated Non-functional
*/
@Deprecated
@Nullable
@Contract("_ -> null")
public static PotionType getByDamageValue(int damage) {
return null;
}
/**
* @param effectType the effect to get by
* @return the matching potion type
* @deprecated Misleading
*/
@Deprecated