Fix Spigot annotation mistakes
while some of these may of been true, they are extreme cases and cause a ton of noise to plugin developers. Use ApiStatus.Internal instead of Deprecated for actual internal API that continues to have use (internally). These do not help plugin developers if they bring moise noise than value.
This commit is contained in:
@@ -526,7 +526,7 @@ public interface Block extends Metadatable, Translatable {
|
||||
* @return a list of dropped items for this type of block
|
||||
*/
|
||||
@NotNull
|
||||
Collection<ItemStack> getDrops(@NotNull ItemStack tool, @Nullable Entity entity);
|
||||
Collection<ItemStack> getDrops(@Nullable ItemStack tool, @Nullable Entity entity); // Paper
|
||||
|
||||
/**
|
||||
* Returns if the given item is a preferred choice to break this Block.
|
||||
|
||||
@@ -36,8 +36,10 @@ public interface BlockState extends Metadatable {
|
||||
* Gets the metadata for this block state.
|
||||
*
|
||||
* @return block specific metadata
|
||||
* @deprecated use {@link #getBlockData()}
|
||||
*/
|
||||
@NotNull
|
||||
@Deprecated(forRemoval = true, since = "1.13")
|
||||
MaterialData getData();
|
||||
|
||||
/**
|
||||
@@ -151,7 +153,9 @@ public interface BlockState extends Metadatable {
|
||||
* Sets the metadata for this block state.
|
||||
*
|
||||
* @param data New block specific metadata
|
||||
* @deprecated use {@link #setBlockData(BlockData)}
|
||||
*/
|
||||
@Deprecated(forRemoval = true, since = "1.13")
|
||||
void setData(@NotNull MaterialData data);
|
||||
|
||||
/**
|
||||
|
||||
@@ -3551,9 +3551,14 @@ public interface BlockType extends Keyed, Translatable {
|
||||
* state as well. This method will return true if there is at least one
|
||||
* state in which additional interact handling is performed for the
|
||||
* block type.
|
||||
*
|
||||
* @deprecated This method is not comprehensive and does not accurately reflect what block types are
|
||||
* interactable. Many "interactions" are defined on the item not block, and many are conditional on some other world state
|
||||
* checks being true.
|
||||
*
|
||||
* @return true if this block type can be interacted with.
|
||||
*/
|
||||
@Deprecated // Paper
|
||||
boolean isInteractable();
|
||||
|
||||
/**
|
||||
|
||||
@@ -15,7 +15,7 @@ public interface BrushableBlock extends Lootable, TileState {
|
||||
*
|
||||
* @return the item
|
||||
*/
|
||||
@Nullable
|
||||
@org.jetbrains.annotations.NotNull // Paper
|
||||
public ItemStack getItem();
|
||||
|
||||
/**
|
||||
|
||||
@@ -48,9 +48,9 @@ public enum PistonMoveReaction {
|
||||
|
||||
/**
|
||||
* @return The ID of the move reaction
|
||||
* @deprecated Magic value
|
||||
* @apiNote Internal Use Only
|
||||
*/
|
||||
@Deprecated(since = "1.6.2")
|
||||
@org.jetbrains.annotations.ApiStatus.Internal // Paper
|
||||
public int getId() {
|
||||
return this.id;
|
||||
}
|
||||
@@ -58,9 +58,9 @@ public enum PistonMoveReaction {
|
||||
/**
|
||||
* @param id An ID
|
||||
* @return The move reaction with that ID
|
||||
* @deprecated Magic value
|
||||
* @apiNote Internal Use Only
|
||||
*/
|
||||
@Deprecated(since = "1.6.2")
|
||||
@org.jetbrains.annotations.ApiStatus.Internal // Paper
|
||||
@Nullable
|
||||
public static PistonMoveReaction getById(int id) {
|
||||
return byId.get(id);
|
||||
|
||||
@@ -5,6 +5,6 @@ package org.bukkit.block;
|
||||
*
|
||||
* @see BrushableBlock
|
||||
*/
|
||||
@Deprecated(since = "1.20")
|
||||
@Deprecated(since = "1.20", forRemoval = true)
|
||||
public interface SuspiciousSand extends BrushableBlock {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user