Package org.bukkit.entity
Interface ItemFrame
-
- All Superinterfaces:
Attachable
,CommandSender
,Directional
,Entity
,Hanging
,Metadatable
,Nameable
,Permissible
,PersistentDataHolder
,ServerOperator
public interface ItemFrame extends Hanging
Represents an Item Frame
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.bukkit.entity.Entity
Entity.Spigot
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ItemStack
getItem()
Get the item in this frameRotation
getRotation()
Get the rotation of the frame's itemvoid
setItem(ItemStack item)
Set the item in this framevoid
setItem(ItemStack item, boolean playSound)
Set the item in this framevoid
setRotation(Rotation rotation)
Set the rotation of the frame's item-
Methods inherited from interface org.bukkit.material.Attachable
getAttachedFace
-
Methods inherited from interface org.bukkit.command.CommandSender
getName, sendMessage, sendMessage
-
Methods inherited from interface org.bukkit.material.Directional
getFacing, setFacingDirection
-
Methods inherited from interface org.bukkit.entity.Entity
addPassenger, addScoreboardTag, eject, getBoundingBox, getEntityId, getFacing, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isGlowing, isInsideVehicle, isInvulnerable, isOnGround, isPersistent, isSilent, isValid, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, setVelocity, spigot, teleport, teleport, teleport, teleport
-
Methods inherited from interface org.bukkit.entity.Hanging
setFacingDirection
-
Methods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
-
Methods inherited from interface org.bukkit.Nameable
getCustomName, setCustomName
-
Methods inherited from interface org.bukkit.permissions.Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
-
Methods inherited from interface org.bukkit.persistence.PersistentDataHolder
getPersistentDataContainer
-
Methods inherited from interface org.bukkit.permissions.ServerOperator
isOp, setOp
-
-
-
-
Method Detail
-
getItem
@NotNull ItemStack getItem()
Get the item in this frame- Returns:
- a defensive copy the item in this item frame
-
setItem
void setItem(@Nullable ItemStack item)
Set the item in this frame- Parameters:
item
- the new item
-
setItem
void setItem(@Nullable ItemStack item, boolean playSound)
Set the item in this frame- Parameters:
item
- the new itemplaySound
- whether or not to play the item placement sound
-
getRotation
@NotNull Rotation getRotation()
Get the rotation of the frame's item- Returns:
- the direction
-
setRotation
void setRotation(@NotNull Rotation rotation) throws IllegalArgumentException
Set the rotation of the frame's item- Parameters:
rotation
- the new rotation- Throws:
IllegalArgumentException
- if rotation is null
-
-