From 1c0c52ae4faef8fa3261a9ad0a37cdb39a663237 Mon Sep 17 00:00:00 2001 From: Julian van den Berkmortel Date: Wed, 28 Apr 2021 11:52:04 +1000 Subject: [PATCH] SPIGOT-6373: Add getAttachedFace and setAttachedFace to the Shulker API --- src/main/java/org/bukkit/entity/Shulker.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/main/java/org/bukkit/entity/Shulker.java b/src/main/java/org/bukkit/entity/Shulker.java index 274d6131..010e1f9c 100644 --- a/src/main/java/org/bukkit/entity/Shulker.java +++ b/src/main/java/org/bukkit/entity/Shulker.java @@ -1,6 +1,8 @@ package org.bukkit.entity; +import org.bukkit.block.BlockFace; import org.bukkit.material.Colorable; +import org.jetbrains.annotations.NotNull; public interface Shulker extends Golem, Colorable { @@ -19,4 +21,19 @@ public interface Shulker extends Golem, Colorable { * range in between of 0.0 and 1.0 */ public void setPeek(float value); + + /** + * Gets the face to which the shulker is attached. + * + * @return the face to which the shulker is attached + */ + @NotNull + public BlockFace getAttachedFace(); + + /** + * Sets the face to which the shulker is attached. + * + * @param face the face to attach the shulker to + */ + public void setAttachedFace(@NotNull BlockFace face); }