Skip to content

Commit

Permalink
Update item frames
Browse files Browse the repository at this point in the history
  • Loading branch information
ImMorpheus committed Jul 6, 2024
1 parent a01a29b commit f37be24
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/main/java/org/spongepowered/api/entity/hanging/ItemFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,22 @@

import org.spongepowered.api.data.Keys;
import org.spongepowered.api.data.value.Value;
import org.spongepowered.api.entity.ItemRepresentable;
import org.spongepowered.api.item.inventory.ItemStackSnapshot;
import org.spongepowered.api.util.orientation.Orientation;

/**
* Represents an Item Frame.
*/
public interface ItemFrame extends Hanging, ItemRepresentable {
public interface ItemFrame extends Hanging {

/**
* {@link Keys#ITEM_STACK_SNAPSHOT}
*
* @return The item being hung on this item frame
*/
default Value.Mutable<ItemStackSnapshot> item() {
return this.requireValue(Keys.ITEM_STACK_SNAPSHOT).asMutable();
}

/**
* {@link Keys#ORIENTATION}
Expand Down

0 comments on commit f37be24

Please sign in to comment.