Skip to content

Commit

Permalink
New furniture methods.
Browse files Browse the repository at this point in the history
replaceFurniture and getEntity
  • Loading branch information
LoneDev6 committed Jun 20, 2023
1 parent 4b01eca commit 356c897
Show file tree
Hide file tree
Showing 2 changed files with 24 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.4.1e</version>
<version>3.5.0b</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
23 changes: 23 additions & 0 deletions src/main/java/dev/lone/itemsadder/api/CustomFurniture.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,38 @@ public void teleport(Location location)
throw new NotActuallyItemsAdderException();
}

/**
* Replace the model of this furniture with the model of another furniture.
*
* @param newFurnitureNamespacedId the namespace and ID of the new furniture model.
*/
public void replaceFurniture(String newFurnitureNamespacedId)
{
throw new NotActuallyItemsAdderException();
}

/**
* Gets the Armor stand associated with this CustomFurniture.
* <br>This may return null if the Armor stand is not yet spawned in the world.
*
* @return Possibly-null Bukkit Entity instance.
* @deprecated use {@link CustomFurniture#getEntity()} instead.
*/
@Nullable
public Entity getArmorstand()
{
throw new NotActuallyItemsAdderException();
}

/**
* Gets the Armor stand associated with this CustomFurniture.
* <br>This may return null if the Armor stand is not yet spawned in the world.
*
* @return Possibly-null Bukkit Entity instance.
*/
@Nullable
public Entity getEntity()
{
throw new NotActuallyItemsAdderException();
}
}

0 comments on commit 356c897

Please sign in to comment.