From a0e79a0235928fb714e68461b9c65574335eb115 Mon Sep 17 00:00:00 2001 From: BuildTools <unconfigured@null.spigotmc.org> Date: Sun, 4 Apr 2021 20:16:38 +0200 Subject: [PATCH] Added Shulker Peek and AttachedFace Methods diff --git a/src/main/java/org/bukkit/entity/Shulker.java b/src/main/java/org/bukkit/entity/Shulker.java index 3441bdb7..47b51c2e 100644 --- a/src/main/java/org/bukkit/entity/Shulker.java +++ b/src/main/java/org/bukkit/entity/Shulker.java @@ -1,5 +1,77 @@ package org.bukkit.entity; +import org.bukkit.block.BlockFace; import org.bukkit.material.Colorable; -public interface Shulker extends Golem, Colorable {} +public interface Shulker extends Golem, Colorable { + + /** + * Returns if the Shulker peeks + * + * @return true if shulker peeks (peek <= 30 and > 0) + */ + public boolean isPeeking(); + + /** + * Returns if the Shulker is closed + * + * @return true if shulker is closed (peek == 0) + */ + public boolean isClosed(); + + /** + * Returns if the Shulker is open + * + * @return true if shulker is open (peek > 30) + */ + public boolean isOpen(); + + /** + * Sets if the Shulker should peek + * + */ + public void setPeeking(); + + /** + * Sets if the Shulker is open + * + */ + public void setOpen(); + + /** + * Sets if the Shulker is closed + * + */ + public void setClosed(); + + /** + * Sets how much the Shulker peeks + * + * @param b 0=closed; 30=peek; 100=full open; Values between are custom + */ + public void setCustomPeek(byte b); + + + /** + * Gets the BlockFace this Shulker is connected to + * + * @return BlockFace the Shulker is attached to (UP, DOWN, NORTH, EAST, SOUTH, WEST) + */ + public BlockFace getAttachedFace(); + + + /** + * Gets the BlockFace this Shulker is connected to + * + * @param bf Set the BlockFace the Shulker is attached to (UP, DOWN, NORTH, EAST, SOUTH, WEST) + */ + public void setAttachedFace(BlockFace bf); + + + +} + + + + + -- 2.31.1.windows.1