diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/block/data/type/CraftLantern.java b/paper-server/src/main/java/org/bukkit/craftbukkit/block/data/CraftHangable.java similarity index 57% rename from paper-server/src/main/java/org/bukkit/craftbukkit/block/data/type/CraftLantern.java rename to paper-server/src/main/java/org/bukkit/craftbukkit/block/data/CraftHangable.java index ab376d1e36..e65c044226 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/block/data/type/CraftLantern.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/block/data/CraftHangable.java @@ -1,9 +1,8 @@ -package org.bukkit.craftbukkit.block.data.type; +package org.bukkit.craftbukkit.block.data; -import org.bukkit.block.data.type.Lantern; -import org.bukkit.craftbukkit.block.data.CraftBlockData; +import org.bukkit.block.data.Hangable; -public abstract class CraftLantern extends CraftBlockData implements Lantern { +public abstract class CraftHangable extends CraftBlockData implements Hangable { private static final net.minecraft.world.level.block.state.properties.BlockStateBoolean HANGING = getBoolean("hanging"); diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/block/impl/CraftLantern.java b/paper-server/src/main/java/org/bukkit/craftbukkit/block/impl/CraftLantern.java index 19633e744c..a77d99db1e 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/block/impl/CraftLantern.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/block/impl/CraftLantern.java @@ -13,7 +13,7 @@ public final class CraftLantern extends org.bukkit.craftbukkit.block.data.CraftB super(state); } - // org.bukkit.craftbukkit.block.data.type.CraftLantern + // org.bukkit.craftbukkit.block.data.CraftHangable private static final net.minecraft.world.level.block.state.properties.BlockStateBoolean HANGING = getBoolean(net.minecraft.world.level.block.BlockLantern.class, "hanging"); diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/block/impl/CraftMangrovePropagule.java b/paper-server/src/main/java/org/bukkit/craftbukkit/block/impl/CraftMangrovePropagule.java index 47ffc7c966..1d7671ec25 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/block/impl/CraftMangrovePropagule.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/block/impl/CraftMangrovePropagule.java @@ -3,7 +3,7 @@ */ package org.bukkit.craftbukkit.block.impl; -public final class CraftMangrovePropagule extends org.bukkit.craftbukkit.block.data.CraftBlockData implements org.bukkit.block.data.type.MangrovePropagule, org.bukkit.block.data.Ageable, org.bukkit.block.data.type.Sapling, org.bukkit.block.data.Waterlogged { +public final class CraftMangrovePropagule extends org.bukkit.craftbukkit.block.data.CraftBlockData implements org.bukkit.block.data.type.MangrovePropagule, org.bukkit.block.data.Ageable, org.bukkit.block.data.Hangable, org.bukkit.block.data.type.Sapling, org.bukkit.block.data.Waterlogged { public CraftMangrovePropagule() { super(); @@ -32,6 +32,20 @@ public final class CraftMangrovePropagule extends org.bukkit.craftbukkit.block.d return getMax(AGE); } + // org.bukkit.craftbukkit.block.data.CraftHangable + + private static final net.minecraft.world.level.block.state.properties.BlockStateBoolean HANGING = getBoolean(net.minecraft.world.level.block.MangrovePropaguleBlock.class, "hanging"); + + @Override + public boolean isHanging() { + return get(HANGING); + } + + @Override + public void setHanging(boolean hanging) { + set(HANGING, hanging); + } + // org.bukkit.craftbukkit.block.data.type.CraftSapling private static final net.minecraft.world.level.block.state.properties.BlockStateInteger STAGE = getInteger(net.minecraft.world.level.block.MangrovePropaguleBlock.class, "stage");