mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-19 14:51:27 +01:00
#1500: Rename implementation for Vault State methods
By: Doc <nachito94@msn.com>
This commit is contained in:
parent
af6f2c9b41
commit
2960bff05e
@ -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");
|
||||
|
||||
@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);
|
||||
}
|
||||
|
||||
@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);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setTrialSpawnerState(org.bukkit.block.data.type.Vault.State state) {
|
||||
setVaultState(state);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isOminous() {
|
||||
return get(OMINOUS);
|
||||
|
@ -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");
|
||||
|
||||
@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);
|
||||
}
|
||||
|
||||
@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);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setTrialSpawnerState(org.bukkit.block.data.type.Vault.State state) {
|
||||
setVaultState(state);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isOminous() {
|
||||
return get(OMINOUS);
|
||||
|
Loading…
Reference in New Issue
Block a user