mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-01-08 09:27:38 +01:00
Removed deprecated methods in AddonDescription and FlagListener
This commit is contained in:
parent
f2078aae3f
commit
57d70c3d24
@ -24,7 +24,7 @@ public final class AddonDescription {
|
|||||||
*/
|
*/
|
||||||
private final boolean metrics;
|
private final boolean metrics;
|
||||||
|
|
||||||
private AddonDescription(Builder builder) {
|
private AddonDescription(@NonNull Builder builder) {
|
||||||
this.main = builder.main;
|
this.main = builder.main;
|
||||||
this.name = builder.name;
|
this.name = builder.name;
|
||||||
this.version = builder.version;
|
this.version = builder.version;
|
||||||
@ -94,17 +94,6 @@ public final class AddonDescription {
|
|||||||
private @NonNull List<String> dependencies = new ArrayList<>();
|
private @NonNull List<String> dependencies = new ArrayList<>();
|
||||||
private @NonNull List<String> softDependencies = new ArrayList<>();
|
private @NonNull List<String> softDependencies = new ArrayList<>();
|
||||||
private boolean metrics = false;
|
private boolean metrics = false;
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated As of 1.1, use {@link Builder#Builder(String, String, String)} instead.
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
public Builder(@NonNull String main, @NonNull String name) {
|
|
||||||
this.main = main;
|
|
||||||
this.name = name;
|
|
||||||
this.version = "";
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @since 1.1
|
* @since 1.1
|
||||||
*/
|
*/
|
||||||
@ -114,16 +103,6 @@ public final class AddonDescription {
|
|||||||
this.version = version;
|
this.version = version;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated As of 1.1, for removal.
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
@NonNull
|
|
||||||
public Builder version(@NonNull String version) {
|
|
||||||
this.version = version;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
@NonNull
|
@NonNull
|
||||||
public Builder description(@NonNull String description) {
|
public Builder description(@NonNull String description) {
|
||||||
this.description = description;
|
this.description = description;
|
||||||
|
@ -235,18 +235,6 @@ public abstract class FlagListener implements Listener {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the flag for this ID
|
|
||||||
* @param id - the flag ID
|
|
||||||
* @return Flag denoted by the id
|
|
||||||
* @deprecated As of 1.1, replaced with {@link #getFlag(String)}.
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
@Nullable
|
|
||||||
protected Flag id(@NonNull String id) {
|
|
||||||
return getFlag(id).orElse(null);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the flag for this ID
|
* Get the flag for this ID
|
||||||
* @param id the flag ID
|
* @param id the flag ID
|
||||||
|
Loading…
Reference in New Issue
Block a user