From 3959d6d00fb847fd94768c378deb8f43cb238f62 Mon Sep 17 00:00:00 2001 From: LoneDev6 Date: Tue, 14 Nov 2023 15:48:41 +0100 Subject: [PATCH] getNamespacedIdsInRegistry method for CustomFurniture --- pom.xml | 2 +- .../java/dev/lone/itemsadder/api/CustomFurniture.java | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index e79b9fb..2154e04 100644 --- a/pom.xml +++ b/pom.xml @@ -8,7 +8,7 @@ dev.lone api-itemsadder - 3.6.1 + 3.6.2-beta-r3 UTF-8 diff --git a/src/main/java/dev/lone/itemsadder/api/CustomFurniture.java b/src/main/java/dev/lone/itemsadder/api/CustomFurniture.java index ebef472..7b47de3 100644 --- a/src/main/java/dev/lone/itemsadder/api/CustomFurniture.java +++ b/src/main/java/dev/lone/itemsadder/api/CustomFurniture.java @@ -6,12 +6,23 @@ import org.bukkit.entity.Entity; import org.jetbrains.annotations.Nullable; +import java.util.Set; + /** * Class representing a CustomFurniture of ItemsAdder. *
This class extends the {@link CustomStack} class. */ public class CustomFurniture extends CustomStack { + /** + * Returns a list of all the registered furniture identifiers in the format {@code namespace:id} + * @return a list of Namespaces and IDs in the format {@code namespace:id} + */ + public static Set getNamespacedIdsInRegistry() + { + throw new NotActuallyItemsAdderException(); + } + /** * Gets a CustomFurniture instance from the provided Armor stand. *
This may return null if the Armor stand is not part of a furniture.