diff --git a/paper-api/src/main/java/org/bukkit/Achievement.java b/paper-api/src/main/java/org/bukkit/Achievement.java index 98dbcd17a5..dcc695e349 100644 --- a/paper-api/src/main/java/org/bukkit/Achievement.java +++ b/paper-api/src/main/java/org/bukkit/Achievement.java @@ -53,7 +53,9 @@ public enum Achievement { * Note that this is offset using {@link #STATISTIC_OFFSET} * * @return ID of this achievement + * @deprecated Magic value */ + @Deprecated public int getId() { return id; } @@ -65,7 +67,9 @@ public enum Achievement { * * @param id ID of the achievement to return * @return Achievement with the given ID + * @deprecated Magic value */ + @Deprecated public static Achievement getById(int id) { return BY_ID.get(id); } diff --git a/paper-api/src/main/java/org/bukkit/Art.java b/paper-api/src/main/java/org/bukkit/Art.java index 049e1a1840..ba66f163cd 100644 --- a/paper-api/src/main/java/org/bukkit/Art.java +++ b/paper-api/src/main/java/org/bukkit/Art.java @@ -69,7 +69,9 @@ public enum Art { * Get the ID of this painting. * * @return The ID of this painting + * @deprecated Magic value */ + @Deprecated public int getId() { return id; } @@ -79,7 +81,9 @@ public enum Art { * * @param id The ID * @return The painting + * @deprecated Magic value */ + @Deprecated public static Art getById(int id) { return BY_ID.get(id); } diff --git a/paper-api/src/main/java/org/bukkit/BlockChangeDelegate.java b/paper-api/src/main/java/org/bukkit/BlockChangeDelegate.java index 734106053b..8a4399357f 100644 --- a/paper-api/src/main/java/org/bukkit/BlockChangeDelegate.java +++ b/paper-api/src/main/java/org/bukkit/BlockChangeDelegate.java @@ -16,7 +16,9 @@ public interface BlockChangeDelegate { * @param z Z coordinate * @param typeId New block ID * @return true if the block was set successfully + * @deprecated Magic value */ + @Deprecated public boolean setRawTypeId(int x, int y, int z, int typeId); /** @@ -29,7 +31,9 @@ public interface BlockChangeDelegate { * @param typeId New block ID * @param data Block data * @return true if the block was set successfully + * @deprecated Magic value */ + @Deprecated public boolean setRawTypeIdAndData(int x, int y, int z, int typeId, int data); /** @@ -41,7 +45,9 @@ public interface BlockChangeDelegate { * @param z Z coordinate * @param typeId New block ID * @return true if the block was set successfully + * @deprecated Magic value */ + @Deprecated public boolean setTypeId(int x, int y, int z, int typeId); /** @@ -54,7 +60,9 @@ public interface BlockChangeDelegate { * @param typeId New block ID * @param data Block data * @return true if the block was set successfully + * @deprecated Magic value */ + @Deprecated public boolean setTypeIdAndData(int x, int y, int z, int typeId, int data); /** @@ -64,7 +72,9 @@ public interface BlockChangeDelegate { * @param y Y coordinate * @param z Z coordinate * @return The block ID + * @deprecated Magic value */ + @Deprecated public int getTypeId(int x, int y, int z); /** diff --git a/paper-api/src/main/java/org/bukkit/Bukkit.java b/paper-api/src/main/java/org/bukkit/Bukkit.java index f389fc0cce..7a9502a2b5 100644 --- a/paper-api/src/main/java/org/bukkit/Bukkit.java +++ b/paper-api/src/main/java/org/bukkit/Bukkit.java @@ -256,7 +256,9 @@ public final class Bukkit { /** * @see Server#getMap(short id) + * @deprecated Magic value */ + @Deprecated public static MapView getMap(short id) { return server.getMap(id); } diff --git a/paper-api/src/main/java/org/bukkit/ChunkSnapshot.java b/paper-api/src/main/java/org/bukkit/ChunkSnapshot.java index 45aa9f3ec9..289df00f74 100644 --- a/paper-api/src/main/java/org/bukkit/ChunkSnapshot.java +++ b/paper-api/src/main/java/org/bukkit/ChunkSnapshot.java @@ -36,7 +36,9 @@ public interface ChunkSnapshot { * @param y 0-127 * @param z 0-15 * @return 0-255 + * @deprecated Magic value */ + @Deprecated int getBlockTypeId(int x, int y, int z); /** @@ -46,7 +48,9 @@ public interface ChunkSnapshot { * @param y 0-127 * @param z 0-15 * @return 0-15 + * @deprecated Magic value */ + @Deprecated int getBlockData(int x, int y, int z); /** diff --git a/paper-api/src/main/java/org/bukkit/CoalType.java b/paper-api/src/main/java/org/bukkit/CoalType.java index 70404c11c4..9eb0231cd9 100644 --- a/paper-api/src/main/java/org/bukkit/CoalType.java +++ b/paper-api/src/main/java/org/bukkit/CoalType.java @@ -22,7 +22,9 @@ public enum CoalType { * Gets the associated data value representing this type of coal * * @return A byte containing the data value of this coal type + * @deprecated Magic value */ + @Deprecated public byte getData() { return data; } @@ -34,7 +36,9 @@ public enum CoalType { * Data value to fetch * @return The {@link CoalType} representing the given value, or null if * it doesn't exist + * @deprecated Magic value */ + @Deprecated public static CoalType getByData(final byte data) { return BY_DATA.get(data); } diff --git a/paper-api/src/main/java/org/bukkit/CropState.java b/paper-api/src/main/java/org/bukkit/CropState.java index 96ba24d882..8f2e62b845 100644 --- a/paper-api/src/main/java/org/bukkit/CropState.java +++ b/paper-api/src/main/java/org/bukkit/CropState.java @@ -53,7 +53,9 @@ public enum CropState { * Gets the associated data value representing this growth state * * @return A byte containing the data value of this growth state + * @deprecated Magic value */ + @Deprecated public byte getData() { return data; } @@ -65,7 +67,9 @@ public enum CropState { * Data value to fetch * @return The {@link CropState} representing the given value, or null if * it doesn't exist + * @deprecated Magic value */ + @Deprecated public static CropState getByData(final byte data) { return BY_DATA.get(data); } diff --git a/paper-api/src/main/java/org/bukkit/Difficulty.java b/paper-api/src/main/java/org/bukkit/Difficulty.java index cc885e08bb..3463f981b3 100644 --- a/paper-api/src/main/java/org/bukkit/Difficulty.java +++ b/paper-api/src/main/java/org/bukkit/Difficulty.java @@ -39,7 +39,9 @@ public enum Difficulty { * Gets the difficulty value associated with this Difficulty. * * @return An integer value of this difficulty + * @deprecated Magic value */ + @Deprecated public int getValue() { return value; } @@ -49,7 +51,9 @@ public enum Difficulty { * * @param value Value to check * @return Associative {@link Difficulty} with the given value, or null if it doesn't exist + * @deprecated Magic value */ + @Deprecated public static Difficulty getByValue(final int value) { return BY_ID.get(value); } diff --git a/paper-api/src/main/java/org/bukkit/DyeColor.java b/paper-api/src/main/java/org/bukkit/DyeColor.java index 58f517b8e1..d968a65de0 100644 --- a/paper-api/src/main/java/org/bukkit/DyeColor.java +++ b/paper-api/src/main/java/org/bukkit/DyeColor.java @@ -108,7 +108,9 @@ public enum DyeColor { * * @return A byte containing the wool data value of this color * @see #getDyeData() + * @deprecated Magic value */ + @Deprecated public byte getWoolData() { return woolData; } @@ -118,7 +120,9 @@ public enum DyeColor { * * @return A byte containing the dye data value of this color * @see #getWoolData() + * @deprecated Magic value */ + @Deprecated public byte getDyeData() { return dyeData; } @@ -161,7 +165,9 @@ public enum DyeColor { * @param data Wool data value to fetch * @return The {@link DyeColor} representing the given value, or null if it doesn't exist * @see #getByDyeData(byte) + * @deprecated Magic value */ + @Deprecated public static DyeColor getByWoolData(final byte data) { int i = 0xff & data; if (i >= BY_WOOL_DATA.length) { @@ -176,7 +182,9 @@ public enum DyeColor { * @param data Dye data value to fetch * @return The {@link DyeColor} representing the given value, or null if it doesn't exist * @see #getByWoolData(byte) + * @deprecated Magic value */ + @Deprecated public static DyeColor getByDyeData(final byte data) { int i = 0xff & data; if (i >= BY_DYE_DATA.length) { diff --git a/paper-api/src/main/java/org/bukkit/Effect.java b/paper-api/src/main/java/org/bukkit/Effect.java index 175750fa2c..708bee922f 100644 --- a/paper-api/src/main/java/org/bukkit/Effect.java +++ b/paper-api/src/main/java/org/bukkit/Effect.java @@ -99,7 +99,9 @@ public enum Effect { * Gets the ID for this effect. * * @return ID of this effect + * @deprecated Magic value */ + @Deprecated public int getId() { return this.id; } @@ -123,7 +125,9 @@ public enum Effect { * * @param id ID of the Effect to return * @return Effect with the given ID + * @deprecated Magic value */ + @Deprecated public static Effect getById(int id) { return BY_ID.get(id); } diff --git a/paper-api/src/main/java/org/bukkit/EntityEffect.java b/paper-api/src/main/java/org/bukkit/EntityEffect.java index 82d96f670d..ad2c7423c8 100644 --- a/paper-api/src/main/java/org/bukkit/EntityEffect.java +++ b/paper-api/src/main/java/org/bukkit/EntityEffect.java @@ -58,7 +58,9 @@ public enum EntityEffect { * Gets the data value of this EntityEffect * * @return The data value + * @deprecated Magic value */ + @Deprecated public byte getData() { return data; } @@ -68,7 +70,9 @@ public enum EntityEffect { * * @param data Data value to fetch * @return The {@link EntityEffect} representing the given value, or null if it doesn't exist + * @deprecated Magic value */ + @Deprecated public static EntityEffect getByData(final byte data) { return BY_DATA.get(data); } diff --git a/paper-api/src/main/java/org/bukkit/GameMode.java b/paper-api/src/main/java/org/bukkit/GameMode.java index 46ba7f2d0a..5b83d88fa2 100644 --- a/paper-api/src/main/java/org/bukkit/GameMode.java +++ b/paper-api/src/main/java/org/bukkit/GameMode.java @@ -36,7 +36,9 @@ public enum GameMode { * Gets the mode value associated with this GameMode * * @return An integer value of this gamemode + * @deprecated Magic value */ + @Deprecated public int getValue() { return value; } @@ -46,7 +48,9 @@ public enum GameMode { * * @param value Value to check * @return Associative {@link GameMode} with the given value, or null if it doesn't exist + * @deprecated Magic value */ + @Deprecated public static GameMode getByValue(final int value) { return BY_ID.get(value); } diff --git a/paper-api/src/main/java/org/bukkit/GrassSpecies.java b/paper-api/src/main/java/org/bukkit/GrassSpecies.java index 3f2cce4204..c2b0aeb331 100644 --- a/paper-api/src/main/java/org/bukkit/GrassSpecies.java +++ b/paper-api/src/main/java/org/bukkit/GrassSpecies.java @@ -33,7 +33,9 @@ public enum GrassSpecies { * Gets the associated data value representing this species * * @return A byte containing the data value of this grass species + * @deprecated Magic value */ + @Deprecated public byte getData() { return data; } @@ -45,7 +47,9 @@ public enum GrassSpecies { * Data value to fetch * @return The {@link GrassSpecies} representing the given value, or null if * it doesn't exist + * @deprecated Magic value */ + @Deprecated public static GrassSpecies getByData(final byte data) { return BY_DATA.get(data); } diff --git a/paper-api/src/main/java/org/bukkit/Instrument.java b/paper-api/src/main/java/org/bukkit/Instrument.java index a6806ead40..dc7b4a0e1c 100644 --- a/paper-api/src/main/java/org/bukkit/Instrument.java +++ b/paper-api/src/main/java/org/bukkit/Instrument.java @@ -36,7 +36,9 @@ public enum Instrument { /** * @return The type ID of this instrument. + * @deprecated Magic value */ + @Deprecated public byte getType() { return this.type; } @@ -46,7 +48,9 @@ public enum Instrument { * * @param type The type ID * @return The instrument + * @deprecated Magic value */ + @Deprecated public static Instrument getByType(final byte type) { return BY_DATA.get(type); } diff --git a/paper-api/src/main/java/org/bukkit/Material.java b/paper-api/src/main/java/org/bukkit/Material.java index 86d1baa2c8..0b8765dc2d 100644 --- a/paper-api/src/main/java/org/bukkit/Material.java +++ b/paper-api/src/main/java/org/bukkit/Material.java @@ -16,7 +16,6 @@ import org.bukkit.material.Command; import org.bukkit.material.Crops; import org.bukkit.material.DetectorRail; import org.bukkit.material.Diode; -import org.bukkit.material.DirectionalContainer; import org.bukkit.material.Dispenser; import org.bukkit.material.Door; import org.bukkit.material.Dye; @@ -451,7 +450,9 @@ public enum Material { * Gets the item ID or block ID of this Material * * @return ID of this material + * @deprecated Magic value */ + @Deprecated public int getId() { return id; } @@ -489,7 +490,9 @@ public enum Material { * * @param raw Initial data to construct the MaterialData with * @return New MaterialData with the given data + * @deprecated Magic value */ + @Deprecated public MaterialData getNewData(final byte raw) { try { return ctor.newInstance(id, raw); @@ -556,7 +559,9 @@ public enum Material { * * @param id ID of the material to get * @return Material if found, or null + * @deprecated Magic value */ + @Deprecated public static Material getMaterial(final int id) { if (byId.length > id && id >= 0) { return byId[id]; @@ -580,7 +585,9 @@ public enum Material { /** * Attempts to match the Material with the given name. * This is a match lookup; names will be converted to uppercase, then stripped - * of special characters in an attempt to format it like the enum + * of special characters in an attempt to format it like the enum. + *
+ * Using this for match by ID is deprecated. * * @param name Name of the material to get * @return Material if found, or null diff --git a/paper-api/src/main/java/org/bukkit/Note.java b/paper-api/src/main/java/org/bukkit/Note.java index e1102e492f..3a41ea4931 100644 --- a/paper-api/src/main/java/org/bukkit/Note.java +++ b/paper-api/src/main/java/org/bukkit/Note.java @@ -39,7 +39,9 @@ public class Note { * Returns the not sharped id of this tone. * * @return the not sharped id of this tone. + * @deprecated Magic value */ + @Deprecated public byte getId() { return getId(false); } @@ -51,7 +53,9 @@ public class Note { * * @param sharped Set to true to return the sharped id. * @return the id of this tone. + * @deprecated Magic value */ + @Deprecated public byte getId(boolean sharped) { byte id = (byte) (sharped && sharpable ? this.id + 1 : this.id); @@ -73,7 +77,9 @@ public class Note { * @param id the id of the tone. * @return if the tone id is the sharped id of the tone. * @throws IllegalArgumentException if neither the tone nor the semitone have the id. + * @deprecated Magic value */ + @Deprecated public boolean isSharped(byte id) { if (id == getId(false)) { return false; @@ -90,7 +96,9 @@ public class Note { * * @param id the id of the tone. * @return the tone to id. + * @deprecated Magic value */ + @Deprecated public static Tone getById(byte id) { return BY_DATA.get(id); } @@ -197,7 +205,9 @@ public class Note { * Returns the internal id of this note. * * @return the internal id of this note. + * @deprecated Magic value */ + @Deprecated public byte getId() { return note; } diff --git a/paper-api/src/main/java/org/bukkit/SandstoneType.java b/paper-api/src/main/java/org/bukkit/SandstoneType.java index 79f8ecf588..cba1c2a849 100644 --- a/paper-api/src/main/java/org/bukkit/SandstoneType.java +++ b/paper-api/src/main/java/org/bukkit/SandstoneType.java @@ -23,7 +23,9 @@ public enum SandstoneType { * Gets the associated data value representing this type of sandstone * * @return A byte containing the data value of this sandstone type + * @deprecated Magic value */ + @Deprecated public byte getData() { return data; } @@ -35,7 +37,9 @@ public enum SandstoneType { * Data value to fetch * @return The {@link SandstoneType} representing the given value, or null if * it doesn't exist + * @deprecated Magic value */ + @Deprecated public static SandstoneType getByData(final byte data) { return BY_DATA.get(data); } diff --git a/paper-api/src/main/java/org/bukkit/Server.java b/paper-api/src/main/java/org/bukkit/Server.java index 7e8b80edf4..aa45f162a2 100644 --- a/paper-api/src/main/java/org/bukkit/Server.java +++ b/paper-api/src/main/java/org/bukkit/Server.java @@ -36,6 +36,7 @@ import org.bukkit.inventory.meta.ItemMeta; * Represents a server implementation */ public interface Server extends PluginMessageRecipient { + /** * Used for all administrative messages, such as an operator using a command. *
@@ -356,7 +357,9 @@ public interface Server extends PluginMessageRecipient {
*
* @param id ID of the map to get.
* @return The MapView if it exists, or null otherwise.
+ * @deprecated Magic value
*/
+ @Deprecated
public MapView getMap(short id);
/**
diff --git a/paper-api/src/main/java/org/bukkit/Statistic.java b/paper-api/src/main/java/org/bukkit/Statistic.java
index c3665013a7..884fcb6931 100644
--- a/paper-api/src/main/java/org/bukkit/Statistic.java
+++ b/paper-api/src/main/java/org/bukkit/Statistic.java
@@ -41,7 +41,9 @@ public enum Statistic {
* Gets the ID for this statistic.
*
* @return ID of this statistic
+ * @deprecated Magic value
*/
+ @Deprecated
public int getId() {
return id;
}
@@ -71,7 +73,9 @@ public enum Statistic {
*
* @param id ID of the statistic to return
* @return statistic with the given ID
+ * @deprecated Magic value
*/
+ @Deprecated
public static Statistic getById(int id) {
return BY_ID.get(id);
}
diff --git a/paper-api/src/main/java/org/bukkit/TreeSpecies.java b/paper-api/src/main/java/org/bukkit/TreeSpecies.java
index d40409ffd2..388668bd05 100644
--- a/paper-api/src/main/java/org/bukkit/TreeSpecies.java
+++ b/paper-api/src/main/java/org/bukkit/TreeSpecies.java
@@ -37,7 +37,9 @@ public enum TreeSpecies {
* Gets the associated data value representing this species
*
* @return A byte containing the data value of this tree species
+ * @deprecated Magic value
*/
+ @Deprecated
public byte getData() {
return data;
}
@@ -48,7 +50,9 @@ public enum TreeSpecies {
* @param data Data value to fetch
* @return The {@link TreeSpecies} representing the given value, or null if
* it doesn't exist
+ * @deprecated Magic value
*/
+ @Deprecated
public static TreeSpecies getByData(final byte data) {
return BY_DATA.get(data);
}
diff --git a/paper-api/src/main/java/org/bukkit/Warning.java b/paper-api/src/main/java/org/bukkit/Warning.java
index b1967f6bbc..e4187a9a89 100644
--- a/paper-api/src/main/java/org/bukkit/Warning.java
+++ b/paper-api/src/main/java/org/bukkit/Warning.java
@@ -15,6 +15,7 @@ import com.google.common.collect.ImmutableMap;
@Target({ElementType.CONSTRUCTOR, ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface Warning {
+
/**
* This represents the states that server verbose for warnings may be.
*/
diff --git a/paper-api/src/main/java/org/bukkit/World.java b/paper-api/src/main/java/org/bukkit/World.java
index c86cfbc408..62fadda77e 100644
--- a/paper-api/src/main/java/org/bukkit/World.java
+++ b/paper-api/src/main/java/org/bukkit/World.java
@@ -50,7 +50,9 @@ public interface World extends PluginMessageRecipient, Metadatable {
* @param z Z-coordinate of the block
* @return Type ID of the block at the given coordinates
* @see #getBlockAt(int, int, int) Returns a live Block object at the given location
+ * @deprecated Magic value
*/
+ @Deprecated
public int getBlockTypeIdAt(int x, int y, int z);
/**
@@ -59,7 +61,9 @@ public interface World extends PluginMessageRecipient, Metadatable {
* @param location Location of the block
* @return Type ID of the block at the given location
* @see #getBlockAt(org.bukkit.Location) Returns a live Block object at the given location
+ * @deprecated Magic value
*/
+ @Deprecated
public int getBlockTypeIdAt(Location location);
/**
@@ -1094,7 +1098,9 @@ public interface World extends PluginMessageRecipient, Metadatable {
* Gets the dimension ID of this environment
*
* @return dimension ID
+ * @deprecated Magic value
*/
+ @Deprecated
public int getId() {
return id;
}
@@ -1104,7 +1110,9 @@ public interface World extends PluginMessageRecipient, Metadatable {
*
* @param id The ID of the environment
* @return The environment
+ * @deprecated Magic value
*/
+ @Deprecated
public static Environment getEnvironment(int id) {
return lookup.get(id);
}
diff --git a/paper-api/src/main/java/org/bukkit/block/Block.java b/paper-api/src/main/java/org/bukkit/block/Block.java
index 96232a06fc..47a69d223e 100644
--- a/paper-api/src/main/java/org/bukkit/block/Block.java
+++ b/paper-api/src/main/java/org/bukkit/block/Block.java
@@ -21,7 +21,9 @@ public interface Block extends Metadatable {
* Gets the metadata for this block
*
* @return block specific metadata
+ * @deprecated Magic value
*/
+ @Deprecated
byte getData();
/**
@@ -74,7 +76,9 @@ public interface Block extends Metadatable {
* Gets the type-id of this block
*
* @return block type-id
+ * @deprecated Magic value
*/
+ @Deprecated
int getTypeId();
/**
@@ -156,7 +160,9 @@ public interface Block extends Metadatable {
* Sets the metadata for this block
*
* @param data New block specific metadata
+ * @deprecated Magic value
*/
+ @Deprecated
void setData(byte data);
/**
@@ -164,7 +170,9 @@ public interface Block extends Metadatable {
*
* @param data New block specific metadata
* @param applyPhysics False to cancel physics from the changed block.
+ * @deprecated Magic value
*/
+ @Deprecated
void setData(byte data, boolean applyPhysics);
/**
@@ -179,7 +187,9 @@ public interface Block extends Metadatable {
*
* @param type Type-Id to change this block to
* @return whether the block was changed
+ * @deprecated Magic value
*/
+ @Deprecated
boolean setTypeId(int type);
/**
@@ -188,7 +198,9 @@ public interface Block extends Metadatable {
* @param type Type-Id to change this block to
* @param applyPhysics False to cancel physics on the changed block.
* @return whether the block was changed
+ * @deprecated Magic value
*/
+ @Deprecated
boolean setTypeId(int type, boolean applyPhysics);
/**
@@ -198,7 +210,9 @@ public interface Block extends Metadatable {
* @param data The data value to change this block to
* @param applyPhysics False to cancel physics on the changed block
* @return whether the block was changed
+ * @deprecated Magic value
*/
+ @Deprecated
boolean setTypeIdAndData(int type, byte data, boolean applyPhysics);
/**
diff --git a/paper-api/src/main/java/org/bukkit/block/BlockState.java b/paper-api/src/main/java/org/bukkit/block/BlockState.java
index 7c2ccf0488..784454a444 100644
--- a/paper-api/src/main/java/org/bukkit/block/BlockState.java
+++ b/paper-api/src/main/java/org/bukkit/block/BlockState.java
@@ -42,7 +42,9 @@ public interface BlockState extends Metadatable {
* Gets the type-id of this block
*
* @return block type-id
+ * @deprecated Magic value
*/
+ @Deprecated
int getTypeId();
/**
@@ -121,7 +123,9 @@ public interface BlockState extends Metadatable {
*
* @param type Type-Id to change this block to
* @return Whether it worked?
+ * @deprecated Magic value
*/
+ @Deprecated
boolean setTypeId(int type);
/**
@@ -172,11 +176,15 @@ public interface BlockState extends Metadatable {
/**
* @return The data as a raw byte.
+ * @deprecated Magic value
*/
+ @Deprecated
public byte getRawData();
/**
* @param data The new data value for the block.
+ * @deprecated Magic value
*/
+ @Deprecated
public void setRawData(byte data);
}
diff --git a/paper-api/src/main/java/org/bukkit/block/Chest.java b/paper-api/src/main/java/org/bukkit/block/Chest.java
index 2d940e56e2..8f6e961b2c 100644
--- a/paper-api/src/main/java/org/bukkit/block/Chest.java
+++ b/paper-api/src/main/java/org/bukkit/block/Chest.java
@@ -6,6 +6,7 @@ import org.bukkit.inventory.Inventory;
* Represents a chest.
*/
public interface Chest extends BlockState, ContainerBlock {
+
/**
* Returns the chest's inventory. If this is a double chest, it returns just
* the portion of the inventory linked to this half of the chest.
diff --git a/paper-api/src/main/java/org/bukkit/block/NoteBlock.java b/paper-api/src/main/java/org/bukkit/block/NoteBlock.java
index 9fb3845055..8380068f3c 100644
--- a/paper-api/src/main/java/org/bukkit/block/NoteBlock.java
+++ b/paper-api/src/main/java/org/bukkit/block/NoteBlock.java
@@ -19,7 +19,9 @@ public interface NoteBlock extends BlockState {
* Gets the note.
*
* @return The note ID.
+ * @deprecated Magic value
*/
+ @Deprecated
public byte getRawNote();
/**
@@ -33,7 +35,9 @@ public interface NoteBlock extends BlockState {
* Set the note.
*
* @param note The note ID.
+ * @deprecated Magic value
*/
+ @Deprecated
public void setRawNote(byte note);
/**
@@ -51,7 +55,9 @@ public interface NoteBlock extends BlockState {
* @param instrument Instrument ID
* @param note Note ID
* @return true if successful, otherwise false
+ * @deprecated Magic value
*/
+ @Deprecated
public boolean play(byte instrument, byte note);
/**
diff --git a/paper-api/src/main/java/org/bukkit/block/PistonMoveReaction.java b/paper-api/src/main/java/org/bukkit/block/PistonMoveReaction.java
index c62294aa01..02d9649e54 100644
--- a/paper-api/src/main/java/org/bukkit/block/PistonMoveReaction.java
+++ b/paper-api/src/main/java/org/bukkit/block/PistonMoveReaction.java
@@ -31,7 +31,9 @@ public enum PistonMoveReaction {
/**
* @return The ID of the move reaction
+ * @deprecated Magic value
*/
+ @Deprecated
public int getId() {
return this.id;
}
@@ -39,7 +41,9 @@ public enum PistonMoveReaction {
/**
* @param id An ID
* @return The move reaction with that ID
+ * @deprecated Magic value
*/
+ @Deprecated
public static PistonMoveReaction getById(int id) {
return byId.get(id);
}
diff --git a/paper-api/src/main/java/org/bukkit/enchantments/Enchantment.java b/paper-api/src/main/java/org/bukkit/enchantments/Enchantment.java
index 0217d49a2e..b6cfaea0bf 100644
--- a/paper-api/src/main/java/org/bukkit/enchantments/Enchantment.java
+++ b/paper-api/src/main/java/org/bukkit/enchantments/Enchantment.java
@@ -133,7 +133,9 @@ public abstract class Enchantment {
* Gets the unique ID of this enchantment
*
* @return Unique ID
+ * @deprecated Magic value
*/
+ @Deprecated
public int getId() {
return id;
}
@@ -248,7 +250,9 @@ public abstract class Enchantment {
*
* @param id ID to fetch
* @return Resulting Enchantment, or null if not found
+ * @deprecated Magic value
*/
+ @Deprecated
public static Enchantment getById(int id) {
return byId.get(id);
}
diff --git a/paper-api/src/main/java/org/bukkit/entity/CreatureType.java b/paper-api/src/main/java/org/bukkit/entity/CreatureType.java
index 86a9520914..fd23093351 100644
--- a/paper-api/src/main/java/org/bukkit/entity/CreatureType.java
+++ b/paper-api/src/main/java/org/bukkit/entity/CreatureType.java
@@ -66,6 +66,11 @@ public enum CreatureType {
return clazz;
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public short getTypeId() {
return typeId;
}
@@ -74,6 +79,11 @@ public enum CreatureType {
return NAME_MAP.get(name);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public static CreatureType fromId(int id) {
if (id > Short.MAX_VALUE) {
return null;
diff --git a/paper-api/src/main/java/org/bukkit/entity/EntityType.java b/paper-api/src/main/java/org/bukkit/entity/EntityType.java
index 6e049e9433..49cc01ba6e 100644
--- a/paper-api/src/main/java/org/bukkit/entity/EntityType.java
+++ b/paper-api/src/main/java/org/bukkit/entity/EntityType.java
@@ -197,6 +197,11 @@ public enum EntityType {
}
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public String getName() {
return name;
}
@@ -205,10 +210,20 @@ public enum EntityType {
return clazz;
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public short getTypeId() {
return typeId;
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public static EntityType fromName(String name) {
if (name == null) {
return null;
@@ -216,6 +231,11 @@ public enum EntityType {
return NAME_MAP.get(name.toLowerCase());
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public static EntityType fromId(int id) {
if (id > Short.MAX_VALUE) {
return null;
diff --git a/paper-api/src/main/java/org/bukkit/entity/FallingBlock.java b/paper-api/src/main/java/org/bukkit/entity/FallingBlock.java
index 41fca5661c..1edd6e0659 100644
--- a/paper-api/src/main/java/org/bukkit/entity/FallingBlock.java
+++ b/paper-api/src/main/java/org/bukkit/entity/FallingBlock.java
@@ -6,6 +6,7 @@ import org.bukkit.Material;
* Represents a falling block
*/
public interface FallingBlock extends Entity {
+
/**
* Get the Material of the falling block
*
@@ -17,14 +18,18 @@ public interface FallingBlock extends Entity {
* Get the ID of the falling block
*
* @return ID type of the block
+ * @deprecated Magic value
*/
+ @Deprecated
int getBlockId();
/**
* Get the data for the falling block
*
* @return data of the block
+ * @deprecated Magic value
*/
+ @Deprecated
byte getBlockData();
/**
diff --git a/paper-api/src/main/java/org/bukkit/entity/LivingEntity.java b/paper-api/src/main/java/org/bukkit/entity/LivingEntity.java
index cb1faf3b4d..4519dc4d70 100644
--- a/paper-api/src/main/java/org/bukkit/entity/LivingEntity.java
+++ b/paper-api/src/main/java/org/bukkit/entity/LivingEntity.java
@@ -51,7 +51,9 @@ public interface LivingEntity extends Entity, Damageable {
* limited by server by at least 100 blocks, no less)
* @return list containing all blocks along the living entity's line
* of sight
+ * @deprecated Magic value
*/
+ @Deprecated
public List
+ * These fields are hee base color ranges. Each entry corresponds to four
+ * colors of varying shades with values entry to entry + 3.
*/
public final class MapPalette {
@@ -48,22 +51,74 @@ public final class MapPalette {
// Interface
/**
- * The base color ranges. Each entry corresponds to four colors of varying
- * shades with values entry to entry + 3.
+ * @deprecated Magic value
*/
+ @Deprecated
public static final byte TRANSPARENT = 0;
+ /**
+ * @deprecated Magic value
+ */
+ @Deprecated
public static final byte LIGHT_GREEN = 4;
+ /**
+ * @deprecated Magic value
+ */
+ @Deprecated
public static final byte LIGHT_BROWN = 8;
+ /**
+ * @deprecated Magic value
+ */
+ @Deprecated
public static final byte GRAY_1 = 12;
+ /**
+ * @deprecated Magic value
+ */
+ @Deprecated
public static final byte RED = 16;
+ /**
+ * @deprecated Magic value
+ */
+ @Deprecated
public static final byte PALE_BLUE = 20;
+ /**
+ * @deprecated Magic value
+ */
+ @Deprecated
public static final byte GRAY_2 = 24;
+ /**
+ * @deprecated Magic value
+ */
+ @Deprecated
public static final byte DARK_GREEN = 28;
+ /**
+ * @deprecated Magic value
+ */
+ @Deprecated
public static final byte WHITE = 32;
+ /**
+ * @deprecated Magic value
+ */
+ @Deprecated
public static final byte LIGHT_GRAY = 36;
+ /**
+ * @deprecated Magic value
+ */
+ @Deprecated
public static final byte BROWN = 40;
+ /**
+ * @deprecated Magic value
+ */
+ @Deprecated
public static final byte DARK_GRAY = 44;
+ /**
+ * @deprecated Magic value
+ */
+ @Deprecated
public static final byte BLUE = 48;
+ /**
+ * @deprecated Magic value
+ */
+ @Deprecated
public static final byte DARK_BROWN = 52;
/**
@@ -85,7 +140,9 @@ public final class MapPalette {
*
* @param image The image to convert.
* @return A byte[] containing the pixels of the image.
+ * @deprecated Magic value
*/
+ @Deprecated
public static byte[] imageToBytes(Image image) {
BufferedImage temp = new BufferedImage(image.getWidth(null), image.getHeight(null), BufferedImage.TYPE_INT_ARGB);
Graphics2D graphics = temp.createGraphics();
@@ -109,7 +166,9 @@ public final class MapPalette {
* @param b The blue component of the color.
* @param g The green component of the color.
* @return The index in the palette.
+ * @deprecated Magic value
*/
+ @Deprecated
public static byte matchColor(int r, int g, int b) {
return matchColor(new Color(r, g, b));
}
@@ -119,7 +178,9 @@ public final class MapPalette {
*
* @param color The Color to match.
* @return The index in the palette.
+ * @deprecated Magic value
*/
+ @Deprecated
public static byte matchColor(Color color) {
if (color.getAlpha() < 128) return 0;
@@ -142,7 +203,9 @@ public final class MapPalette {
*
* @param index The index in the palette.
* @return The Color of the palette entry.
+ * @deprecated Magic value
*/
+ @Deprecated
public static Color getColor(byte index) {
if (index < 0 || index >= colors.length) {
throw new IndexOutOfBoundsException();
diff --git a/paper-api/src/main/java/org/bukkit/map/MapView.java b/paper-api/src/main/java/org/bukkit/map/MapView.java
index 821afd69c1..ff370f4a86 100644
--- a/paper-api/src/main/java/org/bukkit/map/MapView.java
+++ b/paper-api/src/main/java/org/bukkit/map/MapView.java
@@ -29,7 +29,9 @@ public interface MapView {
*
* @param value The raw scale
* @return The enum scale, or null for an invalid input
+ * @deprecated Magic value
*/
+ @Deprecated
public static Scale valueOf(byte value) {
switch (value) {
case 0: return CLOSEST;
@@ -45,7 +47,9 @@ public interface MapView {
* Get the raw value of this scale level.
*
* @return The scale value
+ * @deprecated Magic value
*/
+ @Deprecated
public byte getValue() {
return value;
}
@@ -56,7 +60,9 @@ public interface MapView {
* in an inventory.
*
* @return The ID of the map.
+ * @deprecated Magic value
*/
+ @Deprecated
public short getId();
/**
diff --git a/paper-api/src/main/java/org/bukkit/material/Bed.java b/paper-api/src/main/java/org/bukkit/material/Bed.java
index 77f1e5f307..a1c087a251 100644
--- a/paper-api/src/main/java/org/bukkit/material/Bed.java
+++ b/paper-api/src/main/java/org/bukkit/material/Bed.java
@@ -25,6 +25,11 @@ public class Bed extends MaterialData implements Directional {
setFacingDirection(direction);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Bed(final int type) {
super(type);
}
@@ -33,10 +38,20 @@ public class Bed extends MaterialData implements Directional {
super(type);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Bed(final int type, final byte data) {
super(type, data);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Bed(final Material type, final byte data) {
super(type, data);
}
diff --git a/paper-api/src/main/java/org/bukkit/material/Button.java b/paper-api/src/main/java/org/bukkit/material/Button.java
index 1b72042aaa..2eeeaa6b7e 100644
--- a/paper-api/src/main/java/org/bukkit/material/Button.java
+++ b/paper-api/src/main/java/org/bukkit/material/Button.java
@@ -11,6 +11,11 @@ public class Button extends SimpleAttachableMaterialData implements Redstone {
super(Material.STONE_BUTTON);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Button(final int type) {
super(type);
}
@@ -19,10 +24,20 @@ public class Button extends SimpleAttachableMaterialData implements Redstone {
super(type);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Button(final int type, final byte data) {
super(type, data);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Button(final Material type, final byte data) {
super(type, data);
}
diff --git a/paper-api/src/main/java/org/bukkit/material/Cake.java b/paper-api/src/main/java/org/bukkit/material/Cake.java
index a4a13d7985..360ae58529 100644
--- a/paper-api/src/main/java/org/bukkit/material/Cake.java
+++ b/paper-api/src/main/java/org/bukkit/material/Cake.java
@@ -7,6 +7,11 @@ public class Cake extends MaterialData {
super(Material.CAKE_BLOCK);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Cake(int type) {
super(type);
}
@@ -15,10 +20,20 @@ public class Cake extends MaterialData {
super(type);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Cake(int type, byte data) {
super(type, data);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Cake(Material type, byte data) {
super(type, data);
}
diff --git a/paper-api/src/main/java/org/bukkit/material/Cauldron.java b/paper-api/src/main/java/org/bukkit/material/Cauldron.java
index 3a923cbabc..b464bbdb9d 100644
--- a/paper-api/src/main/java/org/bukkit/material/Cauldron.java
+++ b/paper-api/src/main/java/org/bukkit/material/Cauldron.java
@@ -13,10 +13,20 @@ public class Cauldron extends MaterialData {
super(Material.CAULDRON);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Cauldron(int type, byte data){
super(type, data);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Cauldron(byte data) {
super(Material.CAULDRON, data);
}
diff --git a/paper-api/src/main/java/org/bukkit/material/Chest.java b/paper-api/src/main/java/org/bukkit/material/Chest.java
index 9fc316ae18..b9f6988083 100644
--- a/paper-api/src/main/java/org/bukkit/material/Chest.java
+++ b/paper-api/src/main/java/org/bukkit/material/Chest.java
@@ -22,6 +22,11 @@ public class Chest extends DirectionalContainer {
setFacingDirection(direction);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Chest(final int type) {
super(type);
}
@@ -30,10 +35,20 @@ public class Chest extends DirectionalContainer {
super(type);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Chest(final int type, final byte data) {
super(type, data);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Chest(final Material type, final byte data) {
super(type, data);
}
diff --git a/paper-api/src/main/java/org/bukkit/material/Coal.java b/paper-api/src/main/java/org/bukkit/material/Coal.java
index a1876638c2..3a4f7c3875 100644
--- a/paper-api/src/main/java/org/bukkit/material/Coal.java
+++ b/paper-api/src/main/java/org/bukkit/material/Coal.java
@@ -16,6 +16,11 @@ public class Coal extends MaterialData {
setType(type);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Coal(final int type) {
super(type);
}
@@ -24,10 +29,20 @@ public class Coal extends MaterialData {
super(type);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Coal(final int type, final byte data) {
super(type, data);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Coal(final Material type, final byte data) {
super(type, data);
}
diff --git a/paper-api/src/main/java/org/bukkit/material/CocoaPlant.java b/paper-api/src/main/java/org/bukkit/material/CocoaPlant.java
index 6e946accc0..b8280b5b2c 100644
--- a/paper-api/src/main/java/org/bukkit/material/CocoaPlant.java
+++ b/paper-api/src/main/java/org/bukkit/material/CocoaPlant.java
@@ -18,10 +18,20 @@ public class CocoaPlant extends MaterialData implements Directional, Attachable
super(Material.COCOA);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public CocoaPlant(final int type) {
super(type);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public CocoaPlant(final int type, final byte data) {
super(type, data);
}
diff --git a/paper-api/src/main/java/org/bukkit/material/Command.java b/paper-api/src/main/java/org/bukkit/material/Command.java
index 1537ded4c3..174e1ff870 100644
--- a/paper-api/src/main/java/org/bukkit/material/Command.java
+++ b/paper-api/src/main/java/org/bukkit/material/Command.java
@@ -10,6 +10,11 @@ public class Command extends MaterialData implements Redstone {
super(Material.COMMAND);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Command(final int type) {
super(type);
}
@@ -18,10 +23,20 @@ public class Command extends MaterialData implements Redstone {
super(type);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Command(final int type, final byte data) {
super(type, data);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Command(final Material type, final byte data) {
super(type, data);
}
diff --git a/paper-api/src/main/java/org/bukkit/material/Crops.java b/paper-api/src/main/java/org/bukkit/material/Crops.java
index c874d5fb2f..2791998d22 100644
--- a/paper-api/src/main/java/org/bukkit/material/Crops.java
+++ b/paper-api/src/main/java/org/bukkit/material/Crops.java
@@ -16,6 +16,11 @@ public class Crops extends MaterialData {
setState(state);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Crops(final int type) {
super(type);
}
@@ -24,10 +29,20 @@ public class Crops extends MaterialData {
super(type);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Crops(final int type, final byte data) {
super(type, data);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Crops(final Material type, final byte data) {
super(type, data);
}
diff --git a/paper-api/src/main/java/org/bukkit/material/DetectorRail.java b/paper-api/src/main/java/org/bukkit/material/DetectorRail.java
index a75eb8ec3f..b1d3073c39 100644
--- a/paper-api/src/main/java/org/bukkit/material/DetectorRail.java
+++ b/paper-api/src/main/java/org/bukkit/material/DetectorRail.java
@@ -10,6 +10,11 @@ public class DetectorRail extends ExtendedRails implements PressureSensor {
super(Material.DETECTOR_RAIL);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public DetectorRail(final int type) {
super(type);
}
@@ -18,10 +23,20 @@ public class DetectorRail extends ExtendedRails implements PressureSensor {
super(type);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public DetectorRail(final int type, final byte data) {
super(type, data);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public DetectorRail(final Material type, final byte data) {
super(type, data);
}
diff --git a/paper-api/src/main/java/org/bukkit/material/Diode.java b/paper-api/src/main/java/org/bukkit/material/Diode.java
index 54853f1829..04210b7a7b 100644
--- a/paper-api/src/main/java/org/bukkit/material/Diode.java
+++ b/paper-api/src/main/java/org/bukkit/material/Diode.java
@@ -8,6 +8,11 @@ public class Diode extends MaterialData implements Directional {
super(Material.DIODE_BLOCK_ON);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Diode(int type) {
super(type);
}
@@ -16,10 +21,20 @@ public class Diode extends MaterialData implements Directional {
super(type);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Diode(int type, byte data) {
super(type, data);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Diode(Material type, byte data) {
super(type, data);
}
diff --git a/paper-api/src/main/java/org/bukkit/material/DirectionalContainer.java b/paper-api/src/main/java/org/bukkit/material/DirectionalContainer.java
index 790b6bd3b2..9b0a0475ad 100644
--- a/paper-api/src/main/java/org/bukkit/material/DirectionalContainer.java
+++ b/paper-api/src/main/java/org/bukkit/material/DirectionalContainer.java
@@ -7,6 +7,11 @@ import org.bukkit.block.BlockFace;
* Represents a furnace or a dispenser.
*/
public class DirectionalContainer extends MaterialData implements Directional {
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public DirectionalContainer(final int type) {
super(type);
}
@@ -15,10 +20,20 @@ public class DirectionalContainer extends MaterialData implements Directional {
super(type);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public DirectionalContainer(final int type, final byte data) {
super(type, data);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public DirectionalContainer(final Material type, final byte data) {
super(type, data);
}
diff --git a/paper-api/src/main/java/org/bukkit/material/Dispenser.java b/paper-api/src/main/java/org/bukkit/material/Dispenser.java
index 34228827c3..b62f8c91a5 100644
--- a/paper-api/src/main/java/org/bukkit/material/Dispenser.java
+++ b/paper-api/src/main/java/org/bukkit/material/Dispenser.java
@@ -17,6 +17,11 @@ public class Dispenser extends FurnaceAndDispenser {
setFacingDirection(direction);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Dispenser(final int type) {
super(type);
}
@@ -25,10 +30,20 @@ public class Dispenser extends FurnaceAndDispenser {
super(type);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Dispenser(final int type, final byte data) {
super(type, data);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Dispenser(final Material type, final byte data) {
super(type, data);
}
diff --git a/paper-api/src/main/java/org/bukkit/material/Door.java b/paper-api/src/main/java/org/bukkit/material/Door.java
index dcf2feacde..2bebf9bb64 100644
--- a/paper-api/src/main/java/org/bukkit/material/Door.java
+++ b/paper-api/src/main/java/org/bukkit/material/Door.java
@@ -14,6 +14,11 @@ public class Door extends MaterialData implements Directional, Openable {
super(Material.WOODEN_DOOR);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Door(final int type) {
super(type);
}
@@ -22,10 +27,20 @@ public class Door extends MaterialData implements Directional, Openable {
super(type);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Door(final int type, final byte data) {
super(type, data);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Door(final Material type, final byte data) {
super(type, data);
}
diff --git a/paper-api/src/main/java/org/bukkit/material/Dye.java b/paper-api/src/main/java/org/bukkit/material/Dye.java
index e7c07eae61..4412c1f593 100644
--- a/paper-api/src/main/java/org/bukkit/material/Dye.java
+++ b/paper-api/src/main/java/org/bukkit/material/Dye.java
@@ -11,6 +11,11 @@ public class Dye extends MaterialData implements Colorable {
super(Material.INK_SACK);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Dye(final int type) {
super(type);
}
@@ -19,10 +24,20 @@ public class Dye extends MaterialData implements Colorable {
super(type);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Dye(final int type, final byte data) {
super(type, data);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Dye(final Material type, final byte data) {
super(type, data);
}
diff --git a/paper-api/src/main/java/org/bukkit/material/EnderChest.java b/paper-api/src/main/java/org/bukkit/material/EnderChest.java
index f5039b4a1a..696dc65d1e 100644
--- a/paper-api/src/main/java/org/bukkit/material/EnderChest.java
+++ b/paper-api/src/main/java/org/bukkit/material/EnderChest.java
@@ -22,6 +22,11 @@ public class EnderChest extends DirectionalContainer {
setFacingDirection(direction);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public EnderChest(final int type) {
super(type);
}
@@ -30,10 +35,20 @@ public class EnderChest extends DirectionalContainer {
super(type);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public EnderChest(final int type, final byte data) {
super(type, data);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public EnderChest(final Material type, final byte data) {
super(type, data);
}
diff --git a/paper-api/src/main/java/org/bukkit/material/ExtendedRails.java b/paper-api/src/main/java/org/bukkit/material/ExtendedRails.java
index e89e82fdbb..87234bbdbd 100644
--- a/paper-api/src/main/java/org/bukkit/material/ExtendedRails.java
+++ b/paper-api/src/main/java/org/bukkit/material/ExtendedRails.java
@@ -7,6 +7,11 @@ import org.bukkit.block.BlockFace;
* This is the superclass for the {@link DetectorRail} and {@link PoweredRail} classes
*/
public class ExtendedRails extends Rails {
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public ExtendedRails(final int type) {
super(type);
}
@@ -15,10 +20,20 @@ public class ExtendedRails extends Rails {
super(type);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public ExtendedRails(final int type, final byte data) {
super(type, data);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public ExtendedRails(final Material type, final byte data) {
super(type, data);
}
@@ -28,6 +43,11 @@ public class ExtendedRails extends Rails {
return false;
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
@Override
protected byte getConvertedData() {
return (byte) (getData() & 0x7);
diff --git a/paper-api/src/main/java/org/bukkit/material/FlowerPot.java b/paper-api/src/main/java/org/bukkit/material/FlowerPot.java
index c59891adac..986de7e667 100644
--- a/paper-api/src/main/java/org/bukkit/material/FlowerPot.java
+++ b/paper-api/src/main/java/org/bukkit/material/FlowerPot.java
@@ -16,6 +16,11 @@ public class FlowerPot extends MaterialData {
super(Material.FLOWER_POT);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public FlowerPot(final int type) {
super(type);
}
@@ -24,10 +29,20 @@ public class FlowerPot extends MaterialData {
super(type);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public FlowerPot(final int type, final byte data) {
super(type, data);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public FlowerPot(final Material type, final byte data) {
super(type, data);
}
diff --git a/paper-api/src/main/java/org/bukkit/material/Furnace.java b/paper-api/src/main/java/org/bukkit/material/Furnace.java
index 26fadfa6d8..49645aa9ea 100644
--- a/paper-api/src/main/java/org/bukkit/material/Furnace.java
+++ b/paper-api/src/main/java/org/bukkit/material/Furnace.java
@@ -22,6 +22,11 @@ public class Furnace extends FurnaceAndDispenser {
setFacingDirection(direction);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Furnace(final int type) {
super(type);
}
@@ -30,10 +35,20 @@ public class Furnace extends FurnaceAndDispenser {
super(type);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Furnace(final int type, final byte data) {
super(type, data);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Furnace(final Material type, final byte data) {
super(type, data);
}
diff --git a/paper-api/src/main/java/org/bukkit/material/FurnaceAndDispenser.java b/paper-api/src/main/java/org/bukkit/material/FurnaceAndDispenser.java
index c7d0c9415a..a99fac5dfa 100644
--- a/paper-api/src/main/java/org/bukkit/material/FurnaceAndDispenser.java
+++ b/paper-api/src/main/java/org/bukkit/material/FurnaceAndDispenser.java
@@ -6,6 +6,11 @@ import org.bukkit.Material;
* Represents a furnace or dispenser, two types of directional containers
*/
public class FurnaceAndDispenser extends DirectionalContainer {
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public FurnaceAndDispenser(final int type) {
super(type);
}
@@ -14,10 +19,20 @@ public class FurnaceAndDispenser extends DirectionalContainer {
super(type);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public FurnaceAndDispenser(final int type, final byte data) {
super(type, data);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public FurnaceAndDispenser(final Material type, final byte data) {
super(type, data);
}
diff --git a/paper-api/src/main/java/org/bukkit/material/Ladder.java b/paper-api/src/main/java/org/bukkit/material/Ladder.java
index 31991a672f..09862bf6dd 100644
--- a/paper-api/src/main/java/org/bukkit/material/Ladder.java
+++ b/paper-api/src/main/java/org/bukkit/material/Ladder.java
@@ -11,6 +11,11 @@ public class Ladder extends SimpleAttachableMaterialData {
super(Material.LADDER);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Ladder(final int type) {
super(type);
}
@@ -19,10 +24,20 @@ public class Ladder extends SimpleAttachableMaterialData {
super(type);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Ladder(final int type, final byte data) {
super(type, data);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Ladder(final Material type, final byte data) {
super(type, data);
}
diff --git a/paper-api/src/main/java/org/bukkit/material/Leaves.java b/paper-api/src/main/java/org/bukkit/material/Leaves.java
index 5acde607ad..97ba382057 100644
--- a/paper-api/src/main/java/org/bukkit/material/Leaves.java
+++ b/paper-api/src/main/java/org/bukkit/material/Leaves.java
@@ -16,6 +16,11 @@ public class Leaves extends MaterialData {
setSpecies(species);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Leaves(final int type) {
super(type);
}
@@ -24,10 +29,20 @@ public class Leaves extends MaterialData {
super(type);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Leaves(final int type, final byte data) {
super(type, data);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Leaves(final Material type, final byte data) {
super(type, data);
}
diff --git a/paper-api/src/main/java/org/bukkit/material/Lever.java b/paper-api/src/main/java/org/bukkit/material/Lever.java
index bc4dd3a1e6..b88c536fde 100644
--- a/paper-api/src/main/java/org/bukkit/material/Lever.java
+++ b/paper-api/src/main/java/org/bukkit/material/Lever.java
@@ -11,6 +11,11 @@ public class Lever extends SimpleAttachableMaterialData implements Redstone {
super(Material.LEVER);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Lever(final int type) {
super(type);
}
@@ -19,10 +24,20 @@ public class Lever extends SimpleAttachableMaterialData implements Redstone {
super(type);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Lever(final int type, final byte data) {
super(type, data);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Lever(final Material type, final byte data) {
super(type, data);
}
diff --git a/paper-api/src/main/java/org/bukkit/material/LongGrass.java b/paper-api/src/main/java/org/bukkit/material/LongGrass.java
index 61f724dfac..e8d1f380e6 100644
--- a/paper-api/src/main/java/org/bukkit/material/LongGrass.java
+++ b/paper-api/src/main/java/org/bukkit/material/LongGrass.java
@@ -16,6 +16,11 @@ public class LongGrass extends MaterialData {
setSpecies(species);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public LongGrass(final int type) {
super(type);
}
@@ -24,10 +29,20 @@ public class LongGrass extends MaterialData {
super(type);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public LongGrass(final int type, final byte data) {
super(type, data);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public LongGrass(final Material type, final byte data) {
super(type, data);
}
diff --git a/paper-api/src/main/java/org/bukkit/material/MaterialData.java b/paper-api/src/main/java/org/bukkit/material/MaterialData.java
index adb7819559..ad7675f25b 100644
--- a/paper-api/src/main/java/org/bukkit/material/MaterialData.java
+++ b/paper-api/src/main/java/org/bukkit/material/MaterialData.java
@@ -10,6 +10,11 @@ public class MaterialData implements Cloneable {
private final int type;
private byte data = 0;
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public MaterialData(final int type) {
this(type, (byte) 0);
}
@@ -18,11 +23,21 @@ public class MaterialData implements Cloneable {
this(type, (byte) 0);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public MaterialData(final int type, final byte data) {
this.type = type;
this.data = data;
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public MaterialData(final Material type, final byte data) {
this(type.getId(), data);
}
@@ -31,7 +46,9 @@ public class MaterialData implements Cloneable {
* Gets the raw data in this material
*
* @return Raw data
+ * @deprecated Magic value
*/
+ @Deprecated
public byte getData() {
return data;
}
@@ -40,7 +57,9 @@ public class MaterialData implements Cloneable {
* Sets the raw data of this material
*
* @param data New raw data
+ * @deprecated Magic value
*/
+ @Deprecated
public void setData(byte data) {
this.data = data;
}
@@ -58,7 +77,9 @@ public class MaterialData implements Cloneable {
* Gets the Material Id that this MaterialData represents
*
* @return Material Id represented by this MaterialData
+ * @deprecated Magic value
*/
+ @Deprecated
public int getItemTypeId() {
return type;
}
diff --git a/paper-api/src/main/java/org/bukkit/material/MonsterEggs.java b/paper-api/src/main/java/org/bukkit/material/MonsterEggs.java
index 420474f772..d8b627b717 100644
--- a/paper-api/src/main/java/org/bukkit/material/MonsterEggs.java
+++ b/paper-api/src/main/java/org/bukkit/material/MonsterEggs.java
@@ -21,6 +21,11 @@ public class MonsterEggs extends TexturedMaterial {
super(Material.MONSTER_EGGS);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public MonsterEggs(final int type) {
super(type);
}
@@ -32,10 +37,20 @@ public class MonsterEggs extends TexturedMaterial {
}
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public MonsterEggs(final int type, final byte data) {
super(type, data);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public MonsterEggs(final Material type, final byte data) {
super(type, data);
}
diff --git a/paper-api/src/main/java/org/bukkit/material/Mushroom.java b/paper-api/src/main/java/org/bukkit/material/Mushroom.java
index 1d38140cc9..f38f71f8c4 100644
--- a/paper-api/src/main/java/org/bukkit/material/Mushroom.java
+++ b/paper-api/src/main/java/org/bukkit/material/Mushroom.java
@@ -26,11 +26,21 @@ public class Mushroom extends MaterialData {
Validate.isTrue(shroom == Material.HUGE_MUSHROOM_1 || shroom == Material.HUGE_MUSHROOM_2, "Not a mushroom!");
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Mushroom(Material shroom, byte data) {
super(shroom, data);
Validate.isTrue(shroom == Material.HUGE_MUSHROOM_1 || shroom == Material.HUGE_MUSHROOM_2, "Not a mushroom!");
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Mushroom(int type, byte data){
super(type, data);
Validate.isTrue(type == Material.HUGE_MUSHROOM_1.getId() || type == Material.HUGE_MUSHROOM_2.getId(), "Not a mushroom!");
diff --git a/paper-api/src/main/java/org/bukkit/material/NetherWarts.java b/paper-api/src/main/java/org/bukkit/material/NetherWarts.java
index b8caad5302..49fc5d7169 100644
--- a/paper-api/src/main/java/org/bukkit/material/NetherWarts.java
+++ b/paper-api/src/main/java/org/bukkit/material/NetherWarts.java
@@ -16,6 +16,11 @@ public class NetherWarts extends MaterialData {
setState(state);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public NetherWarts(final int type) {
super(type);
}
@@ -24,10 +29,20 @@ public class NetherWarts extends MaterialData {
super (type);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public NetherWarts(final int type, final byte data) {
super(type, data);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public NetherWarts(final Material type, final byte data) {
super(type, data);
}
diff --git a/paper-api/src/main/java/org/bukkit/material/PistonBaseMaterial.java b/paper-api/src/main/java/org/bukkit/material/PistonBaseMaterial.java
index f5e2fc94ec..f3586dc0ad 100644
--- a/paper-api/src/main/java/org/bukkit/material/PistonBaseMaterial.java
+++ b/paper-api/src/main/java/org/bukkit/material/PistonBaseMaterial.java
@@ -7,6 +7,11 @@ import org.bukkit.block.BlockFace;
* Material data for the piston base block
*/
public class PistonBaseMaterial extends MaterialData implements Directional, Redstone {
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public PistonBaseMaterial(final int type) {
super(type);
}
@@ -15,10 +20,20 @@ public class PistonBaseMaterial extends MaterialData implements Directional, Red
super(type);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public PistonBaseMaterial(final int type, final byte data) {
super(type, data);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public PistonBaseMaterial(final Material type, final byte data) {
super(type, data);
}
diff --git a/paper-api/src/main/java/org/bukkit/material/PistonExtensionMaterial.java b/paper-api/src/main/java/org/bukkit/material/PistonExtensionMaterial.java
index 37323a616b..85dee84084 100644
--- a/paper-api/src/main/java/org/bukkit/material/PistonExtensionMaterial.java
+++ b/paper-api/src/main/java/org/bukkit/material/PistonExtensionMaterial.java
@@ -7,6 +7,11 @@ import org.bukkit.block.BlockFace;
* Material data for the piston extension block
*/
public class PistonExtensionMaterial extends MaterialData implements Attachable {
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public PistonExtensionMaterial(final int type) {
super(type);
}
@@ -15,10 +20,20 @@ public class PistonExtensionMaterial extends MaterialData implements Attachable
super(type);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public PistonExtensionMaterial(final int type, final byte data) {
super(type, data);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public PistonExtensionMaterial(final Material type, final byte data) {
super(type, data);
}
diff --git a/paper-api/src/main/java/org/bukkit/material/PoweredRail.java b/paper-api/src/main/java/org/bukkit/material/PoweredRail.java
index a8f627cc04..444e53b765 100644
--- a/paper-api/src/main/java/org/bukkit/material/PoweredRail.java
+++ b/paper-api/src/main/java/org/bukkit/material/PoweredRail.java
@@ -10,6 +10,11 @@ public class PoweredRail extends ExtendedRails implements Redstone {
super(Material.POWERED_RAIL);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public PoweredRail(final int type) {
super(type);
}
@@ -18,10 +23,20 @@ public class PoweredRail extends ExtendedRails implements Redstone {
super(type);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public PoweredRail(final int type, final byte data) {
super(type, data);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public PoweredRail(final Material type, final byte data) {
super(type, data);
}
diff --git a/paper-api/src/main/java/org/bukkit/material/PressurePlate.java b/paper-api/src/main/java/org/bukkit/material/PressurePlate.java
index 2be7191847..8c3bc759c8 100644
--- a/paper-api/src/main/java/org/bukkit/material/PressurePlate.java
+++ b/paper-api/src/main/java/org/bukkit/material/PressurePlate.java
@@ -10,6 +10,11 @@ public class PressurePlate extends MaterialData implements PressureSensor {
super(Material.WOOD_PLATE);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public PressurePlate(int type) {
super(type);
}
@@ -18,10 +23,20 @@ public class PressurePlate extends MaterialData implements PressureSensor {
super(type);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public PressurePlate(int type, byte data) {
super(type, data);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public PressurePlate(Material type, byte data) {
super(type, data);
}
diff --git a/paper-api/src/main/java/org/bukkit/material/Pumpkin.java b/paper-api/src/main/java/org/bukkit/material/Pumpkin.java
index 47837dd1c8..d6ca83c93f 100644
--- a/paper-api/src/main/java/org/bukkit/material/Pumpkin.java
+++ b/paper-api/src/main/java/org/bukkit/material/Pumpkin.java
@@ -22,6 +22,11 @@ public class Pumpkin extends MaterialData implements Directional {
setFacingDirection(direction);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Pumpkin(final int type) {
super(type);
}
@@ -30,10 +35,20 @@ public class Pumpkin extends MaterialData implements Directional {
super(type);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Pumpkin(final int type, final byte data) {
super(type, data);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Pumpkin(final Material type, final byte data) {
super(type, data);
}
diff --git a/paper-api/src/main/java/org/bukkit/material/Rails.java b/paper-api/src/main/java/org/bukkit/material/Rails.java
index ab18888e3a..969ccc4923 100644
--- a/paper-api/src/main/java/org/bukkit/material/Rails.java
+++ b/paper-api/src/main/java/org/bukkit/material/Rails.java
@@ -12,6 +12,11 @@ public class Rails extends MaterialData {
super(Material.RAILS);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Rails(final int type) {
super(type);
}
@@ -20,10 +25,20 @@ public class Rails extends MaterialData {
super(type);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Rails(final int type, final byte data) {
super(type, data);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Rails(final Material type, final byte data) {
super(type, data);
}
@@ -99,7 +114,9 @@ public class Rails extends MaterialData {
* Return the data without the extended properties used by {@link PoweredRail} and {@link DetectorRail}. Overridden in {@link ExtendedRails}
*
* @return the data without the extended part
+ * @deprecated Magic value
*/
+ @Deprecated
protected byte getConvertedData() {
return getData();
}
diff --git a/paper-api/src/main/java/org/bukkit/material/RedstoneTorch.java b/paper-api/src/main/java/org/bukkit/material/RedstoneTorch.java
index 4312e22735..76a3ddd90e 100644
--- a/paper-api/src/main/java/org/bukkit/material/RedstoneTorch.java
+++ b/paper-api/src/main/java/org/bukkit/material/RedstoneTorch.java
@@ -10,6 +10,11 @@ public class RedstoneTorch extends Torch implements Redstone {
super(Material.REDSTONE_TORCH_ON);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public RedstoneTorch(final int type) {
super(type);
}
@@ -18,10 +23,20 @@ public class RedstoneTorch extends Torch implements Redstone {
super(type);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public RedstoneTorch(final int type, final byte data) {
super(type, data);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public RedstoneTorch(final Material type, final byte data) {
super(type, data);
}
diff --git a/paper-api/src/main/java/org/bukkit/material/RedstoneWire.java b/paper-api/src/main/java/org/bukkit/material/RedstoneWire.java
index ac0843da46..b429af0071 100644
--- a/paper-api/src/main/java/org/bukkit/material/RedstoneWire.java
+++ b/paper-api/src/main/java/org/bukkit/material/RedstoneWire.java
@@ -10,6 +10,11 @@ public class RedstoneWire extends MaterialData implements Redstone {
super(Material.REDSTONE_WIRE);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public RedstoneWire(final int type) {
super(type);
}
@@ -18,10 +23,20 @@ public class RedstoneWire extends MaterialData implements Redstone {
super(type);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public RedstoneWire(final int type, final byte data) {
super(type, data);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public RedstoneWire(final Material type, final byte data) {
super(type, data);
}
diff --git a/paper-api/src/main/java/org/bukkit/material/Sandstone.java b/paper-api/src/main/java/org/bukkit/material/Sandstone.java
index d2f6c2671f..26cbbb5231 100644
--- a/paper-api/src/main/java/org/bukkit/material/Sandstone.java
+++ b/paper-api/src/main/java/org/bukkit/material/Sandstone.java
@@ -16,6 +16,11 @@ public class Sandstone extends MaterialData {
setType(type);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Sandstone(final int type) {
super(type);
}
@@ -24,10 +29,20 @@ public class Sandstone extends MaterialData {
super(type);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Sandstone(final int type, final byte data) {
super(type, data);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Sandstone(final Material type, final byte data) {
super(type, data);
}
diff --git a/paper-api/src/main/java/org/bukkit/material/Sign.java b/paper-api/src/main/java/org/bukkit/material/Sign.java
index e2333723fb..21f3dba29c 100644
--- a/paper-api/src/main/java/org/bukkit/material/Sign.java
+++ b/paper-api/src/main/java/org/bukkit/material/Sign.java
@@ -11,6 +11,11 @@ public class Sign extends MaterialData implements Attachable {
super(Material.SIGN_POST);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Sign(final int type) {
super(type);
}
@@ -19,10 +24,20 @@ public class Sign extends MaterialData implements Attachable {
super(type);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Sign(final int type, final byte data) {
super(type, data);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Sign(final Material type, final byte data) {
super(type, data);
}
diff --git a/paper-api/src/main/java/org/bukkit/material/SimpleAttachableMaterialData.java b/paper-api/src/main/java/org/bukkit/material/SimpleAttachableMaterialData.java
index b88c3f9bb4..b5703c6cbb 100644
--- a/paper-api/src/main/java/org/bukkit/material/SimpleAttachableMaterialData.java
+++ b/paper-api/src/main/java/org/bukkit/material/SimpleAttachableMaterialData.java
@@ -8,6 +8,11 @@ import org.bukkit.block.BlockFace;
*/
public abstract class SimpleAttachableMaterialData extends MaterialData implements Attachable {
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public SimpleAttachableMaterialData(int type) {
super(type);
}
@@ -26,10 +31,20 @@ public abstract class SimpleAttachableMaterialData extends MaterialData implemen
super(type);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public SimpleAttachableMaterialData(int type, byte data) {
super(type, data);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public SimpleAttachableMaterialData(Material type, byte data) {
super(type, data);
}
diff --git a/paper-api/src/main/java/org/bukkit/material/Skull.java b/paper-api/src/main/java/org/bukkit/material/Skull.java
index e93baaf9fd..6e0d71fafb 100644
--- a/paper-api/src/main/java/org/bukkit/material/Skull.java
+++ b/paper-api/src/main/java/org/bukkit/material/Skull.java
@@ -21,6 +21,11 @@ public class Skull extends MaterialData implements Directional {
setFacingDirection(direction);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Skull(final int type) {
super(type);
}
@@ -29,10 +34,20 @@ public class Skull extends MaterialData implements Directional {
super(type);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Skull(final int type, final byte data) {
super(type, data);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Skull(final Material type, final byte data) {
super(type, data);
}
diff --git a/paper-api/src/main/java/org/bukkit/material/SmoothBrick.java b/paper-api/src/main/java/org/bukkit/material/SmoothBrick.java
index d7b338c85a..b7ab6074e6 100644
--- a/paper-api/src/main/java/org/bukkit/material/SmoothBrick.java
+++ b/paper-api/src/main/java/org/bukkit/material/SmoothBrick.java
@@ -22,6 +22,11 @@ public class SmoothBrick extends TexturedMaterial {
super(Material.SMOOTH_BRICK);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public SmoothBrick(final int type) {
super(type);
}
@@ -33,10 +38,20 @@ public class SmoothBrick extends TexturedMaterial {
}
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public SmoothBrick(final int type, final byte data) {
super(type, data);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public SmoothBrick(final Material type, final byte data) {
super(type, data);
}
diff --git a/paper-api/src/main/java/org/bukkit/material/SpawnEgg.java b/paper-api/src/main/java/org/bukkit/material/SpawnEgg.java
index d13fbe4ae3..ed973c525c 100644
--- a/paper-api/src/main/java/org/bukkit/material/SpawnEgg.java
+++ b/paper-api/src/main/java/org/bukkit/material/SpawnEgg.java
@@ -7,14 +7,25 @@ import org.bukkit.entity.EntityType;
* Represents a spawn egg that can be used to spawn mobs
*/
public class SpawnEgg extends MaterialData {
+
public SpawnEgg() {
super(Material.MONSTER_EGG);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public SpawnEgg(int type, byte data){
super(type, data);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public SpawnEgg(byte data) {
super(Material.MONSTER_EGG, data);
}
diff --git a/paper-api/src/main/java/org/bukkit/material/Stairs.java b/paper-api/src/main/java/org/bukkit/material/Stairs.java
index 89e83fd701..1980174ed9 100644
--- a/paper-api/src/main/java/org/bukkit/material/Stairs.java
+++ b/paper-api/src/main/java/org/bukkit/material/Stairs.java
@@ -8,6 +8,11 @@ import org.bukkit.block.BlockFace;
*/
public class Stairs extends MaterialData implements Directional {
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Stairs(final int type) {
super(type);
}
@@ -16,10 +21,20 @@ public class Stairs extends MaterialData implements Directional {
super(type);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Stairs(final int type, final byte data) {
super(type, data);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Stairs(final Material type, final byte data) {
super(type, data);
}
diff --git a/paper-api/src/main/java/org/bukkit/material/Step.java b/paper-api/src/main/java/org/bukkit/material/Step.java
index 1d41a07148..e3f509b6b0 100644
--- a/paper-api/src/main/java/org/bukkit/material/Step.java
+++ b/paper-api/src/main/java/org/bukkit/material/Step.java
@@ -25,6 +25,11 @@ public class Step extends TexturedMaterial {
super(Material.STEP);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Step(final int type) {
super(type);
}
@@ -36,10 +41,20 @@ public class Step extends TexturedMaterial {
}
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Step(final int type, final byte data) {
super(type, data);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Step(final Material type, final byte data) {
super(type, data);
}
@@ -57,7 +72,7 @@ public class Step extends TexturedMaterial {
public boolean isInverted() {
return ((getData() & 0x8) != 0);
}
-
+
/**
* Set step inverted state
*
@@ -70,12 +85,22 @@ public class Step extends TexturedMaterial {
}
setData((byte) dat);
}
-
+
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
@Override
protected int getTextureIndex() {
return getData() & 0x7;
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
@Override
protected void setTextureIndex(int idx) {
setData((byte) ((getData() & 0x8) | idx));
diff --git a/paper-api/src/main/java/org/bukkit/material/TexturedMaterial.java b/paper-api/src/main/java/org/bukkit/material/TexturedMaterial.java
index e5581b7aed..08cbbb64f2 100644
--- a/paper-api/src/main/java/org/bukkit/material/TexturedMaterial.java
+++ b/paper-api/src/main/java/org/bukkit/material/TexturedMaterial.java
@@ -13,14 +13,29 @@ public abstract class TexturedMaterial extends MaterialData {
super(m);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public TexturedMaterial(int type) {
super(type);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public TexturedMaterial(final int type, final byte data) {
super(type, data);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public TexturedMaterial(final Material type, final byte data) {
super(type, data);
}
@@ -64,7 +79,9 @@ public abstract class TexturedMaterial extends MaterialData {
* Get material index from data
*
* @return index of data in textures list
+ * @deprecated Magic value
*/
+ @Deprecated
protected int getTextureIndex() {
return getData(); // Default to using all bits - override for other mappings
}
@@ -73,7 +90,9 @@ public abstract class TexturedMaterial extends MaterialData {
* Set material index
*
* @param idx - index of data in textures list
+ * @deprecated Magic value
*/
+ @Deprecated
protected void setTextureIndex(int idx) {
setData((byte) idx); // Defult to using all bits - override for other mappings
}
diff --git a/paper-api/src/main/java/org/bukkit/material/Torch.java b/paper-api/src/main/java/org/bukkit/material/Torch.java
index e18feae6d4..f03b3cf8b2 100644
--- a/paper-api/src/main/java/org/bukkit/material/Torch.java
+++ b/paper-api/src/main/java/org/bukkit/material/Torch.java
@@ -11,6 +11,11 @@ public class Torch extends SimpleAttachableMaterialData {
super(Material.TORCH);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Torch(final int type) {
super(type);
}
@@ -19,10 +24,20 @@ public class Torch extends SimpleAttachableMaterialData {
super(type);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Torch(final int type, final byte data) {
super(type, data);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Torch(final Material type, final byte data) {
super(type, data);
}
diff --git a/paper-api/src/main/java/org/bukkit/material/TrapDoor.java b/paper-api/src/main/java/org/bukkit/material/TrapDoor.java
index 572d177832..bd4bcc2b1d 100644
--- a/paper-api/src/main/java/org/bukkit/material/TrapDoor.java
+++ b/paper-api/src/main/java/org/bukkit/material/TrapDoor.java
@@ -11,6 +11,11 @@ public class TrapDoor extends SimpleAttachableMaterialData implements Openable {
super(Material.TRAP_DOOR);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public TrapDoor(final int type) {
super(type);
}
@@ -19,10 +24,20 @@ public class TrapDoor extends SimpleAttachableMaterialData implements Openable {
super(type);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public TrapDoor(final int type, final byte data) {
super(type, data);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public TrapDoor(final Material type, final byte data) {
super(type, data);
}
diff --git a/paper-api/src/main/java/org/bukkit/material/Tree.java b/paper-api/src/main/java/org/bukkit/material/Tree.java
index f5c1017005..54ae516744 100644
--- a/paper-api/src/main/java/org/bukkit/material/Tree.java
+++ b/paper-api/src/main/java/org/bukkit/material/Tree.java
@@ -23,6 +23,11 @@ public class Tree extends MaterialData {
setDirection(dir);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Tree(final int type) {
super(type);
}
@@ -31,10 +36,20 @@ public class Tree extends MaterialData {
super(type);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Tree(final int type, final byte data) {
super(type, data);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Tree(final Material type, final byte data) {
super(type, data);
}
diff --git a/paper-api/src/main/java/org/bukkit/material/Tripwire.java b/paper-api/src/main/java/org/bukkit/material/Tripwire.java
index 12bac754b7..583860bcf2 100644
--- a/paper-api/src/main/java/org/bukkit/material/Tripwire.java
+++ b/paper-api/src/main/java/org/bukkit/material/Tripwire.java
@@ -11,10 +11,20 @@ public class Tripwire extends MaterialData {
super(Material.TRIPWIRE);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Tripwire(final int type) {
super(type);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Tripwire(final int type, final byte data) {
super(type, data);
}
diff --git a/paper-api/src/main/java/org/bukkit/material/TripwireHook.java b/paper-api/src/main/java/org/bukkit/material/TripwireHook.java
index a3352f1935..7ad2d2ade0 100644
--- a/paper-api/src/main/java/org/bukkit/material/TripwireHook.java
+++ b/paper-api/src/main/java/org/bukkit/material/TripwireHook.java
@@ -12,10 +12,20 @@ public class TripwireHook extends SimpleAttachableMaterialData implements Redsto
super(Material.TRIPWIRE_HOOK);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public TripwireHook(final int type) {
super(type);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public TripwireHook(final int type, final byte data) {
super(type, data);
}
diff --git a/paper-api/src/main/java/org/bukkit/material/Vine.java b/paper-api/src/main/java/org/bukkit/material/Vine.java
index e00ea3c907..83de4e06ab 100644
--- a/paper-api/src/main/java/org/bukkit/material/Vine.java
+++ b/paper-api/src/main/java/org/bukkit/material/Vine.java
@@ -20,10 +20,20 @@ public class Vine extends MaterialData {
super(Material.VINE);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Vine(int type, byte data){
super(type, data);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Vine(byte data) {
super(Material.VINE, data);
}
diff --git a/paper-api/src/main/java/org/bukkit/material/WoodenStep.java b/paper-api/src/main/java/org/bukkit/material/WoodenStep.java
index b9acfc2cb2..c6f57a2742 100644
--- a/paper-api/src/main/java/org/bukkit/material/WoodenStep.java
+++ b/paper-api/src/main/java/org/bukkit/material/WoodenStep.java
@@ -12,6 +12,11 @@ public class WoodenStep extends MaterialData {
super(Material.WOOD_STEP);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public WoodenStep(final int type) {
super(type);
}
@@ -27,10 +32,20 @@ public class WoodenStep extends MaterialData {
setInverted(inv);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public WoodenStep(final int type, final byte data) {
super(type, data);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public WoodenStep(final Material type, final byte data) {
super(type, data);
}
diff --git a/paper-api/src/main/java/org/bukkit/material/Wool.java b/paper-api/src/main/java/org/bukkit/material/Wool.java
index 62f63bd67f..8115bdc333 100644
--- a/paper-api/src/main/java/org/bukkit/material/Wool.java
+++ b/paper-api/src/main/java/org/bukkit/material/Wool.java
@@ -16,6 +16,11 @@ public class Wool extends MaterialData implements Colorable {
setColor(color);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Wool(final int type) {
super(type);
}
@@ -24,10 +29,20 @@ public class Wool extends MaterialData implements Colorable {
super(type);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Wool(final int type, final byte data) {
super(type, data);
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public Wool(final Material type, final byte data) {
super(type, data);
}
diff --git a/paper-api/src/main/java/org/bukkit/potion/Potion.java b/paper-api/src/main/java/org/bukkit/potion/Potion.java
index bcfa4488ee..800a375bf8 100644
--- a/paper-api/src/main/java/org/bukkit/potion/Potion.java
+++ b/paper-api/src/main/java/org/bukkit/potion/Potion.java
@@ -370,6 +370,11 @@ public class Potion {
private static final int TIER_SHIFT = 5;
private static final int NAME_BIT = 0x3F;
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public static Potion fromDamage(int damage) {
PotionType type = PotionType.getByDamageValue(damage & POTION_BIT);
Potion potion;
@@ -417,6 +422,11 @@ public class Potion {
brewer = other;
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public int getNameId() {
return name;
}
diff --git a/paper-api/src/main/java/org/bukkit/potion/PotionBrewer.java b/paper-api/src/main/java/org/bukkit/potion/PotionBrewer.java
index 7d8318cfef..d85a1d639a 100644
--- a/paper-api/src/main/java/org/bukkit/potion/PotionBrewer.java
+++ b/paper-api/src/main/java/org/bukkit/potion/PotionBrewer.java
@@ -23,6 +23,8 @@ public interface PotionBrewer {
*
* @param damage The data value of the potion
* @return The list of effects
+ * @deprecated Magic value
*/
+ @Deprecated
public Collection