Skip to content

Commit

Permalink
New furniture method.
Browse files Browse the repository at this point in the history
  • Loading branch information
LoneDev6 committed Sep 8, 2023
1 parent 356c897 commit c1ec808
Show file tree
Hide file tree
Showing 2 changed files with 14 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.5.0b</version>
<version>3.5.0c-r5</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
13 changes: 13 additions & 0 deletions src/main/java/dev/lone/itemsadder/api/CustomFurniture.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,19 @@ public static CustomFurniture byAlreadySpawned(Entity entity)
throw new NotActuallyItemsAdderException();
}

/**
* Gets a CustomFurniture instance from the provided Block.
* <br>This may return null if the Block is not part of a furniture hit-box.
*
* @param block The Block to get the CustomFurniture from.
* @return Possibly-null instance of CustomFurniture
*/
@Nullable
public static CustomFurniture byAlreadySpawned(Block block)
{
throw new NotActuallyItemsAdderException();
}

/**
* Spawns an Armor stand with the furniture of the provided namespace and ID at the provided location and
* returns a CustomFurniture instance for it.
Expand Down

0 comments on commit c1ec808

Please sign in to comment.