接口 Vault

所有超级接口:
BlockData, Cloneable, Directional

public interface Vault extends Directional
'vault_state' indicates the current operational phase of the vault block.
'ominous' indicates if the block has ominous effects.
  • 方法详细资料

    • getVaultState

      @NotNull @NotNull Vault.State getVaultState()
      Gets the value of the 'vault_state' property.
      返回:
      the 'vault_state' value
    • getTrialSpawnerState

      @Deprecated(since="1.21.3", forRemoval=true) @NotNull @NotNull Vault.State getTrialSpawnerState()
      已过时, 待删除: 此 API 元素将从以后的版本中删除。
      Gets the value of the 'vault_state' property.
      返回:
      the 'vault_state' value
    • setVaultState

      void setVaultState(@NotNull @NotNull Vault.State state)
      Sets the value of the 'vault_state' property.
      参数:
      state - the new 'vault_state' value
    • setTrialSpawnerState

      @Deprecated(since="1.21.3", forRemoval=true) void setTrialSpawnerState(@NotNull @NotNull Vault.State state)
      已过时, 待删除: 此 API 元素将从以后的版本中删除。
      Sets the value of the 'vault_state' property.
      参数:
      state - the new 'vault_state' value
    • isOminous

      boolean isOminous()
      Gets the value of the 'ominous' property.
      返回:
      the 'ominous' value
    • setOminous

      void setOminous(boolean ominous)
      Sets the value of the 'ominous' property.
      参数:
      ominous - the new 'ominous' value