From 4243e6b666144a426ca6bf2d0973634e5f991c77 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot <noreply+git-bukkit@papermc.io> Date: Tue, 29 Oct 2024 06:43:24 +1100 Subject: [PATCH] #1072: Fix bad naming for Vault State methods By: Doc <nachito94@msn.com> --- .../org/bukkit/block/data/type/Vault.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/block/data/type/Vault.java b/paper-api/src/main/java/org/bukkit/block/data/type/Vault.java index 87e46dfb95..0ffa92a4a5 100644 --- a/paper-api/src/main/java/org/bukkit/block/data/type/Vault.java +++ b/paper-api/src/main/java/org/bukkit/block/data/type/Vault.java @@ -16,6 +16,16 @@ public interface Vault extends Directional { * @return the 'vault_state' value */ @NotNull + State getVaultState(); + + /** + * Gets the value of the 'vault_state' property. + * + * @return the 'vault_state' value + * @deprecated see {@link #getVaultState()} + */ + @Deprecated(forRemoval = true) + @NotNull State getTrialSpawnerState(); /** @@ -23,6 +33,15 @@ public interface Vault extends Directional { * * @param state the new 'vault_state' value */ + void setVaultState(@NotNull State state); + + /** + * Sets the value of the 'vault_state' property. + * + * @param state the new 'vault_state' value + * @deprecated see {@link #setVaultState(State)} + */ + @Deprecated(forRemoval = true) void setTrialSpawnerState(@NotNull State state); /**