Skip to content

Commit

Permalink
New methods
Browse files Browse the repository at this point in the history
  • Loading branch information
LoneDev6 committed Apr 24, 2024
1 parent 417eebe commit 21ac4a4
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<groupId>dev.lone</groupId>
<artifactId>api-itemsadder</artifactId>
<version>3.6.2-beta-r3-b</version>
<version>3.6.3-beta-14</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
30 changes: 30 additions & 0 deletions src/main/java/dev/lone/itemsadder/api/CustomBlock.java
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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.
Expand Down Expand Up @@ -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<Location> getAllBlocksLocationsList(Chunk chunk)
{
throw new NotActuallyItemsAdderException();
}

@Nullable
public static Map<Location, String> getAllBlocksLocations(Chunk chunk)
{
throw new NotActuallyItemsAdderException();
}

public static void runActionOnBlocks(Chunk chunk, BiConsumer<String, Location> action)
{
throw new NotActuallyItemsAdderException();
}
}
}

0 comments on commit 21ac4a4

Please sign in to comment.