#1500: Rename implementation for Vault State methods

This commit is contained in:
Doc 2024-10-29 06:43:27 +11:00 committed by md_5
parent 75f26f79fa
commit 6029040030
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11
2 changed files with 24 additions and 4 deletions

View File

@ -9,15 +9,25 @@ public abstract class CraftVault extends CraftBlockData implements Vault {
private static final net.minecraft.world.level.block.state.properties.BlockStateBoolean OMINOUS = getBoolean("ominous"); private static final net.minecraft.world.level.block.state.properties.BlockStateBoolean OMINOUS = getBoolean("ominous");
@Override @Override
public org.bukkit.block.data.type.Vault.State getTrialSpawnerState() { public org.bukkit.block.data.type.Vault.State getVaultState() {
return get(VAULT_STATE, org.bukkit.block.data.type.Vault.State.class); return get(VAULT_STATE, org.bukkit.block.data.type.Vault.State.class);
} }
@Override @Override
public void setTrialSpawnerState(org.bukkit.block.data.type.Vault.State state) { public org.bukkit.block.data.type.Vault.State getTrialSpawnerState() {
return getVaultState();
}
@Override
public void setVaultState(org.bukkit.block.data.type.Vault.State state) {
set(VAULT_STATE, state); set(VAULT_STATE, state);
} }
@Override
public void setTrialSpawnerState(org.bukkit.block.data.type.Vault.State state) {
setVaultState(state);
}
@Override @Override
public boolean isOminous() { public boolean isOminous() {
return get(OMINOUS); return get(OMINOUS);

View File

@ -19,15 +19,25 @@ public final class CraftVault extends org.bukkit.craftbukkit.block.data.CraftBlo
private static final net.minecraft.world.level.block.state.properties.BlockStateBoolean OMINOUS = getBoolean(net.minecraft.world.level.block.VaultBlock.class, "ominous"); private static final net.minecraft.world.level.block.state.properties.BlockStateBoolean OMINOUS = getBoolean(net.minecraft.world.level.block.VaultBlock.class, "ominous");
@Override @Override
public org.bukkit.block.data.type.Vault.State getTrialSpawnerState() { public org.bukkit.block.data.type.Vault.State getVaultState() {
return get(VAULT_STATE, org.bukkit.block.data.type.Vault.State.class); return get(VAULT_STATE, org.bukkit.block.data.type.Vault.State.class);
} }
@Override @Override
public void setTrialSpawnerState(org.bukkit.block.data.type.Vault.State state) { public org.bukkit.block.data.type.Vault.State getTrialSpawnerState() {
return getVaultState();
}
@Override
public void setVaultState(org.bukkit.block.data.type.Vault.State state) {
set(VAULT_STATE, state); set(VAULT_STATE, state);
} }
@Override
public void setTrialSpawnerState(org.bukkit.block.data.type.Vault.State state) {
setVaultState(state);
}
@Override @Override
public boolean isOminous() { public boolean isOminous() {
return get(OMINOUS); return get(OMINOUS);