From a89eef24d8f4b105680409f78241783866cf44ea Mon Sep 17 00:00:00 2001 From: Chaosdave34 Date: Mon, 23 Dec 2024 13:25:43 +0100 Subject: [PATCH] Undo formatting --- .../main/java/org/bukkit/UnsafeValues.java | 52 +++++++------------ 1 file changed, 18 insertions(+), 34 deletions(-) diff --git a/paper-api/src/main/java/org/bukkit/UnsafeValues.java b/paper-api/src/main/java/org/bukkit/UnsafeValues.java index 24549ccf57..660ef14e0a 100644 --- a/paper-api/src/main/java/org/bukkit/UnsafeValues.java +++ b/paper-api/src/main/java/org/bukkit/UnsafeValues.java @@ -33,22 +33,11 @@ import org.jetbrains.annotations.Nullable; public interface UnsafeValues { // Paper start net.kyori.adventure.text.flattener.ComponentFlattener componentFlattener(); - - @Deprecated(forRemoval = true) - net.kyori.adventure.text.serializer.plain.PlainComponentSerializer plainComponentSerializer(); - - @Deprecated(forRemoval = true) - net.kyori.adventure.text.serializer.plain.PlainTextComponentSerializer plainTextSerializer(); - - @Deprecated(forRemoval = true) - net.kyori.adventure.text.serializer.gson.GsonComponentSerializer gsonComponentSerializer(); - - @Deprecated(forRemoval = true) - net.kyori.adventure.text.serializer.gson.GsonComponentSerializer colorDownsamplingGsonComponentSerializer(); - - @Deprecated(forRemoval = true) - net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer legacyComponentSerializer(); - + @Deprecated(forRemoval = true) net.kyori.adventure.text.serializer.plain.PlainComponentSerializer plainComponentSerializer(); + @Deprecated(forRemoval = true) net.kyori.adventure.text.serializer.plain.PlainTextComponentSerializer plainTextSerializer(); + @Deprecated(forRemoval = true) net.kyori.adventure.text.serializer.gson.GsonComponentSerializer gsonComponentSerializer(); + @Deprecated(forRemoval = true) net.kyori.adventure.text.serializer.gson.GsonComponentSerializer colorDownsamplingGsonComponentSerializer(); + @Deprecated(forRemoval = true) net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer legacyComponentSerializer(); 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; // Paper end @@ -84,7 +73,7 @@ public interface UnsafeValues { *
* Callers should be prepared for {@link Exception} to be thrown. * - * @param key the unique advancement key + * @param key the unique advancement key * @param advancement representation of the advancement * @return the loaded advancement or null if an error occurred */ @@ -136,7 +125,7 @@ public interface UnsafeValues { @ApiStatus.Internal @Nullable - @Deprecated// Paper + @Deprecated // Paper DamageEffect getDamageEffect(@NotNull String key); /** @@ -169,7 +158,6 @@ public interface UnsafeValues { // Paper end // Paper start - /** * Called once by the version command on first use, then cached. */ @@ -190,8 +178,8 @@ public interface UnsafeValues { * non-development purposes like plugin configurations or end-user input. * * @return json object representing this item. - * @throws IllegalArgumentException if the passed itemstack is {@link ItemStack#empty()}. * @see #deserializeItemFromJson(com.google.gson.JsonObject) + * @throws IllegalArgumentException if the passed itemstack is {@link ItemStack#empty()}. */ @NotNull com.google.gson.JsonObject serializeItemAsJson(@NotNull ItemStack itemStack); @@ -243,7 +231,7 @@ public interface UnsafeValues { * Returns false if either argument's type is not an item ({@link Material#isItem()}). * * @param itemToBeRepaired the itemstack to be repaired - * @param repairMaterial the repair material + * @param repairMaterial the repair material * @return true if valid repair, false if not */ public boolean isValidRepairItemStack(@org.jetbrains.annotations.NotNull ItemStack itemToBeRepaired, @org.jetbrains.annotations.NotNull ItemStack repairMaterial); @@ -276,16 +264,15 @@ public interface UnsafeValues { // Paper end // Paper start - namespaced key biome methods - /** * Gets the {@link NamespacedKey} for the biome at the given location. * * @param accessor The {@link RegionAccessor} of the provided coordinates - * @param x X-coordinate of the block - * @param y Y-coordinate of the block - * @param z Z-coordinate of the block - * @return the biome's {@link NamespacedKey} + * @param x X-coordinate of the block + * @param y Y-coordinate of the block + * @param z Z-coordinate of the block * @deprecated custom biomes are properly supported in API now + * @return the biome's {@link NamespacedKey} */ @org.jetbrains.annotations.NotNull @Deprecated(since = "1.21.3", forRemoval = true) @@ -298,12 +285,12 @@ public interface UnsafeValues { * will be thrown. * * @param accessor The {@link RegionAccessor} of the provided coordinates - * @param x X-coordinate of the block - * @param y Y-coordinate of the block - * @param z Z-coordinate of the block + * @param x X-coordinate of the block + * @param y Y-coordinate of the block + * @param z Z-coordinate of the block * @param biomeKey Biome key - * @throws IllegalStateException if no biome by the given key is registered. * @deprecated custom biomes are properly supported in API now + * @throws IllegalStateException if no biome by the given key is registered. */ @Deprecated(since = "1.21.3", forRemoval = true) void setBiomeKey(RegionAccessor accessor, int x, int y, int z, NamespacedKey biomeKey); @@ -312,22 +299,19 @@ public interface UnsafeValues { String getStatisticCriteriaKey(@NotNull org.bukkit.Statistic statistic); // Paper - fix custom stats criteria creation // Paper start - spawn egg color visibility - /** * Obtains the underlying color informating for a spawn egg of a given * entity type, or null if the entity passed does not have a spawn egg. * Spawn eggs have two colors - the background layer (0), and the * foreground layer (1) - * * @param entityType The entity type to get the color for - * @param layer The texture layer to get a color for + * @param layer The texture layer to get a color for * @return The color of the layer for the entity's spawn egg */ @Nullable org.bukkit.Color getSpawnEggLayerColor(org.bukkit.entity.EntityType entityType, int layer); // Paper end - spawn egg color visibility // Paper start - lifecycle event API - /** * @hidden */