13
0
geforkt von Mirrors/Paper

#1500: Rename implementation for Vault State methods

By: Doc <nachito94@msn.com>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2024-10-29 06:43:27 +11:00
Ursprung af6f2c9b41
Commit 2960bff05e
2 geänderte Dateien mit 24 neuen und 4 gelöschten Zeilen

Datei anzeigen

@ -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);

Datei anzeigen

@ -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);