From e36eed450773455b2015c39f3be3509561791ce1 Mon Sep 17 00:00:00 2001 From: Jake Potrebic Date: Sat, 3 Jun 2023 11:09:43 -0700 Subject: [PATCH] [ci skip] Add missing deprecations for legacy MaterialData api (#9253) --- .../api/Fix-Spigot-annotation-mistakes.patch | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/patches/api/Fix-Spigot-annotation-mistakes.patch b/patches/api/Fix-Spigot-annotation-mistakes.patch index 17f9cb84da..2d82a70b10 100644 --- a/patches/api/Fix-Spigot-annotation-mistakes.patch +++ b/patches/api/Fix-Spigot-annotation-mistakes.patch @@ -926,6 +926,29 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + //@Deprecated // Paper int getMapId(); + /** +diff --git a/src/main/java/org/bukkit/material/Openable.java b/src/main/java/org/bukkit/material/Openable.java +index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 +--- a/src/main/java/org/bukkit/material/Openable.java ++++ b/src/main/java/org/bukkit/material/Openable.java +@@ -0,0 +0,0 @@ + package org.bukkit.material; + ++@Deprecated // Paper + public interface Openable { + + /** +diff --git a/src/main/java/org/bukkit/material/Redstone.java b/src/main/java/org/bukkit/material/Redstone.java +index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 +--- a/src/main/java/org/bukkit/material/Redstone.java ++++ b/src/main/java/org/bukkit/material/Redstone.java +@@ -0,0 +0,0 @@ package org.bukkit.material; + /** + * Indicated a Material that may carry or create a Redstone current + */ ++@Deprecated // Paper + public interface Redstone { + /** diff --git a/src/main/java/org/bukkit/material/Step.java b/src/main/java/org/bukkit/material/Step.java index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 @@ -953,3 +976,15 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 public enum MushroomBlockTexture { /** +diff --git a/src/test/java/org/bukkit/materials/MaterialDataTest.java b/src/test/java/org/bukkit/materials/MaterialDataTest.java +index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 +--- a/src/test/java/org/bukkit/materials/MaterialDataTest.java ++++ b/src/test/java/org/bukkit/materials/MaterialDataTest.java +@@ -0,0 +0,0 @@ import org.bukkit.material.WoodenStep; + import org.bukkit.material.types.MushroomBlockTexture; + import org.junit.Test; + ++@Deprecated // Paper + public class MaterialDataTest { + + @Test