Package org.bukkit.entity
Interface ItemFrame
- All Superinterfaces:
- Attachable,- Audience,- CommandSender,- Directional,- Entity,- Hanging,- HoverEventSource<HoverEvent.ShowEntity>,- Metadatable,- Nameable,- Permissible,- PersistentDataHolder,- Pointered,- ServerOperator,- Sound.Emitter
- All Known Subinterfaces:
- GlowItemFrame
Represents an Item Frame
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.bukkit.entity.EntityEntity.Spigot
- 
Method SummaryModifier and TypeMethodDescriptiongetItem()Get the item in this framefloatGets the chance of the item being dropped upon this frame's destruction.Get the rotation of the frame's itembooleanisFixed()Returns whether the item frame is "fixed" or not.booleanReturns whether the item frame is visible or not.voidsetFixed(boolean fixed) Sets whether the item frame should be fixed or not.voidSet the item in this framevoidSet the item in this framevoidsetItemDropChance(float chance) Sets the chance of the off hand item being dropped upon this frame's destruction.voidsetRotation(@NotNull Rotation rotation) Set the rotation of the frame's itemvoidsetVisible(boolean visible) Sets whether the item frame should be visible or not.Methods inherited from interface org.bukkit.material.AttachablegetAttachedFaceMethods inherited from interface net.kyori.adventure.audience.AudienceclearTitle, deleteMessage, deleteMessage, filterAudience, forEachAudience, hideBossBar, openBook, openBook, playSound, playSound, playSound, resetTitle, sendActionBar, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendPlayerListHeaderAndFooter, sendTitlePart, showBossBar, showTitle, stopSound, stopSoundMethods inherited from interface org.bukkit.command.CommandSendergetName, name, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlainMessage, sendRichMessageMethods inherited from interface org.bukkit.material.DirectionalgetFacing, setFacingDirectionMethods inherited from interface org.bukkit.entity.EntityaddPassenger, addScoreboardTag, asHoverEvent, collidesAt, eject, fromMobSpawner, getBoundingBox, getChunk, getEntityId, getEntitySpawnReason, getFacing, getFallDistance, getFireTicks, getFreezeTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getMaxFreezeTicks, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getSpawnCategory, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTicksLived, getTrackedPlayers, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isFreezeTickingLocked, isFrozen, isGlowing, isInBubbleColumn, isInLava, isInPowderedSnow, isInRain, isInsideVehicle, isInvulnerable, isInWater, isInWaterOrBubbleColumn, isInWaterOrRain, isInWaterOrRainOrBubbleColumn, isOnGround, isPersistent, isSilent, isSneaking, isTicking, isUnderWater, isValid, isVisibleByDefault, isVisualFire, leaveVehicle, lockFreezeTicks, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setFreezeTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setSneaking, setTicksLived, setVelocity, setVisibleByDefault, setVisualFire, spawnAt, spawnAt, spigot, teamDisplayName, teleport, teleport, teleport, teleport, teleport, teleport, teleportAsync, teleportAsync, wouldCollideUsingMethods inherited from interface org.bukkit.entity.HangingsetFacingDirectionMethods inherited from interface net.kyori.adventure.text.event.HoverEventSourceasHoverEventMethods inherited from interface org.bukkit.metadata.MetadatablegetMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface org.bukkit.NameablecustomName, customName, getCustomName, setCustomNameMethods inherited from interface org.bukkit.permissions.PermissibleaddAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, permissionValue, permissionValue, recalculatePermissions, removeAttachmentMethods inherited from interface org.bukkit.persistence.PersistentDataHoldergetPersistentDataContainerMethods inherited from interface net.kyori.adventure.pointer.Pointeredget, getOrDefault, getOrDefaultFrom, pointersMethods inherited from interface org.bukkit.permissions.ServerOperatorisOp, setOp
- 
Method Details- 
getItemGet the item in this frame- Returns:
- a defensive copy the item in this item frame
 
- 
setItemSet the item in this frame- Parameters:
- item- the new item
 
- 
setItemSet the item in this frame- Parameters:
- item- the new item
- playSound- whether or not to play the item placement sound
 
- 
getItemDropChancefloat getItemDropChance()Gets the chance of the item being dropped upon this frame's destruction.- A drop chance of 0.0F will never drop
- A drop chance of 1.0F will always drop
 - Returns:
- chance of the off hand item being dropped
 
- 
setItemDropChancevoid setItemDropChance(float chance) Sets the chance of the off hand item being dropped upon this frame's destruction.- A drop chance of 0.0F will never drop
- A drop chance of 1.0F will always drop
 - Parameters:
- chance- the chance of off hand item being dropped
 
- 
getRotationGet the rotation of the frame's item- Returns:
- the direction
 
- 
setRotationSet the rotation of the frame's item- Parameters:
- rotation- the new rotation
- Throws:
- IllegalArgumentException- if rotation is null
 
- 
isVisibleboolean isVisible()Returns whether the item frame is visible or not.- Returns:
- whether the item frame is visible or not
 
- 
setVisiblevoid setVisible(boolean visible) Sets whether the item frame should be visible or not.- Parameters:
- visible- whether the item frame is visible or not
 
- 
isFixedboolean isFixed()Returns whether the item frame is "fixed" or not. When true it's not possible to destroy/move the frame (e.g. by damage, interaction, pistons, or missing supporting blocks), rotate the item or place/remove items.- Returns:
- whether the item frame is fixed or not
 
- 
setFixedvoid setFixed(boolean fixed) Sets whether the item frame should be fixed or not. When set to true it's not possible to destroy/move the frame (e.g. by damage, interaction, pistons, or missing supporting blocks), rotate the item or place/remove items.- Parameters:
- fixed- whether the item frame is fixed or not
 
 
-