Update to Minecraft 1.21.4

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot
2024-12-04 03:20:00 +11:00
parent f722ad8301
commit 88499aa05b
25 changed files with 269 additions and 243 deletions

View File

@@ -1,48 +1,41 @@
package org.bukkit.block.data.type;
import org.bukkit.MinecraftExperimental;
import org.bukkit.block.data.Orientable;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;
/**
* 'creaking' is the creaking status of this block.
* 'active' is whether the block is active.
* <br>
* 'natural' is whether this is a naturally generated block.
*/
@ApiStatus.Experimental
@MinecraftExperimental(MinecraftExperimental.Requires.WINTER_DROP)
public interface CreakingHeart extends Orientable {
/**
* Gets the value of the 'creaking' property.
* Gets the value of the 'active' property.
*
* @return the 'creaking' value
* @return the 'active' value
*/
@NotNull
Creaking getCreaking();
boolean isActive();
/**
* Sets the value of the 'creaking' property.
* Sets the value of the 'active' property.
*
* @param creaking the new 'creaking' value
* @param active the new 'active' value
*/
void setCreaking(@NotNull Creaking creaking);
void setActive(boolean active);
/**
* Creaking status.
* Gets the value of the 'natural' property.
*
* @return the 'natural' value
*/
public enum Creaking {
boolean isNatural();
/**
* The block is disabled.
*/
DISABLED,
/**
* The block is dormant.
*/
DORMANT,
/**
* The block is active.
*/
ACTIVE;
}
/**
* Sets the value of the 'natural' property.
*
* @param natural the new 'natural' value
*/
void setNatural(boolean natural);
}

View File

@@ -1,6 +1,5 @@
package org.bukkit.block.data.type;
import org.bukkit.MinecraftExperimental;
import org.bukkit.block.data.BlockData;
import org.jetbrains.annotations.ApiStatus;
@@ -8,7 +7,6 @@ import org.jetbrains.annotations.ApiStatus;
* 'tip' indicates whether this block is a tip.
*/
@ApiStatus.Experimental
@MinecraftExperimental(MinecraftExperimental.Requires.WINTER_DROP)
public interface HangingMoss extends BlockData {
/**

View File

@@ -1,6 +1,5 @@
package org.bukkit.block.data.type;
import org.bukkit.MinecraftExperimental;
import org.bukkit.block.BlockFace;
import org.bukkit.block.data.BlockData;
import org.jetbrains.annotations.ApiStatus;
@@ -13,7 +12,6 @@ import org.jetbrains.annotations.NotNull;
* 'bottom' denotes whether this is a bottom block.
*/
@ApiStatus.Experimental
@MinecraftExperimental(MinecraftExperimental.Requires.WINTER_DROP)
public interface MossyCarpet extends BlockData {
/**

View File

@@ -0,0 +1,7 @@
package org.bukkit.block.data.type;
import org.bukkit.block.data.MultipleFacing;
import org.bukkit.block.data.Waterlogged;
public interface ResinClump extends MultipleFacing, Waterlogged {
}