3333public interface UnsafeValues {
3434 // Paper start
3535 net .kyori .adventure .text .flattener .ComponentFlattener componentFlattener ();
36-
37- @ Deprecated (forRemoval = true )
38- net .kyori .adventure .text .serializer .plain .PlainComponentSerializer plainComponentSerializer ();
39-
40- @ Deprecated (forRemoval = true )
41- net .kyori .adventure .text .serializer .plain .PlainTextComponentSerializer plainTextSerializer ();
42-
43- @ Deprecated (forRemoval = true )
44- net .kyori .adventure .text .serializer .gson .GsonComponentSerializer gsonComponentSerializer ();
45-
46- @ Deprecated (forRemoval = true )
47- net .kyori .adventure .text .serializer .gson .GsonComponentSerializer colorDownsamplingGsonComponentSerializer ();
48-
49- @ Deprecated (forRemoval = true )
50- net .kyori .adventure .text .serializer .legacy .LegacyComponentSerializer legacyComponentSerializer ();
51-
36+ @ Deprecated (forRemoval = true ) net .kyori .adventure .text .serializer .plain .PlainComponentSerializer plainComponentSerializer ();
37+ @ Deprecated (forRemoval = true ) net .kyori .adventure .text .serializer .plain .PlainTextComponentSerializer plainTextSerializer ();
38+ @ Deprecated (forRemoval = true ) net .kyori .adventure .text .serializer .gson .GsonComponentSerializer gsonComponentSerializer ();
39+ @ Deprecated (forRemoval = true ) net .kyori .adventure .text .serializer .gson .GsonComponentSerializer colorDownsamplingGsonComponentSerializer ();
40+ @ Deprecated (forRemoval = true ) net .kyori .adventure .text .serializer .legacy .LegacyComponentSerializer legacyComponentSerializer ();
5241 net .kyori .adventure .text .Component resolveWithContext (net .kyori .adventure .text .Component component , org .bukkit .command .CommandSender context , org .bukkit .entity .Entity scoreboardSubject , boolean bypassPermissions ) throws java .io .IOException ;
5342 // Paper end
5443
@@ -84,7 +73,7 @@ public interface UnsafeValues {
8473 * <br>
8574 * Callers should be prepared for {@link Exception} to be thrown.
8675 *
87- * @param key the unique advancement key
76+ * @param key the unique advancement key
8877 * @param advancement representation of the advancement
8978 * @return the loaded advancement or null if an error occurred
9079 */
@@ -136,7 +125,7 @@ public interface UnsafeValues {
136125
137126 @ ApiStatus .Internal
138127 @ Nullable
139- @ Deprecated // Paper
128+ @ Deprecated // Paper
140129 DamageEffect getDamageEffect (@ NotNull String key );
141130
142131 /**
@@ -169,7 +158,6 @@ static boolean isLegacyPlugin(org.bukkit.plugin.Plugin plugin) {
169158 // Paper end
170159
171160 // Paper start
172-
173161 /**
174162 * Called once by the version command on first use, then cached.
175163 */
@@ -190,8 +178,8 @@ default com.destroystokyo.paper.util.VersionFetcher getVersionFetcher() {
190178 * non-development purposes like plugin configurations or end-user input.
191179 *
192180 * @return json object representing this item.
193- * @throws IllegalArgumentException if the passed itemstack is {@link ItemStack#empty()}.
194181 * @see #deserializeItemFromJson(com.google.gson.JsonObject)
182+ * @throws IllegalArgumentException if the passed itemstack is {@link ItemStack#empty()}.
195183 */
196184 @ NotNull
197185 com .google .gson .JsonObject serializeItemAsJson (@ NotNull ItemStack itemStack );
@@ -243,7 +231,7 @@ default org.bukkit.entity.Entity deserializeEntity(byte[] data, World world) {
243231 * Returns false if either argument's type is not an item ({@link Material#isItem()}).
244232 *
245233 * @param itemToBeRepaired the itemstack to be repaired
246- * @param repairMaterial the repair material
234+ * @param repairMaterial the repair material
247235 * @return true if valid repair, false if not
248236 */
249237 public boolean isValidRepairItemStack (@ org .jetbrains .annotations .NotNull ItemStack itemToBeRepaired , @ org .jetbrains .annotations .NotNull ItemStack repairMaterial );
@@ -276,16 +264,15 @@ default org.bukkit.entity.Entity deserializeEntity(byte[] data, World world) {
276264 // Paper end
277265
278266 // Paper start - namespaced key biome methods
279-
280267 /**
281268 * Gets the {@link NamespacedKey} for the biome at the given location.
282269 *
283270 * @param accessor The {@link RegionAccessor} of the provided coordinates
284- * @param x X-coordinate of the block
285- * @param y Y-coordinate of the block
286- * @param z Z-coordinate of the block
287- * @return the biome's {@link NamespacedKey}
271+ * @param x X-coordinate of the block
272+ * @param y Y-coordinate of the block
273+ * @param z Z-coordinate of the block
288274 * @deprecated custom biomes are properly supported in API now
275+ * @return the biome's {@link NamespacedKey}
289276 */
290277 @ org .jetbrains .annotations .NotNull
291278 @ Deprecated (since = "1.21.3" , forRemoval = true )
@@ -298,12 +285,12 @@ default org.bukkit.entity.Entity deserializeEntity(byte[] data, World world) {
298285 * will be thrown.
299286 *
300287 * @param accessor The {@link RegionAccessor} of the provided coordinates
301- * @param x X-coordinate of the block
302- * @param y Y-coordinate of the block
303- * @param z Z-coordinate of the block
288+ * @param x X-coordinate of the block
289+ * @param y Y-coordinate of the block
290+ * @param z Z-coordinate of the block
304291 * @param biomeKey Biome key
305- * @throws IllegalStateException if no biome by the given key is registered.
306292 * @deprecated custom biomes are properly supported in API now
293+ * @throws IllegalStateException if no biome by the given key is registered.
307294 */
308295 @ Deprecated (since = "1.21.3" , forRemoval = true )
309296 void setBiomeKey (RegionAccessor accessor , int x , int y , int z , NamespacedKey biomeKey );
@@ -312,22 +299,19 @@ default org.bukkit.entity.Entity deserializeEntity(byte[] data, World world) {
312299 String getStatisticCriteriaKey (@ NotNull org .bukkit .Statistic statistic ); // Paper - fix custom stats criteria creation
313300
314301 // Paper start - spawn egg color visibility
315-
316302 /**
317303 * Obtains the underlying color informating for a spawn egg of a given
318304 * entity type, or null if the entity passed does not have a spawn egg.
319305 * Spawn eggs have two colors - the background layer (0), and the
320306 * foreground layer (1)
321- *
322307 * @param entityType The entity type to get the color for
323- * @param layer The texture layer to get a color for
308+ * @param layer The texture layer to get a color for
324309 * @return The color of the layer for the entity's spawn egg
325310 */
326311 @ Nullable org .bukkit .Color getSpawnEggLayerColor (org .bukkit .entity .EntityType entityType , int layer );
327312 // Paper end - spawn egg color visibility
328313
329314 // Paper start - lifecycle event API
330-
331315 /**
332316 * @hidden
333317 */
0 commit comments