Update to Minecraft 1.20.5

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot
2024-04-24 01:15:00 +10:00
parent 899f2acb84
commit f3502f6dac
54 changed files with 1814 additions and 741 deletions

View File

@@ -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,

View File

@@ -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
}
}