
org.bukkit.entity.ItemFrame Maven / Gradle / Ivy
package org.bukkit.entity;
import org.bukkit.Rotation;
import org.bukkit.inventory.ItemStack;
/**
* Represents an Item Frame
*/
public interface ItemFrame extends Hanging {
/**
* Get the item in this frame
*
* @return a defensive copy the item in this item frame
*/
ItemStack getItem();
/**
* Set the item in this frame
*
* @param item the new item
*/
void setItem(ItemStack item);
/**
* Get the rotation of the frame's item
*
* @return the direction
*/
Rotation getRotation();
/**
* Set the rotation of the frame's item
*
* @param rotation the new rotation
* @throws IllegalArgumentException if rotation is null
*/
void setRotation(Rotation rotation) throws IllegalArgumentException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy