13
0
geforkt von Mirrors/Paper

#1068: Add Hangable interface to MangrovePropagule

By: chickeneer <emcchickeneer@gmail.com>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2022-06-12 18:19:01 +10:00
Ursprung 52f9281656
Commit df3ad38359
3 geänderte Dateien mit 19 neuen und 6 gelöschten Zeilen

Datei anzeigen

@ -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");

Datei anzeigen

@ -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");

Datei anzeigen

@ -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");