Skip to content

Commit

Permalink
Added methods to get keep_on_death
Browse files Browse the repository at this point in the history
  • Loading branch information
LoneDev6 committed Nov 15, 2023
1 parent 7d9eb45 commit 417eebe
Show file tree
Hide file tree
Showing 2 changed files with 21 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</version>
<version>3.6.2-beta-r3-b</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
20 changes: 20 additions & 0 deletions src/main/java/dev/lone/itemsadder/api/ItemsAdder.java
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,26 @@ public static String getLiquidName(Location location)
throw new NotActuallyItemsAdderException();
}

/**
* Check if a custom item has keep_on_death behaviour enabled.
* @param itemStack the custom item
* @return true if it has 'keep_on_death: true', false if not or if it's not a custom item
*/
public static boolean hasKeepOnDeath(ItemStack itemStack)
{
throw new NotActuallyItemsAdderException();
}

/**
* Check if a custom item has keep_on_death behaviour enabled.
* @param namespacedId Namespace and ID in the format {@code namespace:id} of the custom item
* @return true if it has 'keep_on_death: true', false if not or if it's not a custom item
*/
public static boolean hasKeepOnDeath(String namespacedId)
{
throw new NotActuallyItemsAdderException();
}

/**
* Applies the Resource pack set for ItemsAdder to the provided player.
*
Expand Down

0 comments on commit 417eebe

Please sign in to comment.