Add StructuresLocateEvent as replacement for StructureLocateEvent (#7524)

This commit is contained in:
Jake Potrebic
2022-03-04 00:09:43 -08:00
parent fd5b9dd153
commit 1641e0c524
11 changed files with 1027 additions and 210 deletions

View File

@@ -65,9 +65,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
--- a/src/main/java/org/bukkit/UnsafeValues.java
+++ b/src/main/java/org/bukkit/UnsafeValues.java
@@ -0,0 +0,0 @@ public interface UnsafeValues {
* Use this when sending custom packets, so that there are no collisions on the client or server.
* @throws IllegalArgumentException if there isn't a registry for that type
*/
public int nextEntityId();
<T extends Keyed> @org.jetbrains.annotations.NotNull Registry<T> registryFor(Class<T> classOfT);
+
+ /**
+ * Gets the item rarity of a material. The material <b>MUST</b> be an item.