mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-08-01 20:15:27 +02:00
Compare commits
3 Commits
deprecate-
...
chore/v6/v
Author | SHA1 | Date | |
---|---|---|---|
![]() |
f15a652add | ||
![]() |
fa710803af | ||
![]() |
10605e8048 |
@@ -74,30 +74,65 @@ public class ComponentPreset implements ConfigurationSerializable {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated {@link ComponentPreset} class will be replaced by a record in the next major update. This method will become
|
||||||
|
* {@code ComponentPreset#component()}
|
||||||
|
*/
|
||||||
|
@Deprecated(forRemoval = true, since = "TODO")
|
||||||
public ClassicPlotManagerComponent getComponent() {
|
public ClassicPlotManagerComponent getComponent() {
|
||||||
return this.component;
|
return this.component;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated {@link ComponentPreset} class will be replaced by a record in the next major update. This method will become
|
||||||
|
* {@code ComponentPreset#pattern()}
|
||||||
|
*/
|
||||||
|
@Deprecated(forRemoval = true, since = "TODO")
|
||||||
public String getPattern() {
|
public String getPattern() {
|
||||||
return this.pattern;
|
return this.pattern;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated {@link ComponentPreset} class will be replaced by a record in the next major update. This method will become
|
||||||
|
* {@code ComponentPreset#cost()}
|
||||||
|
*/
|
||||||
|
@Deprecated(forRemoval = true, since = "TODO")
|
||||||
public double getCost() {
|
public double getCost() {
|
||||||
return this.cost;
|
return this.cost;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated {@link ComponentPreset} class will be replaced by a record in the next major update. This method will become
|
||||||
|
* {@code ComponentPreset#permission()}
|
||||||
|
*/
|
||||||
|
@Deprecated(forRemoval = true, since = "TODO")
|
||||||
public String getPermission() {
|
public String getPermission() {
|
||||||
return this.permission;
|
return this.permission;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated {@link ComponentPreset} class will be replaced by a record in the next major update. This method will become
|
||||||
|
* {@code ComponentPreset#displayName()}
|
||||||
|
*/
|
||||||
|
@Deprecated(forRemoval = true, since = "TODO")
|
||||||
public String getDisplayName() {
|
public String getDisplayName() {
|
||||||
return this.displayName;
|
return this.displayName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated {@link ComponentPreset} class will be replaced by a record in the next major update. This method will become
|
||||||
|
* {@code ComponentPreset#description()}
|
||||||
|
*/
|
||||||
|
@Deprecated(forRemoval = true, since = "TODO")
|
||||||
public List<String> getDescription() {
|
public List<String> getDescription() {
|
||||||
return this.description;
|
return this.description;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated {@link ComponentPreset} class will be replaced by a record in the next major update. This method will become
|
||||||
|
* {@code ComponentPreset#icon()}
|
||||||
|
*/
|
||||||
|
@Deprecated(forRemoval = true, since = "TODO")
|
||||||
public ItemType getIcon() {
|
public ItemType getIcon() {
|
||||||
return this.icon;
|
return this.icon;
|
||||||
}
|
}
|
||||||
|
@@ -23,8 +23,25 @@ import com.plotsquared.core.util.StringMan;
|
|||||||
|
|
||||||
public class ChunkWrapper {
|
public class ChunkWrapper {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated {@link ChunkWrapper} class will be replaced by a record in the next major update. This variable will be
|
||||||
|
* accessible using {@code ChunkWrapper#x()}
|
||||||
|
*/
|
||||||
|
@Deprecated(forRemoval = true, since = "TODO")
|
||||||
public final int x;
|
public final int x;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated {@link ChunkWrapper} class will be replaced by a record in the next major update. This variable will be
|
||||||
|
* accessible using {@code ChunkWrapper#z()}
|
||||||
|
*/
|
||||||
|
@Deprecated(forRemoval = true, since = "TODO")
|
||||||
public final int z;
|
public final int z;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated {@link ChunkWrapper} class will be replaced by a record in the next major update. This variable will be
|
||||||
|
* accessible using {@code ChunkWrapper#world()}
|
||||||
|
*/
|
||||||
|
@Deprecated(forRemoval = true, since = "TODO")
|
||||||
public final String world;
|
public final String world;
|
||||||
|
|
||||||
public ChunkWrapper(String world, int x, int z) {
|
public ChunkWrapper(String world, int x, int z) {
|
||||||
|
@@ -22,11 +22,45 @@ import com.plotsquared.core.plot.PlotId;
|
|||||||
|
|
||||||
public class PlotComment {
|
public class PlotComment {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated {@link PlotComment} class will be replaced by a record in the next major update. This variable will be
|
||||||
|
* accessible using {@code PlotComment#comment()}
|
||||||
|
*/
|
||||||
|
@Deprecated(forRemoval = true, since = "TODO")
|
||||||
public final String comment;
|
public final String comment;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated {@link PlotComment} class will be replaced by a record in the next major update. This variable will be
|
||||||
|
* accessible using {@code PlotComment#inbox()}
|
||||||
|
*/
|
||||||
|
@Deprecated(forRemoval = true, since = "TODO")
|
||||||
public final String inbox;
|
public final String inbox;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated {@link PlotComment} class will be replaced by a record in the next major update. This variable will be
|
||||||
|
* accessible using {@code PlotComment#senderName()}
|
||||||
|
*/
|
||||||
|
@Deprecated(forRemoval = true, since = "TODO")
|
||||||
public final String senderName;
|
public final String senderName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated {@link PlotComment} class will be replaced by a record in the next major update. This variable will be
|
||||||
|
* accessible using {@code PlotComment#id()}
|
||||||
|
*/
|
||||||
|
@Deprecated(forRemoval = true, since = "TODO")
|
||||||
public final PlotId id;
|
public final PlotId id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated {@link PlotComment} class will be replaced by a record in the next major update. This variable will be
|
||||||
|
* accessible using {@code PlotComment#world()}
|
||||||
|
*/
|
||||||
|
@Deprecated(forRemoval = true, since = "TODO")
|
||||||
public final String world;
|
public final String world;
|
||||||
|
/**
|
||||||
|
* @deprecated {@link PlotComment} class will be replaced by a record in the next major update. This variable will be
|
||||||
|
* accessible using {@code PlotComment#timestamp()}
|
||||||
|
*/
|
||||||
|
@Deprecated(forRemoval = true, since = "TODO")
|
||||||
public final long timestamp;
|
public final long timestamp;
|
||||||
|
|
||||||
public PlotComment(
|
public PlotComment(
|
||||||
|
@@ -86,10 +86,20 @@ public abstract class TimedFlag<T, F extends PlotFlag<TimedFlag.Timed<T>, F>>
|
|||||||
this.value = value;
|
this.value = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated {@link Timed} class will be replaced by a record in the next major update. This method will become
|
||||||
|
* {@code Timed#interval()}
|
||||||
|
*/
|
||||||
|
@Deprecated(forRemoval = true, since = "TODO")
|
||||||
public int getInterval() {
|
public int getInterval() {
|
||||||
return interval;
|
return interval;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated {@link Timed} class will be replaced by a record in the next major update. This method will become
|
||||||
|
* {@code Timed#value()}
|
||||||
|
*/
|
||||||
|
@Deprecated(forRemoval = true, since = "TODO")
|
||||||
public T getValue() {
|
public T getValue() {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@@ -43,10 +43,20 @@ public class SettingsNodesWrapper {
|
|||||||
return this.settingsNodes.length == 0 ? this.afterwards : new SettingsNodeStep(this.settingsNodes[0], 0, this);
|
return this.settingsNodes.length == 0 ? this.afterwards : new SettingsNodeStep(this.settingsNodes[0], 0, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated {@link SettingsNodesWrapper} class will be replaced by a record in the next major update. This method will become
|
||||||
|
* {@code SettingsNodesWrapper#settingsNodes()}
|
||||||
|
*/
|
||||||
|
@Deprecated(forRemoval = true, since = "TODO")
|
||||||
public ConfigurationNode[] getSettingsNodes() {
|
public ConfigurationNode[] getSettingsNodes() {
|
||||||
return this.settingsNodes;
|
return this.settingsNodes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated {@link SettingsNodesWrapper} class will be replaced by a record in the next major update. This method will become
|
||||||
|
* {@code SettingsNodesWrapper#afterwards()}
|
||||||
|
*/
|
||||||
|
@Deprecated(forRemoval = true, since = "TODO")
|
||||||
public SetupStep getAfterwards() {
|
public SetupStep getAfterwards() {
|
||||||
return this.afterwards;
|
return this.afterwards;
|
||||||
}
|
}
|
||||||
|
@@ -20,7 +20,18 @@ package com.plotsquared.core.util;
|
|||||||
|
|
||||||
public class FileBytes {
|
public class FileBytes {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated {@link FileBytes} class will be replaced by a record in the next major update. This variable will be
|
||||||
|
* accessible using {@code FileBytes#path()}
|
||||||
|
*/
|
||||||
|
@Deprecated(forRemoval = true, since = "TODO")
|
||||||
public final String path;
|
public final String path;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated {@link FileBytes} class will be replaced by a record in the next major update. This variable will be
|
||||||
|
* accessible using {@code FileBytes#data()}
|
||||||
|
*/
|
||||||
|
@Deprecated(forRemoval = true, since = "TODO")
|
||||||
public final byte[] data;
|
public final byte[] data;
|
||||||
|
|
||||||
public FileBytes(String path, byte[] data) {
|
public FileBytes(String path, byte[] data) {
|
||||||
|
@@ -310,6 +310,11 @@ public final class PlaceholderRegistry {
|
|||||||
this.placeholder = placeholder;
|
this.placeholder = placeholder;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated {@link PlaceholderAddedEvent} class will be replaced by a record in the next major update. This method will become
|
||||||
|
* {@code PlaceholderAddedEvent#placeholder()}
|
||||||
|
*/
|
||||||
|
@Deprecated(forRemoval = true, since = "TODO")
|
||||||
public Placeholder getPlaceholder() {
|
public Placeholder getPlaceholder() {
|
||||||
return this.placeholder;
|
return this.placeholder;
|
||||||
}
|
}
|
||||||
|
@@ -36,10 +36,20 @@ public class UUIDMapping {
|
|||||||
this.username = username;
|
this.username = username;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated {@link UUIDMapping} class will be replaced by a record in the next major update. This method will become
|
||||||
|
* {@code UUIDMapping#username()}
|
||||||
|
*/
|
||||||
|
@Deprecated(forRemoval = true, since = "TODO")
|
||||||
public @NonNull String getUsername() {
|
public @NonNull String getUsername() {
|
||||||
return this.username;
|
return this.username;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated {@link UUIDMapping} class will be replaced by a record in the next major update. This method will become
|
||||||
|
* {@code UUIDMapping#uuid()}
|
||||||
|
*/
|
||||||
|
@Deprecated(forRemoval = true, since = "TODO")
|
||||||
public @NonNull UUID getUuid() {
|
public @NonNull UUID getUuid() {
|
||||||
return this.uuid;
|
return this.uuid;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user