mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-05 06:32:17 -07:00
fix components
This commit is contained in:
@@ -345,7 +345,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ public static final DataComponentType.Valued<UseRemainder> USE_REMAINDER = valued("use_remainder");
|
||||
+ public static final DataComponentType.Valued<UseCooldown> USE_COOLDOWN = valued("use_cooldown");
|
||||
+ /**
|
||||
+ * If present, this item will not burn in fire.
|
||||
+ * If present, this item will not take damage from the specified damage types.
|
||||
+ */
|
||||
+ public static final DataComponentType.Valued<DamageResistant> DAMAGE_RESISTANT = valued("damage_resistant");
|
||||
+ /**
|
||||
@@ -435,10 +435,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ * Controls the amplifier amount for an Ominous Bottle's Bad Omen effect.
|
||||
+ */
|
||||
+ public static final DataComponentType.Valued<OminousBottleAmplifier> OMINOUS_BOTTLE_AMPLIFIER = valued("ominous_bottle_amplifier");
|
||||
+ public static final DataComponentType.Valued<JukeboxPlayable> JUKEBOX_PLAYABLE = valued("jukebox_playable");
|
||||
+ /**
|
||||
+ * List of recipes that should be unlocked when using the Knowledge Book item.
|
||||
+ */
|
||||
+ public static final DataComponentType.Valued<JukeboxPlayable> JUKEBOX_PLAYABLE = valued("jukebox_playable");
|
||||
+ public static final DataComponentType.Valued<List<Key>> RECIPES = valued("recipes");
|
||||
+ /**
|
||||
+ * If present, specifies that the Compass is a Lodestone Compass.
|
||||
@@ -674,7 +674,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ *
|
||||
+ * @return items
|
||||
+ */
|
||||
+ @Contract(value = "-> new", pure = true)
|
||||
+ @Contract(pure = true)
|
||||
+ @Unmodifiable List<ItemStack> contents();
|
||||
+
|
||||
+ /**
|
||||
@@ -864,6 +864,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+import org.bukkit.Color;
|
||||
+import org.jetbrains.annotations.ApiStatus;
|
||||
+import org.jetbrains.annotations.Contract;
|
||||
+import org.jetbrains.annotations.Unmodifiable;
|
||||
+import org.jspecify.annotations.NullMarked;
|
||||
+
|
||||
+/**
|
||||
@@ -887,7 +888,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ * @return the float values
|
||||
+ */
|
||||
+ @Contract(pure = true)
|
||||
+ List<Float> floats();
|
||||
+ @Unmodifiable List<Float> floats();
|
||||
+
|
||||
+ /**
|
||||
+ * Gets the custom model data boolean values.
|
||||
@@ -895,7 +896,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ * @return the boolean values
|
||||
+ */
|
||||
+ @Contract(pure = true)
|
||||
+ List<Boolean> flags();
|
||||
+ @Unmodifiable List<Boolean> flags();
|
||||
+
|
||||
+ /**
|
||||
+ * Gets the custom model data string values.
|
||||
@@ -903,7 +904,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ * @return the string values
|
||||
+ */
|
||||
+ @Contract(pure = true)
|
||||
+ List<String> strings();
|
||||
+ @Unmodifiable List<String> strings();
|
||||
+
|
||||
+ /**
|
||||
+ * Gets the custom model data color values.
|
||||
@@ -911,7 +912,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ * @return the color values
|
||||
+ */
|
||||
+ @Contract(pure = true)
|
||||
+ List<Color> colors();
|
||||
+ @Unmodifiable List<Color> colors();
|
||||
+
|
||||
+ /**
|
||||
+ * Builder for {@link CustomModelData}.
|
||||
@@ -923,29 +924,29 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ /**
|
||||
+ * Adds a float to this custom model data.
|
||||
+ *
|
||||
+ * @param num the float
|
||||
+ * @param f the float
|
||||
+ * @return the builder for chaining
|
||||
+ * @see #floats()
|
||||
+ */
|
||||
+ @Contract(value = "_ -> this", mutates = "this")
|
||||
+ CustomModelData.Builder addFloat(float num);
|
||||
+ CustomModelData.Builder addFloat(float f);
|
||||
+
|
||||
+ /**
|
||||
+ * Adds multiple floats to this custom model data.
|
||||
+ *
|
||||
+ * @param nums the floats
|
||||
+ * @param floats the floats
|
||||
+ * @return the builder for chaining
|
||||
+ * @see #floats()
|
||||
+ */
|
||||
+ @Contract(value = "_ -> this", mutates = "this")
|
||||
+ CustomModelData.Builder addFloats(List<Float> nums);
|
||||
+ CustomModelData.Builder addFloats(List<Float> floats);
|
||||
+
|
||||
+ /**
|
||||
+ * Adds a flag to this custom model data.
|
||||
+ *
|
||||
+ * @param flag the flag
|
||||
+ * @return the builder for chaining
|
||||
+ * @see #floats()
|
||||
+ * @see #flags()
|
||||
+ */
|
||||
+ @Contract(value = "_ -> this", mutates = "this")
|
||||
+ CustomModelData.Builder addFlag(boolean flag);
|
||||
@@ -983,7 +984,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ /**
|
||||
+ * Adds a color to this custom model data.
|
||||
+ *
|
||||
+ * @param color the float
|
||||
+ * @param color the color
|
||||
+ * @return the builder for chaining
|
||||
+ * @see #colors()
|
||||
+ */
|
||||
|
Reference in New Issue
Block a user