diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/block/impl/CraftBed.java b/paper-server/src/main/java/org/bukkit/craftbukkit/block/impl/CraftBed.java index 2ccf3fbe3f..e5450d3511 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/block/impl/CraftBed.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/block/impl/CraftBed.java @@ -51,4 +51,11 @@ public final class CraftBed extends org.bukkit.craftbukkit.block.data.CraftBlock public java.util.Set getFaces() { return this.getValues(CraftBed.FACING, org.bukkit.block.BlockFace.class); } + + // Paper start + @Override + public void setOccupied(boolean occupied) { + set(CraftBed.OCCUPIED, occupied); + } + // Paper end } diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/block/impl/CraftCandle.java b/paper-server/src/main/java/org/bukkit/craftbukkit/block/impl/CraftCandle.java index 2230160d5e..08436bfeba 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/block/impl/CraftCandle.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/block/impl/CraftCandle.java @@ -31,6 +31,12 @@ public final class CraftCandle extends org.bukkit.craftbukkit.block.data.CraftBl public int getMaximumCandles() { return getMax(CraftCandle.CANDLES); } + // Paper start + @Override + public int getMinimumCandles() { + return getMin(CraftCandle.CANDLES); + } + // Paper end // org.bukkit.craftbukkit.block.data.CraftLightable diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/block/impl/CraftComposter.java b/paper-server/src/main/java/org/bukkit/craftbukkit/block/impl/CraftComposter.java index 7ce2e8b733..5ae27fc8f9 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/block/impl/CraftComposter.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/block/impl/CraftComposter.java @@ -31,4 +31,11 @@ public final class CraftComposter extends org.bukkit.craftbukkit.block.data.Craf public int getMaximumLevel() { return getMax(CraftComposter.LEVEL); } + + // Paper start + @Override + public int getMinimumLevel() { + return getMin(CraftComposter.LEVEL); + } + // Paper end } diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/block/impl/CraftDecoratedPot.java b/paper-server/src/main/java/org/bukkit/craftbukkit/block/impl/CraftDecoratedPot.java index 356230b9b2..b7ea9a6fba 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/block/impl/CraftDecoratedPot.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/block/impl/CraftDecoratedPot.java @@ -45,4 +45,18 @@ public final class CraftDecoratedPot extends org.bukkit.craftbukkit.block.data.C public void setWaterlogged(boolean waterlogged) { this.set(CraftDecoratedPot.WATERLOGGED, waterlogged); } + + // Paper start - add missing block data api + private static final net.minecraft.world.level.block.state.properties.BooleanProperty CRACKED = getBoolean(net.minecraft.world.level.block.DecoratedPotBlock.class, "cracked"); + + @Override + public boolean isCracked() { + return this.get(CraftDecoratedPot.CRACKED); + } + + @Override + public void setCracked(final boolean cracked) { + this.set(CraftDecoratedPot.CRACKED, cracked); + } + // Paper end - add missing block data api } diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/block/impl/CraftFluids.java b/paper-server/src/main/java/org/bukkit/craftbukkit/block/impl/CraftFluids.java index 70d734fc71..1af5fe48c5 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/block/impl/CraftFluids.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/block/impl/CraftFluids.java @@ -31,4 +31,11 @@ public final class CraftFluids extends org.bukkit.craftbukkit.block.data.CraftBl public int getMaximumLevel() { return getMax(CraftFluids.LEVEL); } + + // Paper start + @Override + public int getMinimumLevel() { + return getMin(CraftFluids.LEVEL); + } + // Paper end } diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/block/impl/CraftLayeredCauldron.java b/paper-server/src/main/java/org/bukkit/craftbukkit/block/impl/CraftLayeredCauldron.java index bf0d53f65f..c0e0cbceb0 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/block/impl/CraftLayeredCauldron.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/block/impl/CraftLayeredCauldron.java @@ -31,4 +31,11 @@ public final class CraftLayeredCauldron extends org.bukkit.craftbukkit.block.dat public int getMaximumLevel() { return getMax(CraftLayeredCauldron.LEVEL); } + + // Paper start + @Override + public int getMinimumLevel() { + return getMin(CraftLayeredCauldron.LEVEL); + } + // Paper end } diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/block/impl/CraftLeaves.java b/paper-server/src/main/java/org/bukkit/craftbukkit/block/impl/CraftLeaves.java index 33d9a950ed..ab336b400c 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/block/impl/CraftLeaves.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/block/impl/CraftLeaves.java @@ -51,4 +51,16 @@ public final class CraftLeaves extends org.bukkit.craftbukkit.block.data.CraftBl public void setWaterlogged(boolean waterlogged) { this.set(CraftLeaves.WATERLOGGED, waterlogged); } + + // Paper start + @Override + public int getMaximumDistance() { + return getMax(CraftLeaves.DISTANCE); + } + + @Override + public int getMinimumDistance() { + return getMin(CraftLeaves.DISTANCE); + } + // Paper end } diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/block/impl/CraftLight.java b/paper-server/src/main/java/org/bukkit/craftbukkit/block/impl/CraftLight.java index 49f314b144..8c936a95ef 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/block/impl/CraftLight.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/block/impl/CraftLight.java @@ -32,6 +32,13 @@ public final class CraftLight extends org.bukkit.craftbukkit.block.data.CraftBlo return getMax(CraftLight.LEVEL); } + // Paper start + @Override + public int getMinimumLevel() { + return getMin(CraftLight.LEVEL); + } + // Paper end + // org.bukkit.craftbukkit.block.data.CraftWaterlogged private static final net.minecraft.world.level.block.state.properties.BooleanProperty WATERLOGGED = getBoolean(net.minecraft.world.level.block.LightBlock.class, "waterlogged"); diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/block/impl/CraftMangroveLeaves.java b/paper-server/src/main/java/org/bukkit/craftbukkit/block/impl/CraftMangroveLeaves.java index 7a1f2fd2f7..8b621aaead 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/block/impl/CraftMangroveLeaves.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/block/impl/CraftMangroveLeaves.java @@ -51,4 +51,16 @@ public final class CraftMangroveLeaves extends org.bukkit.craftbukkit.block.data public void setWaterlogged(boolean waterlogged) { this.set(CraftMangroveLeaves.WATERLOGGED, waterlogged); } + + // Paper start + @Override + public int getMinimumDistance() { + return getMin(CraftMangroveLeaves.DISTANCE); + } + + @Override + public int getMaximumDistance() { + return getMax(CraftMangroveLeaves.DISTANCE); + } + // Paper end } diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/block/impl/CraftParticleLeaves.java b/paper-server/src/main/java/org/bukkit/craftbukkit/block/impl/CraftParticleLeaves.java index db4849a35d..e37e84c333 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/block/impl/CraftParticleLeaves.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/block/impl/CraftParticleLeaves.java @@ -51,4 +51,16 @@ public final class CraftParticleLeaves extends org.bukkit.craftbukkit.block.data public void setWaterlogged(boolean waterlogged) { this.set(CraftParticleLeaves.WATERLOGGED, waterlogged); } + + // Paper start + @Override + public int getMaximumDistance() { + return getMax(DISTANCE); + } + + @Override + public int getMinimumDistance() { + return getMin(DISTANCE); + } + // Paper end } diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/block/impl/CraftPinkPetals.java b/paper-server/src/main/java/org/bukkit/craftbukkit/block/impl/CraftPinkPetals.java index 78b220a6f4..0f7df1b4c5 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/block/impl/CraftPinkPetals.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/block/impl/CraftPinkPetals.java @@ -27,6 +27,13 @@ public final class CraftPinkPetals extends org.bukkit.craftbukkit.block.data.Cra this.set(CraftPinkPetals.FLOWER_AMOUNT, flower_amount); } + // Paper start + @Override + public int getMinimumFlowerAmount() { + return getMin(CraftPinkPetals.FLOWER_AMOUNT); + } + // Paper end + @Override public int getMaximumFlowerAmount() { return getMax(CraftPinkPetals.FLOWER_AMOUNT);