mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-19 21:48:48 +01:00
SPIGOT-4778: Bell Attachment is missing
By: md_5 <git@md-5.net>
This commit is contained in:
parent
3eda70afc8
commit
fb196561cb
2 changed files with 33 additions and 0 deletions
|
@ -0,0 +1,19 @@
|
||||||
|
package org.bukkit.craftbukkit.block.data.type;
|
||||||
|
|
||||||
|
import org.bukkit.block.data.type.Bell;
|
||||||
|
import org.bukkit.craftbukkit.block.data.CraftBlockData;
|
||||||
|
|
||||||
|
public abstract class CraftBell extends CraftBlockData implements Bell {
|
||||||
|
|
||||||
|
private static final net.minecraft.server.BlockStateEnum<?> ATTACHMENT = getEnum("attachment");
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Attachment getAttachment() {
|
||||||
|
return get(ATTACHMENT, Attachment.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setAttachment(Attachment leaves) {
|
||||||
|
set(ATTACHMENT, leaves);
|
||||||
|
}
|
||||||
|
}
|
|
@ -13,6 +13,20 @@ public final class CraftBell extends org.bukkit.craftbukkit.block.data.CraftBloc
|
||||||
super(state);
|
super(state);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// org.bukkit.craftbukkit.block.data.type.CraftBell
|
||||||
|
|
||||||
|
private static final net.minecraft.server.BlockStateEnum<?> ATTACHMENT = getEnum(net.minecraft.server.BlockBell.class, "attachment");
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Attachment getAttachment() {
|
||||||
|
return get(ATTACHMENT, Attachment.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setAttachment(Attachment leaves) {
|
||||||
|
set(ATTACHMENT, leaves);
|
||||||
|
}
|
||||||
|
|
||||||
// org.bukkit.craftbukkit.block.data.CraftDirectional
|
// org.bukkit.craftbukkit.block.data.CraftDirectional
|
||||||
|
|
||||||
private static final net.minecraft.server.BlockStateEnum<?> FACING = getEnum(net.minecraft.server.BlockBell.class, "facing");
|
private static final net.minecraft.server.BlockStateEnum<?> FACING = getEnum(net.minecraft.server.BlockBell.class, "facing");
|
||||||
|
|
Loading…
Add table
Reference in a new issue