diff --git a/paper-api/src/main/java/org/bukkit/block/data/Levelled.java b/paper-api/src/main/java/org/bukkit/block/data/Levelled.java index 5255538fec..860f072dee 100644 --- a/paper-api/src/main/java/org/bukkit/block/data/Levelled.java +++ b/paper-api/src/main/java/org/bukkit/block/data/Levelled.java @@ -36,4 +36,13 @@ public interface Levelled extends BlockData { * @return the maximum 'level' value */ int getMaximumLevel(); + + // Paper start + /** + * Gets the minimum allowed value of the 'level' property. + * + * @return the minimum 'level' value + */ + int getMinimumLevel(); + // Paper end } diff --git a/paper-api/src/main/java/org/bukkit/block/data/type/Bed.java b/paper-api/src/main/java/org/bukkit/block/data/type/Bed.java index ed519bfebe..6e7a456dc5 100644 --- a/paper-api/src/main/java/org/bukkit/block/data/type/Bed.java +++ b/paper-api/src/main/java/org/bukkit/block/data/type/Bed.java @@ -35,6 +35,15 @@ public interface Bed extends Directional { */ boolean isOccupied(); + // Paper start + /** + * Sets the value of the 'occupied' property. + * + * @param occupied the new 'occupied' value + */ + void setOccupied(boolean occupied); + // Paper end + /** * Horizontal half of a bed. */ diff --git a/paper-api/src/main/java/org/bukkit/block/data/type/Candle.java b/paper-api/src/main/java/org/bukkit/block/data/type/Candle.java index d4d08bd424..7baccce27f 100644 --- a/paper-api/src/main/java/org/bukkit/block/data/type/Candle.java +++ b/paper-api/src/main/java/org/bukkit/block/data/type/Candle.java @@ -28,4 +28,13 @@ public interface Candle extends Lightable, Waterlogged { * @return the maximum 'candles' value */ int getMaximumCandles(); + + // Paper start + /** + * Gets the minimum allowed value of the 'candles' property. + * + * @return the minimum 'candles' value + */ + int getMinimumCandles(); + // Paper end } diff --git a/paper-api/src/main/java/org/bukkit/block/data/type/DecoratedPot.java b/paper-api/src/main/java/org/bukkit/block/data/type/DecoratedPot.java index eb0ffa9774..b3d290dbfd 100644 --- a/paper-api/src/main/java/org/bukkit/block/data/type/DecoratedPot.java +++ b/paper-api/src/main/java/org/bukkit/block/data/type/DecoratedPot.java @@ -4,4 +4,17 @@ import org.bukkit.block.data.Directional; import org.bukkit.block.data.Waterlogged; public interface DecoratedPot extends Directional, Waterlogged { + // Paper start - add missing block data api + /** + * @return whether the pot is cracked + */ + public boolean isCracked(); + + /** + * Set whether the pot is cracked. + * + * @param cracked whether the pot is cracked + */ + public void setCracked(boolean cracked); + // Paper end - add missing block data api } diff --git a/paper-api/src/main/java/org/bukkit/block/data/type/Leaves.java b/paper-api/src/main/java/org/bukkit/block/data/type/Leaves.java index 3ea21dfad2..cd013a7c42 100644 --- a/paper-api/src/main/java/org/bukkit/block/data/type/Leaves.java +++ b/paper-api/src/main/java/org/bukkit/block/data/type/Leaves.java @@ -39,4 +39,20 @@ public interface Leaves extends Waterlogged { * @param distance the new 'distance' value */ void setDistance(int distance); + + // Paper start + /** + * Gets the maximum allowed value of the 'distance' property. + * + * @return the maximum 'distance' value + */ + int getMaximumDistance(); + + /** + * Gets the minimum allowed value of the 'distance' property. + * + * @return the minimum 'distance' value + */ + int getMinimumDistance(); + // Paper end } diff --git a/paper-api/src/main/java/org/bukkit/block/data/type/PinkPetals.java b/paper-api/src/main/java/org/bukkit/block/data/type/PinkPetals.java index a84b36f758..eae9c9cdd0 100644 --- a/paper-api/src/main/java/org/bukkit/block/data/type/PinkPetals.java +++ b/paper-api/src/main/java/org/bukkit/block/data/type/PinkPetals.java @@ -21,6 +21,15 @@ public interface PinkPetals extends Directional { */ void setFlowerAmount(int flower_amount); + // Paper start + /** + * Gets the minimum allowed value of the 'flower_amount' property. + * + * @return the minimum 'flower_amount' value + */ + int getMinimumFlowerAmount(); + // Paper end + /** * Gets the maximum allowed value of the 'flower_amount' property. *