Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-15 04:20:04 +01:00
Add ARMOR tag to MaterialTags (1.18.2) (#7880)
Dieser Commit ist enthalten in:
Ursprung
ef5d95f9fb
Commit
072f54c5f9
@ -113,10 +113,10 @@ index 0000000000000000000000000000000000000000..a02a02aa0c87e0f0ed9e509e4dcab015
|
||||
+}
|
||||
diff --git a/src/main/java/com/destroystokyo/paper/MaterialTags.java b/src/main/java/com/destroystokyo/paper/MaterialTags.java
|
||||
new file mode 100644
|
||||
index 0000000000000000000000000000000000000000..f5ae132cef01666bacda11422c0b73dd585fea27
|
||||
index 0000000000000000000000000000000000000000..728bc33cd6081f9462ab62d2ca6935573ccd3533
|
||||
--- /dev/null
|
||||
+++ b/src/main/java/com/destroystokyo/paper/MaterialTags.java
|
||||
@@ -0,0 +1,655 @@
|
||||
@@ -0,0 +1,661 @@
|
||||
+/*
|
||||
+ * Copyright (c) 2018 Daniel Ennis (Aikar) MIT License
|
||||
+ *
|
||||
@ -627,6 +627,12 @@ index 0000000000000000000000000000000000000000..f5ae132cef01666bacda11422c0b73dd
|
||||
+ .ensureSize("BOOTS", 6).lock();
|
||||
+
|
||||
+ /**
|
||||
+ * Covers all variants of armor.
|
||||
+ */
|
||||
+ public static final MaterialSetTag ARMOR = new MaterialSetTag(keyFor("armor")).add(HELMETS, CHESTPLATES, LEGGINGS, BOOTS)
|
||||
+ .ensureSize("ARMOR", 25).lock();
|
||||
+
|
||||
+ /**
|
||||
+ * Covers the variants of bows.
|
||||
+ */
|
||||
+ public static final MaterialSetTag BOWS = new MaterialSetTag(keyFor("bows"))
|
||||
@ -1067,7 +1073,7 @@ index 0000000000000000000000000000000000000000..d7eb49a05c3f0cacf285f8995433c5d5
|
||||
+ .ensureSize("WATER_BASED", 11).lock();
|
||||
+}
|
||||
diff --git a/src/main/java/org/bukkit/Tag.java b/src/main/java/org/bukkit/Tag.java
|
||||
index 5a25301a81b0e88a4891cbc4710289544d44105c..34d23f53acf00620223731c4fdacffde9cff41a8 100644
|
||||
index 107d12d447be481928ee796f73b7acb2c4b9b2d8..42d0f31c2be2d39c4481f98c0756c4f1ae337717 100644
|
||||
--- a/src/main/java/org/bukkit/Tag.java
|
||||
+++ b/src/main/java/org/bukkit/Tag.java
|
||||
@@ -11,6 +11,10 @@ import org.jetbrains.annotations.NotNull;
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren