Package org.bukkit.entity
Interface ItemFrame
- All Superinterfaces:
Attachable,CommandSender,Directional,Entity,Hanging,Metadatable,Permissible,ServerOperator
public interface ItemFrame extends Hanging
Represents an Item Frame
-
Nested Class Summary
-
Method Summary
Modifier and Type Method Description ItemStackgetItem()Get the item in this frameRotationgetRotation()Get the rotation of the frame's itemvoidsetItem(ItemStack item)Set the item in this framevoidsetRotation(Rotation rotation)Set the rotation of the frame's itemMethods inherited from interface org.bukkit.entity.Entity
eject, getCustomName, getEntityId, getFallDistance, getFireTicks, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWorld, isCustomNameVisible, isDead, isEmpty, isInsideVehicle, isOnGround, isValid, leaveVehicle, playEffect, remove, setCustomName, setCustomNameVisible, setFallDistance, setFireTicks, setLastDamageCause, setPassenger, setTicksLived, setVelocity, spigot, teleport, teleport, teleport, teleportMethods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface org.bukkit.permissions.Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
-
Method Details
-
getItem
ItemStack getItem()Get the item in this frame- Returns:
- a defensive copy the item in this item frame
-
setItem
Set the item in this frame- Parameters:
item- the new item
-
getRotation
Rotation getRotation()Get the rotation of the frame's item- Returns:
- the direction
-
setRotation
Set the rotation of the frame's item- Parameters:
rotation- the new rotation- Throws:
java.lang.IllegalArgumentException- if rotation is null
-