Update to Minecraft 1.21.2

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot
2024-10-23 02:15:00 +11:00
parent 68de2de253
commit cd27f1b0c7
62 changed files with 1914 additions and 156 deletions

View File

@@ -0,0 +1,48 @@
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.
*/
@ApiStatus.Experimental
@MinecraftExperimental(MinecraftExperimental.Requires.WINTER_DROP)
public interface CreakingHeart extends Orientable {
/**
* Gets the value of the 'creaking' property.
*
* @return the 'creaking' value
*/
@NotNull
Creaking getCreaking();
/**
* Sets the value of the 'creaking' property.
*
* @param creaking the new 'creaking' value
*/
void setCreaking(@NotNull Creaking creaking);
/**
* Creaking status.
*/
public enum Creaking {
/**
* The block is disabled.
*/
DISABLED,
/**
* The block is dormant.
*/
DORMANT,
/**
* The block is active.
*/
ACTIVE;
}
}

View File

@@ -0,0 +1,27 @@
package org.bukkit.block.data.type;
import org.bukkit.MinecraftExperimental;
import org.bukkit.block.data.BlockData;
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 {
/**
* Gets the value of the 'tip' property.
*
* @return the 'tip' value
*/
boolean isTip();
/**
* Sets the value of the 'tip' property.
*
* @param tip the new 'tip' value
*/
void setTip(boolean tip);
}

View File

@@ -0,0 +1,67 @@
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;
import org.jetbrains.annotations.NotNull;
/**
* This class encompasses the 'north', 'east', 'south', 'west', height flags
* which are used to set the height of a face.
*
* 'bottom' denotes whether this is a bottom block.
*/
@ApiStatus.Experimental
@MinecraftExperimental(MinecraftExperimental.Requires.WINTER_DROP)
public interface MossyCarpet extends BlockData {
/**
* Gets the value of the 'bottom' property.
*
* @return the 'bottom' value
*/
boolean isBottom();
/**
* Sets the value of the 'bottom' property.
*
* @param bottom the new 'bottom' value
*/
void setBottom(boolean bottom);
/**
* Gets the height of the specified face.
*
* @param face to check
* @return if face is enabled
*/
@NotNull
Height getHeight(@NotNull BlockFace face);
/**
* Set the height of the specified face.
*
* @param face to set
* @param height the height
*/
void setHeight(@NotNull BlockFace face, @NotNull Height height);
/**
* The different heights a face may have.
*/
public enum Height {
/**
* Not present.
*/
NONE,
/**
* Low face present.
*/
LOW,
/**
* Tall face present.
*/
TALL;
}
}