mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 07:20:24 +01:00
Undo formatting
This commit is contained in:
parent
57b24f3cf6
commit
a89eef24d8
1 changed files with 18 additions and 34 deletions
|
@ -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
|
||||||
|
|
||||||
|
@ -84,7 +73,7 @@ public interface UnsafeValues {
|
||||||
* <br>
|
* <br>
|
||||||
* Callers should be prepared for {@link Exception} to be thrown.
|
* 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
|
* @param advancement representation of the advancement
|
||||||
* @return the loaded advancement or null if an error occurred
|
* @return the loaded advancement or null if an error occurred
|
||||||
*/
|
*/
|
||||||
|
@ -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);
|
||||||
|
@ -243,7 +231,7 @@ public interface UnsafeValues {
|
||||||
* Returns false if either argument's type is not an item ({@link Material#isItem()}).
|
* Returns false if either argument's type is not an item ({@link Material#isItem()}).
|
||||||
*
|
*
|
||||||
* @param itemToBeRepaired the itemstack to be repaired
|
* @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
|
* @return true if valid repair, false if not
|
||||||
*/
|
*/
|
||||||
public boolean isValidRepairItemStack(@org.jetbrains.annotations.NotNull ItemStack itemToBeRepaired, @org.jetbrains.annotations.NotNull ItemStack repairMaterial);
|
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 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.
|
||||||
*
|
*
|
||||||
* @param accessor The {@link RegionAccessor} of the provided coordinates
|
* @param accessor The {@link RegionAccessor} of the provided coordinates
|
||||||
* @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)
|
||||||
|
@ -298,12 +285,12 @@ public interface UnsafeValues {
|
||||||
* will be thrown.
|
* will be thrown.
|
||||||
*
|
*
|
||||||
* @param accessor The {@link RegionAccessor} of the provided coordinates
|
* @param accessor The {@link RegionAccessor} of the provided coordinates
|
||||||
* @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
|
||||||
* @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,22 +299,19 @@ 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
|
||||||
*/
|
*/
|
||||||
@Nullable org.bukkit.Color getSpawnEggLayerColor(org.bukkit.entity.EntityType entityType, int layer);
|
@Nullable org.bukkit.Color getSpawnEggLayerColor(org.bukkit.entity.EntityType entityType, int layer);
|
||||||
// Paper end - spawn egg color visibility
|
// Paper end - spawn egg color visibility
|
||||||
|
|
||||||
// Paper start - lifecycle event API
|
// Paper start - lifecycle event API
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @hidden
|
* @hidden
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue