geforkt von Mirrors/Paper
#1068: Add Hangable interface to MangrovePropagule
By: chickeneer <emcchickeneer@gmail.com>
Dieser Commit ist enthalten in:
Ursprung
52f9281656
Commit
df3ad38359
@ -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");
|
||||
|
@ -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");
|
||||
|
||||
|
@ -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");
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren