Undo formatting

This commit is contained in:
Chaosdave34 2024-12-23 13:25:43 +01:00
parent 57b24f3cf6
commit a89eef24d8

View file

@ -33,22 +33,11 @@ import org.jetbrains.annotations.Nullable;
public interface UnsafeValues { public interface UnsafeValues {
// Paper start // Paper start
net.kyori.adventure.text.flattener.ComponentFlattener componentFlattener(); net.kyori.adventure.text.flattener.ComponentFlattener componentFlattener();
@Deprecated(forRemoval = true) net.kyori.adventure.text.serializer.plain.PlainComponentSerializer plainComponentSerializer();
@Deprecated(forRemoval = true) @Deprecated(forRemoval = true) net.kyori.adventure.text.serializer.plain.PlainTextComponentSerializer plainTextSerializer();
net.kyori.adventure.text.serializer.plain.PlainComponentSerializer plainComponentSerializer(); @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) @Deprecated(forRemoval = true) net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer legacyComponentSerializer();
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; 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 // Paper end
@ -136,7 +125,7 @@ public interface UnsafeValues {
@ApiStatus.Internal @ApiStatus.Internal
@Nullable @Nullable
@Deprecated// Paper @Deprecated // Paper
DamageEffect getDamageEffect(@NotNull String key); DamageEffect getDamageEffect(@NotNull String key);
/** /**
@ -169,7 +158,6 @@ public interface UnsafeValues {
// Paper end // Paper end
// Paper start // Paper start
/** /**
* Called once by the version command on first use, then cached. * 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. * non-development purposes like plugin configurations or end-user input.
* *
* @return json object representing this item. * @return json object representing this item.
* @throws IllegalArgumentException if the passed itemstack is {@link ItemStack#empty()}.
* @see #deserializeItemFromJson(com.google.gson.JsonObject) * @see #deserializeItemFromJson(com.google.gson.JsonObject)
* @throws IllegalArgumentException if the passed itemstack is {@link ItemStack#empty()}.
*/ */
@NotNull @NotNull
com.google.gson.JsonObject serializeItemAsJson(@NotNull ItemStack itemStack); com.google.gson.JsonObject serializeItemAsJson(@NotNull ItemStack itemStack);
@ -276,7 +264,6 @@ public interface UnsafeValues {
// Paper end // Paper end
// Paper start - namespaced key biome methods // Paper start - namespaced key biome methods
/** /**
* Gets the {@link NamespacedKey} for the biome at the given location. * Gets the {@link NamespacedKey} for the biome at the given location.
* *
@ -284,8 +271,8 @@ public interface UnsafeValues {
* @param x X-coordinate of the block * @param x X-coordinate of the block
* @param y Y-coordinate of the block * @param y Y-coordinate of the block
* @param z Z-coordinate of the block * @param z Z-coordinate of the block
* @return the biome's {@link NamespacedKey}
* @deprecated custom biomes are properly supported in API now * @deprecated custom biomes are properly supported in API now
* @return the biome's {@link NamespacedKey}
*/ */
@org.jetbrains.annotations.NotNull @org.jetbrains.annotations.NotNull
@Deprecated(since = "1.21.3", forRemoval = true) @Deprecated(since = "1.21.3", forRemoval = true)
@ -302,8 +289,8 @@ public interface UnsafeValues {
* @param y Y-coordinate of the block * @param y Y-coordinate of the block
* @param z Z-coordinate of the block * @param z Z-coordinate of the block
* @param biomeKey Biome key * @param biomeKey Biome key
* @throws IllegalStateException if no biome by the given key is registered.
* @deprecated custom biomes are properly supported in API now * @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) @Deprecated(since = "1.21.3", forRemoval = true)
void setBiomeKey(RegionAccessor accessor, int x, int y, int z, NamespacedKey biomeKey); void setBiomeKey(RegionAccessor accessor, int x, int y, int z, NamespacedKey biomeKey);
@ -312,13 +299,11 @@ public interface UnsafeValues {
String getStatisticCriteriaKey(@NotNull org.bukkit.Statistic statistic); // Paper - fix custom stats criteria creation String getStatisticCriteriaKey(@NotNull org.bukkit.Statistic statistic); // Paper - fix custom stats criteria creation
// Paper start - spawn egg color visibility // Paper start - spawn egg color visibility
/** /**
* Obtains the underlying color informating for a spawn egg of a given * 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. * 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 * Spawn eggs have two colors - the background layer (0), and the
* foreground layer (1) * foreground layer (1)
*
* @param entityType The entity type to get the color for * @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 * @return The color of the layer for the entity's spawn egg
@ -327,7 +312,6 @@ public interface UnsafeValues {
// Paper end - spawn egg color visibility // Paper end - spawn egg color visibility
// Paper start - lifecycle event API // Paper start - lifecycle event API
/** /**
* @hidden * @hidden
*/ */