From 21ac4a4a3ecc34da67d8bf1f08d5e205d84e08d0 Mon Sep 17 00:00:00 2001 From: LoneDev <27242001+LoneDev6@users.noreply.github.com> Date: Wed, 24 Apr 2024 14:04:25 +0200 Subject: [PATCH] New methods --- pom.xml | 2 +- .../dev/lone/itemsadder/api/CustomBlock.java | 30 +++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index d29ddcd..ef42c59 100644 --- a/pom.xml +++ b/pom.xml @@ -8,7 +8,7 @@ dev.lone api-itemsadder - 3.6.2-beta-r3-b + 3.6.3-beta-14 UTF-8 diff --git a/src/main/java/dev/lone/itemsadder/api/CustomBlock.java b/src/main/java/dev/lone/itemsadder/api/CustomBlock.java index 5fcafa7..2ae2a50 100644 --- a/src/main/java/dev/lone/itemsadder/api/CustomBlock.java +++ b/src/main/java/dev/lone/itemsadder/api/CustomBlock.java @@ -1,5 +1,6 @@ package dev.lone.itemsadder.api; +import org.bukkit.Chunk; import org.bukkit.Location; import org.bukkit.block.Block; import org.bukkit.block.data.BlockData; @@ -8,7 +9,9 @@ import org.jetbrains.annotations.Nullable; import java.util.List; +import java.util.Map; import java.util.Set; +import java.util.function.BiConsumer; /** * Class representing a custom block in ItemsAdder. @@ -381,5 +384,32 @@ public static boolean removeFromCustomRegion(Location location) { throw new NotActuallyItemsAdderException(); } + + public static void deleteAllCustomBlocksInChunk(Chunk chunk) + { + throw new NotActuallyItemsAdderException(); + } + + public static void deleteAllCustomBlocksInChunk(Chunk chunk, boolean removeVanillaBlock, boolean sendChunkPacket) + { + throw new NotActuallyItemsAdderException(); + } + + @Nullable + public static List getAllBlocksLocationsList(Chunk chunk) + { + throw new NotActuallyItemsAdderException(); + } + + @Nullable + public static Map getAllBlocksLocations(Chunk chunk) + { + throw new NotActuallyItemsAdderException(); + } + + public static void runActionOnBlocks(Chunk chunk, BiConsumer action) + { + throw new NotActuallyItemsAdderException(); + } } }