#1082: Add "since" to Deprecation annotations

By: DerFrZocker <derrieple@gmail.com>
This commit is contained in:
Bukkit/Spigot
2024-11-25 07:52:33 +11:00
parent 98f6ab9a04
commit 0023e5549a
257 changed files with 1523 additions and 1176 deletions

View File

@@ -7,7 +7,7 @@ import org.bukkit.block.BlockFace;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public class Banner extends MaterialData implements Attachable {
public Banner() {
@@ -23,7 +23,7 @@ public class Banner extends MaterialData implements Attachable {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.8")
public Banner(Material type, byte data) {
super(type, data);
}

View File

@@ -9,7 +9,7 @@ import org.bukkit.block.BlockFace;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public class Bed extends MaterialData implements Directional {
/**
@@ -38,7 +38,7 @@ public class Bed extends MaterialData implements Directional {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public Bed(final Material type, final byte data) {
super(type, data);
}

View File

@@ -9,7 +9,7 @@ import org.bukkit.block.BlockFace;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public class Button extends SimpleAttachableMaterialData implements Redstone {
public Button() {
super(Material.LEGACY_STONE_BUTTON);
@@ -24,7 +24,7 @@ public class Button extends SimpleAttachableMaterialData implements Redstone {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public Button(final Material type, final byte data) {
super(type, data);
}

View File

@@ -6,7 +6,7 @@ import org.bukkit.Material;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public class Cake extends MaterialData {
public Cake() {
super(Material.LEGACY_CAKE_BLOCK);
@@ -21,7 +21,7 @@ public class Cake extends MaterialData {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public Cake(Material type, byte data) {
super(type, data);
}

View File

@@ -8,7 +8,7 @@ import org.bukkit.Material;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public class Cauldron extends MaterialData {
private static final int CAULDRON_FULL = 3;
private static final int CAULDRON_EMPTY = 0;
@@ -22,7 +22,7 @@ public class Cauldron extends MaterialData {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public Cauldron(final Material type, final byte data) {
super(type, data);
}
@@ -31,7 +31,7 @@ public class Cauldron extends MaterialData {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public Cauldron(byte data) {
super(Material.LEGACY_CAULDRON, data);
}

View File

@@ -9,7 +9,7 @@ import org.bukkit.block.BlockFace;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public class Chest extends DirectionalContainer {
public Chest() {
@@ -35,7 +35,7 @@ public class Chest extends DirectionalContainer {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public Chest(final Material type, final byte data) {
super(type, data);
}

View File

@@ -9,7 +9,7 @@ import org.bukkit.Material;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public class Coal extends MaterialData {
public Coal() {
super(Material.LEGACY_COAL);
@@ -29,7 +29,7 @@ public class Coal extends MaterialData {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public Coal(final Material type, final byte data) {
super(type, data);
}

View File

@@ -9,7 +9,7 @@ import org.bukkit.block.BlockFace;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public class CocoaPlant extends MaterialData implements Directional, Attachable {
public enum CocoaPlantSize {
@@ -27,7 +27,7 @@ public class CocoaPlant extends MaterialData implements Directional, Attachable
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public CocoaPlant(final Material type, final byte data) {
super(type, data);
}

View File

@@ -8,7 +8,7 @@ import org.bukkit.Material;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public class Command extends MaterialData implements Redstone {
public Command() {
super(Material.LEGACY_COMMAND);
@@ -23,7 +23,7 @@ public class Command extends MaterialData implements Redstone {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public Command(final Material type, final byte data) {
super(type, data);
}

View File

@@ -12,7 +12,7 @@ import org.bukkit.block.BlockFace;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public class Comparator extends MaterialData implements Directional, Redstone {
protected static final BlockFace DEFAULT_DIRECTION = BlockFace.NORTH;
protected static final boolean DEFAULT_SUBTRACTION_MODE = false;
@@ -72,7 +72,7 @@ public class Comparator extends MaterialData implements Directional, Redstone {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.9")
public Comparator(Material type, byte data) {
super(type, data);
}

View File

@@ -15,7 +15,7 @@ import org.bukkit.Material;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public class Crops extends MaterialData {
protected static final Material DEFAULT_TYPE = Material.LEGACY_CROPS;
protected static final CropState DEFAULT_STATE = CropState.SEEDED;
@@ -62,7 +62,7 @@ public class Crops extends MaterialData {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public Crops(final Material type, final byte data) {
super(type, data);
}

View File

@@ -8,7 +8,7 @@ import org.bukkit.Material;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public class DetectorRail extends ExtendedRails implements PressureSensor {
public DetectorRail() {
super(Material.LEGACY_DETECTOR_RAIL);
@@ -23,7 +23,7 @@ public class DetectorRail extends ExtendedRails implements PressureSensor {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public DetectorRail(final Material type, final byte data) {
super(type, data);
}

View File

@@ -13,7 +13,7 @@ import org.bukkit.block.BlockFace;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public class Diode extends MaterialData implements Directional, Redstone {
protected static final BlockFace DEFAULT_DIRECTION = BlockFace.NORTH;
@@ -83,7 +83,7 @@ public class Diode extends MaterialData implements Directional, Redstone {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public Diode(Material type, byte data) {
super(type, data);
}

View File

@@ -9,7 +9,7 @@ import org.bukkit.block.BlockFace;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public class DirectionalContainer extends MaterialData implements Directional {
public DirectionalContainer(final Material type) {
@@ -21,7 +21,7 @@ public class DirectionalContainer extends MaterialData implements Directional {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public DirectionalContainer(final Material type, final byte data) {
super(type, data);
}

View File

@@ -9,7 +9,7 @@ import org.bukkit.block.BlockFace;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public class Dispenser extends FurnaceAndDispenser {
public Dispenser() {
@@ -30,7 +30,7 @@ public class Dispenser extends FurnaceAndDispenser {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public Dispenser(final Material type, final byte data) {
super(type, data);
}

View File

@@ -22,7 +22,7 @@ import org.bukkit.block.BlockFace;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public class Door extends MaterialData implements Directional, Openable {
// This class breaks API contracts on Directional and Openable because
@@ -31,7 +31,7 @@ public class Door extends MaterialData implements Directional, Openable {
/**
* @deprecated Artifact of old API, equivalent to new <code>Door(Material.LEGACY_WOODEN_DOOR);</code>
*/
@Deprecated
@Deprecated(since = "1.8.7")
public Door() {
super(Material.LEGACY_WOODEN_DOOR);
}
@@ -165,7 +165,7 @@ public class Door extends MaterialData implements Directional, Openable {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public Door(final Material type, final byte data) {
super(type, data);
}
@@ -237,7 +237,7 @@ public class Door extends MaterialData implements Directional, Openable {
* @return BlockFace.SELF
* @deprecated This method should not be used; use hinge and facing accessors instead.
*/
@Deprecated
@Deprecated(since = "1.4.5")
public BlockFace getHingeCorner() {
return BlockFace.SELF;
}

View File

@@ -9,7 +9,7 @@ import org.bukkit.Material;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public class Dye extends MaterialData implements Colorable {
public Dye() {
super(Material.LEGACY_INK_SACK);
@@ -24,7 +24,7 @@ public class Dye extends MaterialData implements Colorable {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public Dye(final Material type, final byte data) {
super(type, data);
}

View File

@@ -9,7 +9,7 @@ import org.bukkit.block.BlockFace;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public class EnderChest extends DirectionalContainer {
public EnderChest() {
@@ -35,7 +35,7 @@ public class EnderChest extends DirectionalContainer {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public EnderChest(final Material type, final byte data) {
super(type, data);
}

View File

@@ -10,7 +10,7 @@ import org.bukkit.block.BlockFace;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public class ExtendedRails extends Rails {
public ExtendedRails(final Material type) {
@@ -22,7 +22,7 @@ public class ExtendedRails extends Rails {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public ExtendedRails(final Material type, final byte data) {
super(type, data);
}
@@ -37,7 +37,7 @@ public class ExtendedRails extends Rails {
*
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
@Override
protected byte getConvertedData() {
return (byte) (getData() & 0x7);

View File

@@ -10,7 +10,7 @@ import org.bukkit.TreeSpecies;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.9.4")
public class FlowerPot extends MaterialData {
/**
@@ -29,7 +29,7 @@ public class FlowerPot extends MaterialData {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public FlowerPot(final Material type, final byte data) {
super(type, data);
}

View File

@@ -9,7 +9,7 @@ import org.bukkit.block.BlockFace;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public class Furnace extends FurnaceAndDispenser {
public Furnace() {
@@ -35,7 +35,7 @@ public class Furnace extends FurnaceAndDispenser {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public Furnace(final Material type, final byte data) {
super(type, data);
}

View File

@@ -8,7 +8,7 @@ import org.bukkit.Material;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public class FurnaceAndDispenser extends DirectionalContainer {
public FurnaceAndDispenser(final Material type) {
@@ -20,7 +20,7 @@ public class FurnaceAndDispenser extends DirectionalContainer {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public FurnaceAndDispenser(final Material type, final byte data) {
super(type, data);
}

View File

@@ -9,7 +9,7 @@ import org.bukkit.block.BlockFace;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public class Gate extends MaterialData implements Directional, Openable {
private static final byte OPEN_BIT = 0x4;
private static final byte DIR_BIT = 0x3;
@@ -27,7 +27,7 @@ public class Gate extends MaterialData implements Directional, Openable {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.13")
public Gate(final Material type, final byte data) {
super(type, data);
}

View File

@@ -12,7 +12,7 @@ import org.bukkit.block.BlockFace;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public class Hopper extends MaterialData implements Directional, Redstone {
protected static final BlockFace DEFAULT_DIRECTION = BlockFace.DOWN;
@@ -62,7 +62,7 @@ public class Hopper extends MaterialData implements Directional, Redstone {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.9")
public Hopper(Material type, byte data) {
super(type, data);
}

View File

@@ -9,7 +9,7 @@ import org.bukkit.block.BlockFace;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public class Ladder extends SimpleAttachableMaterialData {
public Ladder() {
super(Material.LEGACY_LADDER);
@@ -24,7 +24,7 @@ public class Ladder extends SimpleAttachableMaterialData {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public Ladder(final Material type, final byte data) {
super(type, data);
}

View File

@@ -13,7 +13,7 @@ import org.bukkit.TreeSpecies;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public class Leaves extends Wood {
protected static final Material DEFAULT_TYPE = Material.LEGACY_LEAVES;
protected static final boolean DEFAULT_DECAYABLE = true;
@@ -82,7 +82,7 @@ public class Leaves extends Wood {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public Leaves(final Material type, final byte data) {
super(type, data);
}

View File

@@ -9,7 +9,7 @@ import org.bukkit.block.BlockFace;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public class Lever extends SimpleAttachableMaterialData implements Redstone {
public Lever() {
super(Material.LEGACY_LEVER);
@@ -24,7 +24,7 @@ public class Lever extends SimpleAttachableMaterialData implements Redstone {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public Lever(final Material type, final byte data) {
super(type, data);
}

View File

@@ -9,7 +9,7 @@ import org.bukkit.Material;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public class LongGrass extends MaterialData {
public LongGrass() {
super(Material.LEGACY_LONG_GRASS);
@@ -29,7 +29,7 @@ public class LongGrass extends MaterialData {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public LongGrass(final Material type, final byte data) {
super(type, data);
}

View File

@@ -9,7 +9,7 @@ import org.bukkit.inventory.ItemStack;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.13")
public class MaterialData implements Cloneable {
private final Material type;
private byte data = 0;
@@ -23,7 +23,7 @@ public class MaterialData implements Cloneable {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public MaterialData(final Material type, final byte data) {
this.type = type;
this.data = data;
@@ -35,7 +35,7 @@ public class MaterialData implements Cloneable {
* @return Raw data
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public byte getData() {
return data;
}
@@ -46,7 +46,7 @@ public class MaterialData implements Cloneable {
* @param data New raw data
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public void setData(byte data) {
this.data = data;
}
@@ -67,7 +67,7 @@ public class MaterialData implements Cloneable {
* @deprecated this method creates an ItemStack of size 0 which is not
* generally useful. Consider {@link #toItemStack(int)}.
*/
@Deprecated
@Deprecated(since = "1.12")
public ItemStack toItemStack() {
return new ItemStack(type, 0, data);
}

View File

@@ -10,7 +10,7 @@ import org.bukkit.Material;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public class MonsterEggs extends TexturedMaterial {
private static final List<Material> textures = new ArrayList<Material>();
@@ -36,7 +36,7 @@ public class MonsterEggs extends TexturedMaterial {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public MonsterEggs(final Material type, final byte data) {
super(type, data);
}

View File

@@ -17,7 +17,7 @@ import org.bukkit.material.types.MushroomBlockTexture;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public class Mushroom extends MaterialData {
private static final byte NORTH_LIMIT = 4;
private static final byte SOUTH_LIMIT = 6;
@@ -79,7 +79,7 @@ public class Mushroom extends MaterialData {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public Mushroom(Material shroom, byte data) {
super(shroom, data);
Preconditions.checkArgument(shroom == Material.LEGACY_HUGE_MUSHROOM_1 || shroom == Material.LEGACY_HUGE_MUSHROOM_2, "Not a mushroom!");
@@ -103,7 +103,7 @@ public class Mushroom extends MaterialData {
* with {@link MushroomBlockTexture#STEM_SIDES } or
* {@link MushroomBlockTexture#ALL_STEM}
*/
@Deprecated
@Deprecated(since = "1.9")
public void setStem() {
setData((byte) MushroomBlockTexture.STEM_SIDES.getData());
}
@@ -170,7 +170,7 @@ public class Mushroom extends MaterialData {
*
* @deprecated Use MushroomBlockType cap options
*/
@Deprecated
@Deprecated(since = "1.9")
public void setFacePainted(BlockFace face, boolean painted) {
if (painted == isFacePainted(face)) {
return;

View File

@@ -9,7 +9,7 @@ import org.bukkit.NetherWartsState;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public class NetherWarts extends MaterialData {
public NetherWarts() {
super(Material.LEGACY_NETHER_WARTS);
@@ -29,7 +29,7 @@ public class NetherWarts extends MaterialData {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public NetherWarts(final Material type, final byte data) {
super(type, data);
}

View File

@@ -9,7 +9,7 @@ import org.bukkit.block.BlockFace;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public class Observer extends MaterialData implements Directional, Redstone {
public Observer() {
@@ -30,7 +30,7 @@ public class Observer extends MaterialData implements Directional, Redstone {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.11.2")
public Observer(final Material type, final byte data) {
super(type, data);
}

View File

@@ -9,7 +9,7 @@ import org.bukkit.block.BlockFace;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public class PistonBaseMaterial extends MaterialData implements Directional, Redstone {
public PistonBaseMaterial(final Material type) {
@@ -23,7 +23,7 @@ public class PistonBaseMaterial extends MaterialData implements Directional, Red
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public PistonBaseMaterial(final Material type, final byte data) {
super(type, data);
}

View File

@@ -9,7 +9,7 @@ import org.bukkit.block.BlockFace;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public class PistonExtensionMaterial extends MaterialData implements Attachable {
public PistonExtensionMaterial(final Material type) {
@@ -21,7 +21,7 @@ public class PistonExtensionMaterial extends MaterialData implements Attachable
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public PistonExtensionMaterial(final Material type, final byte data) {
super(type, data);
}

View File

@@ -8,7 +8,7 @@ import org.bukkit.Material;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public class PoweredRail extends ExtendedRails implements Redstone {
public PoweredRail() {
super(Material.LEGACY_POWERED_RAIL);
@@ -23,7 +23,7 @@ public class PoweredRail extends ExtendedRails implements Redstone {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public PoweredRail(final Material type, final byte data) {
super(type, data);
}

View File

@@ -8,7 +8,7 @@ import org.bukkit.Material;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public class PressurePlate extends MaterialData implements PressureSensor {
public PressurePlate() {
super(Material.LEGACY_WOOD_PLATE);
@@ -23,7 +23,7 @@ public class PressurePlate extends MaterialData implements PressureSensor {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public PressurePlate(Material type, byte data) {
super(type, data);
}

View File

@@ -9,7 +9,7 @@ import org.bukkit.block.BlockFace;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public class Pumpkin extends MaterialData implements Directional {
public Pumpkin() {
@@ -35,7 +35,7 @@ public class Pumpkin extends MaterialData implements Directional {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public Pumpkin(final Material type, final byte data) {
super(type, data);
}

View File

@@ -9,7 +9,7 @@ import org.bukkit.block.BlockFace;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public class Rails extends MaterialData {
public Rails() {
@@ -25,7 +25,7 @@ public class Rails extends MaterialData {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public Rails(final Material type, final byte data) {
super(type, data);
}
@@ -105,7 +105,7 @@ public class Rails extends MaterialData {
* @return the data without the extended part
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
protected byte getConvertedData() {
return getData();
}

View File

@@ -8,7 +8,7 @@ import org.bukkit.Material;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public class RedstoneTorch extends Torch implements Redstone {
public RedstoneTorch() {
super(Material.LEGACY_REDSTONE_TORCH_ON);
@@ -23,7 +23,7 @@ public class RedstoneTorch extends Torch implements Redstone {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public RedstoneTorch(final Material type, final byte data) {
super(type, data);
}

View File

@@ -8,7 +8,7 @@ import org.bukkit.Material;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public class RedstoneWire extends MaterialData implements Redstone {
public RedstoneWire() {
super(Material.LEGACY_REDSTONE_WIRE);
@@ -23,7 +23,7 @@ public class RedstoneWire extends MaterialData implements Redstone {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public RedstoneWire(final Material type, final byte data) {
super(type, data);
}

View File

@@ -9,7 +9,7 @@ import org.bukkit.SandstoneType;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public class Sandstone extends MaterialData {
public Sandstone() {
super(Material.LEGACY_SANDSTONE);
@@ -29,7 +29,7 @@ public class Sandstone extends MaterialData {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public Sandstone(final Material type, final byte data) {
super(type, data);
}

View File

@@ -11,7 +11,7 @@ import org.bukkit.TreeSpecies;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public class Sapling extends Wood {
/**
@@ -79,7 +79,7 @@ public class Sapling extends Wood {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.9")
public Sapling(final Material type, final byte data) {
super(type, data);
}

View File

@@ -9,7 +9,7 @@ import org.bukkit.block.BlockFace;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public class Sign extends MaterialData implements Attachable {
public Sign() {
super(Material.LEGACY_SIGN_POST);
@@ -24,7 +24,7 @@ public class Sign extends MaterialData implements Attachable {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public Sign(final Material type, final byte data) {
super(type, data);
}

View File

@@ -9,7 +9,7 @@ import org.bukkit.block.BlockFace;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public abstract class SimpleAttachableMaterialData extends MaterialData implements Attachable {
public SimpleAttachableMaterialData(Material type, BlockFace direction) {
@@ -26,7 +26,7 @@ public abstract class SimpleAttachableMaterialData extends MaterialData implemen
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public SimpleAttachableMaterialData(Material type, byte data) {
super(type, data);
}

View File

@@ -9,7 +9,7 @@ import org.bukkit.block.BlockFace;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public class Skull extends MaterialData implements Directional {
public Skull() {
super(Material.LEGACY_SKULL);
@@ -34,7 +34,7 @@ public class Skull extends MaterialData implements Directional {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public Skull(final Material type, final byte data) {
super(type, data);
}

View File

@@ -10,7 +10,7 @@ import org.bukkit.Material;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public class SmoothBrick extends TexturedMaterial {
private static final List<Material> textures = new ArrayList<Material>();
@@ -37,7 +37,7 @@ public class SmoothBrick extends TexturedMaterial {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public SmoothBrick(final Material type, final byte data) {
super(type, data);
}

View File

@@ -8,7 +8,7 @@ import org.bukkit.inventory.meta.SpawnEggMeta;
* Represents a spawn egg that can be used to spawn mobs
* @deprecated use {@link SpawnEggMeta}
*/
@Deprecated
@Deprecated(since = "1.11")
public class SpawnEgg extends MaterialData {
public SpawnEgg() {
@@ -20,7 +20,7 @@ public class SpawnEgg extends MaterialData {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public SpawnEgg(final Material type, final byte data) {
super(type, data);
}
@@ -29,7 +29,7 @@ public class SpawnEgg extends MaterialData {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public SpawnEgg(byte data) {
super(Material.LEGACY_MONSTER_EGG, data);
}
@@ -45,7 +45,7 @@ public class SpawnEgg extends MaterialData {
* @return The entity type.
* @deprecated This is now stored in {@link SpawnEggMeta}.
*/
@Deprecated
@Deprecated(since = "1.9")
public EntityType getSpawnedType() {
return EntityType.fromId(getData());
}
@@ -56,7 +56,7 @@ public class SpawnEgg extends MaterialData {
* @param type The entity type.
* @deprecated This is now stored in {@link SpawnEggMeta}.
*/
@Deprecated
@Deprecated(since = "1.9")
public void setSpawnedType(EntityType type) {
setData((byte) type.getTypeId());
}

View File

@@ -9,7 +9,7 @@ import org.bukkit.block.BlockFace;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public class Stairs extends MaterialData implements Directional {
public Stairs(final Material type) {
@@ -21,7 +21,7 @@ public class Stairs extends MaterialData implements Directional {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public Stairs(final Material type, final byte data) {
super(type, data);
}

View File

@@ -10,7 +10,7 @@ import org.bukkit.Material;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public class Step extends TexturedMaterial {
private static final List<Material> textures = new ArrayList<Material>();
static {
@@ -40,7 +40,7 @@ public class Step extends TexturedMaterial {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public Step(final Material type, final byte data) {
super(type, data);
}
@@ -79,7 +79,7 @@ public class Step extends TexturedMaterial {
* @deprecated Magic value
*/
@Override
@Deprecated
@Deprecated(since = "1.20.5")
protected int getTextureIndex() {
return getData() & 0x7;
}
@@ -89,7 +89,7 @@ public class Step extends TexturedMaterial {
*
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
@Override
protected void setTextureIndex(int idx) {
setData((byte) ((getData() & 0x8) | idx));

View File

@@ -9,7 +9,7 @@ import org.bukkit.Material;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public abstract class TexturedMaterial extends MaterialData {
public TexturedMaterial(Material m) {
@@ -21,7 +21,7 @@ public abstract class TexturedMaterial extends MaterialData {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public TexturedMaterial(final Material type, final byte data) {
super(type, data);
}
@@ -68,7 +68,7 @@ public abstract class TexturedMaterial extends MaterialData {
* @return index of data in textures list
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
protected int getTextureIndex() {
return getData(); // Default to using all bits - override for other mappings
}
@@ -79,7 +79,7 @@ public abstract class TexturedMaterial extends MaterialData {
* @param idx - index of data in textures list
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
protected void setTextureIndex(int idx) {
setData((byte) idx); // Default to using all bits - override for other mappings
}

View File

@@ -9,7 +9,7 @@ import org.bukkit.block.BlockFace;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public class Torch extends SimpleAttachableMaterialData {
public Torch() {
super(Material.LEGACY_TORCH);
@@ -24,7 +24,7 @@ public class Torch extends SimpleAttachableMaterialData {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public Torch(final Material type, final byte data) {
super(type, data);
}

View File

@@ -9,7 +9,7 @@ import org.bukkit.block.BlockFace;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public class TrapDoor extends SimpleAttachableMaterialData implements Openable {
public TrapDoor() {
super(Material.LEGACY_TRAP_DOOR);
@@ -24,7 +24,7 @@ public class TrapDoor extends SimpleAttachableMaterialData implements Openable {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public TrapDoor(final Material type, final byte data) {
super(type, data);
}

View File

@@ -13,7 +13,7 @@ import org.bukkit.block.BlockFace;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public class Tree extends Wood {
protected static final Material DEFAULT_TYPE = Material.LEGACY_LOG;
protected static final BlockFace DEFAULT_DIRECTION = BlockFace.UP;
@@ -82,7 +82,7 @@ public class Tree extends Wood {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public Tree(final Material type, final byte data) {
super(type, data);
}

View File

@@ -8,7 +8,7 @@ import org.bukkit.Material;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public class Tripwire extends MaterialData {
public Tripwire() {
@@ -20,7 +20,7 @@ public class Tripwire extends MaterialData {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public Tripwire(final Material type, final byte data) {
super(type, data);
}

View File

@@ -9,7 +9,7 @@ import org.bukkit.block.BlockFace;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public class TripwireHook extends SimpleAttachableMaterialData implements Redstone {
public TripwireHook() {
@@ -21,7 +21,7 @@ public class TripwireHook extends SimpleAttachableMaterialData implements Redsto
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public TripwireHook(final Material type, final byte data) {
super(type, data);
}

View File

@@ -11,7 +11,7 @@ import org.bukkit.block.BlockFace;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public class Vine extends MaterialData {
private static final int VINE_NORTH = 0x4;
private static final int VINE_EAST = 0x8;
@@ -28,7 +28,7 @@ public class Vine extends MaterialData {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public Vine(final Material type, final byte data) {
super(type, data);
}
@@ -37,7 +37,7 @@ public class Vine extends MaterialData {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public Vine(byte data) {
super(Material.LEGACY_VINE, data);
}

View File

@@ -13,7 +13,7 @@ import org.bukkit.TreeSpecies;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public class Wood extends MaterialData {
protected static final Material DEFAULT_TYPE = Material.LEGACY_WOOD;
protected static final TreeSpecies DEFAULT_SPECIES = TreeSpecies.GENERIC;
@@ -60,7 +60,7 @@ public class Wood extends MaterialData {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.9")
public Wood(final Material type, final byte data) {
super(type, data);
}

View File

@@ -11,7 +11,7 @@ import org.bukkit.TreeSpecies;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public class WoodenStep extends Wood {
protected static final Material DEFAULT_TYPE = Material.LEGACY_WOOD_STEP;
protected static final boolean DEFAULT_INVERTED = false;
@@ -49,7 +49,7 @@ public class WoodenStep extends Wood {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public WoodenStep(final Material type, final byte data) {
super(type, data);
}

View File

@@ -8,7 +8,7 @@ import org.bukkit.Material;
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
@Deprecated(since = "1.14.1")
public class Wool extends MaterialData implements Colorable {
public Wool() {
super(Material.LEGACY_WOOL);
@@ -28,7 +28,7 @@ public class Wool extends MaterialData implements Colorable {
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.6.2")
public Wool(final Material type, final byte data) {
super(type, data);
}

View File

@@ -80,7 +80,7 @@ public enum MushroomBlockTexture {
* @return A byte containing the data value of this mushroom block face
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.9")
public byte getData() {
return data;
}
@@ -103,7 +103,7 @@ public enum MushroomBlockTexture {
* null if it doesn't exist
* @deprecated Magic value
*/
@Deprecated
@Deprecated(since = "1.9")
@Nullable
public static MushroomBlockTexture getByData(final byte data) {
return BY_DATA.get(data);