org.bukkit.entity
Interface ItemFrame

All Superinterfaces:
Attachable, Directional, Entity, Hanging, Metadatable

public interface ItemFrame
extends Hanging

Represents an Item Frame


Method Summary
 ItemStack getItem()
          Get the item in this frame
 Rotation getRotation()
          Get the rotation of the frame's item
 void setItem(ItemStack item)
          Set the item in this frame
 void setRotation(Rotation rotation)
          Set the rotation of the frame's item
 
Methods inherited from interface org.bukkit.entity.Hanging
setFacingDirection
 
Methods inherited from interface org.bukkit.entity.Entity
eject, getEntityId, getFallDistance, getFireTicks, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWorld, isDead, isEmpty, isInsideVehicle, isOnGround, isValid, leaveVehicle, playEffect, remove, setFallDistance, setFireTicks, setLastDamageCause, setPassenger, setTicksLived, setVelocity, teleport, teleport, teleport, teleport
 
Methods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
 
Methods inherited from interface org.bukkit.material.Attachable
getAttachedFace
 
Methods inherited from interface org.bukkit.material.Directional
getFacing, setFacingDirection
 

Method Detail

getItem

ItemStack getItem()
Get the item in this frame

Returns:
a defensive copy the item in this item frame

setItem

void setItem(ItemStack item)
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

void setRotation(Rotation rotation)
                 throws IllegalArgumentException
Set the rotation of the frame's item

Parameters:
rotation - the new rotation
Throws:
IllegalArgumentException - if rotation is null


Copyright © 2013. All Rights Reserved.