Commits

md_5 authored 9691c7d131e
Add FaceAttachable interface to handle Grindstone facing in common with Switches
No tags

src/main/java/org/bukkit/craftbukkit/block/data/CraftFaceAttachable.java

Added
1 +package org.bukkit.craftbukkit.block.data;
2 +
3 +import org.bukkit.block.data.FaceAttachable;
4 +
5 +public abstract class CraftFaceAttachable extends CraftBlockData implements FaceAttachable {
6 +
7 + private static final net.minecraft.server.BlockStateEnum<?> ATTACH_FACE = getEnum("face");
8 +
9 + @Override
10 + public AttachFace getAttachFace() {
11 + return get(ATTACH_FACE, AttachFace.class);
12 + }
13 +
14 + @Override
15 + public void setAttachFace(AttachFace face) {
16 + set(ATTACH_FACE, face);
17 + }
18 +}

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut