@@ -7,6 +7,8 @@ import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* 'trial_spawner_state' indicates the current operational phase of the spawner.
|
||||
* <br>
|
||||
* 'ominous' indicates if the block has ominous effects.
|
||||
*/
|
||||
@MinecraftExperimental
|
||||
@ApiStatus.Experimental
|
||||
@@ -27,6 +29,20 @@ public interface TrialSpawner extends BlockData {
|
||||
*/
|
||||
void setTrialSpawnerState(@NotNull State state);
|
||||
|
||||
/**
|
||||
* Gets the value of the 'ominous' property.
|
||||
*
|
||||
* @return the 'ominous' value
|
||||
*/
|
||||
boolean isOminous();
|
||||
|
||||
/**
|
||||
* Sets the value of the 'ominous' property.
|
||||
*
|
||||
* @param ominous the new 'ominous' value
|
||||
*/
|
||||
void setOminous(boolean ominous);
|
||||
|
||||
public enum State {
|
||||
|
||||
INACTIVE,
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
package org.bukkit.block.data.type;
|
||||
|
||||
import org.bukkit.MinecraftExperimental;
|
||||
import org.bukkit.block.data.Directional;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* 'vault_state' indicates the current operational phase of the vault block.
|
||||
* <br>
|
||||
* 'ominous' indicates if the block has ominous effects.
|
||||
*/
|
||||
@MinecraftExperimental
|
||||
@ApiStatus.Experimental
|
||||
public interface Vault extends Directional {
|
||||
|
||||
/**
|
||||
* Gets the value of the 'vault_state' property.
|
||||
*
|
||||
* @return the 'vault_state' value
|
||||
*/
|
||||
@NotNull
|
||||
State getTrialSpawnerState();
|
||||
|
||||
/**
|
||||
* Sets the value of the 'vault_state' property.
|
||||
*
|
||||
* @param state the new 'vault_state' value
|
||||
*/
|
||||
void setTrialSpawnerState(@NotNull State state);
|
||||
|
||||
/**
|
||||
* Gets the value of the 'ominous' property.
|
||||
*
|
||||
* @return the 'ominous' value
|
||||
*/
|
||||
boolean isOminous();
|
||||
|
||||
/**
|
||||
* Sets the value of the 'ominous' property.
|
||||
*
|
||||
* @param ominous the new 'ominous' value
|
||||
*/
|
||||
void setOminous(boolean ominous);
|
||||
|
||||
public enum State {
|
||||
|
||||
INACTIVE,
|
||||
ACTIVE,
|
||||
UNLOCKING,
|
||||
EJECTING
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user