mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 23:38:25 +01:00
Undeprecate Bed's tile entity interface (#7330)
This commit is contained in:
parent
004e444f9b
commit
f0d198d6b2
1 changed files with 30 additions and 0 deletions
|
@ -46,6 +46,36 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
*
|
*
|
||||||
* @return an array containing all previous players
|
* @return an array containing all previous players
|
||||||
*/
|
*/
|
||||||
|
diff --git a/src/main/java/org/bukkit/block/Bed.java b/src/main/java/org/bukkit/block/Bed.java
|
||||||
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||||
|
--- a/src/main/java/org/bukkit/block/Bed.java
|
||||||
|
+++ b/src/main/java/org/bukkit/block/Bed.java
|
||||||
|
@@ -0,0 +0,0 @@ import org.bukkit.material.Colorable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Represents a captured state of a bed.
|
||||||
|
- * @deprecated does not provide useful information beyond the material itself
|
||||||
|
*/
|
||||||
|
-@Deprecated
|
||||||
|
-public interface Bed extends TileState, Colorable { }
|
||||||
|
+// Paper start
|
||||||
|
+// @Deprecated
|
||||||
|
+public interface Bed extends TileState, Colorable {
|
||||||
|
+
|
||||||
|
+ @Override
|
||||||
|
+ @org.jetbrains.annotations.NotNull org.bukkit.DyeColor getColor();
|
||||||
|
+
|
||||||
|
+ /**
|
||||||
|
+ * <b>Unsupported</b>
|
||||||
|
+ *
|
||||||
|
+ * @throws UnsupportedOperationException not supported, set the block type
|
||||||
|
+ */
|
||||||
|
+ @Override
|
||||||
|
+ @org.jetbrains.annotations.Contract("_ -> fail")
|
||||||
|
+ @Deprecated(forRemoval = true)
|
||||||
|
+ void setColor(@org.bukkit.UndefinedNullability("not supported") org.bukkit.DyeColor color);
|
||||||
|
+// Paper end
|
||||||
|
+}
|
||||||
diff --git a/src/main/java/org/bukkit/entity/ArmorStand.java b/src/main/java/org/bukkit/entity/ArmorStand.java
|
diff --git a/src/main/java/org/bukkit/entity/ArmorStand.java b/src/main/java/org/bukkit/entity/ArmorStand.java
|
||||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||||
--- a/src/main/java/org/bukkit/entity/ArmorStand.java
|
--- a/src/main/java/org/bukkit/entity/ArmorStand.java
|
||||||
|
|
Loading…
Reference in a new issue