public interface ItemFrame extends Hanging
Entity.Spigot
Modifier and Type | Method and Description |
---|---|
@NotNull ItemStack |
getItem()
Get the item in this frame
|
float |
getItemDropChance()
Gets the chance of the item being dropped upon this frame's destruction.
|
@NotNull Rotation |
getRotation()
Get the rotation of the frame's item
|
boolean |
isFixed()
Returns whether the item frame is "fixed" or not.
|
boolean |
isVisible()
Returns whether the item frame is be visible or not.
|
void |
setFixed(boolean visible)
Sets whether the item frame should be fixed or not.
|
void |
setItem(@Nullable ItemStack item)
Set the item in this frame
|
void |
setItem(@Nullable ItemStack item,
boolean playSound)
Set the item in this frame
|
void |
setItemDropChance(float chance)
Sets the chance of the off hand item being dropped upon this frame's
destruction.
|
void |
setRotation(@NotNull Rotation rotation)
Set the rotation of the frame's item
|
void |
setVisible(boolean visible)
Sets whether the item frame should be visible or not.
|
setFacingDirection
addPassenger, addScoreboardTag, asHoverEvent, eject, fromMobSpawner, getBoundingBox, getChunk, getEntityId, getEntitySpawnReason, getFacing, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isGlowing, isInBubbleColumn, isInLava, isInRain, isInsideVehicle, isInvulnerable, isInWater, isInWaterOrBubbleColumn, isInWaterOrRain, isInWaterOrRainOrBubbleColumn, isOnGround, isPersistent, isSilent, isTicking, 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, teleportAsync, teleportAsync
getMetadata, hasMetadata, removeMetadata, setMetadata
getName, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage
audience, audience, clearTitle, empty, hideBossBar, openBook, openBook, playSound, playSound, resetTitle, sendActionBar, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendPlayerListHeaderAndFooter, showBossBar, showTitle, stopSound, toAudience
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
isOp, setOp
customName, customName, getCustomName, setCustomName
getPersistentDataContainer
asHoverEvent, unbox
getAttachedFace
getFacing, setFacingDirection
@NotNull @NotNull ItemStack getItem()
void setItem(@Nullable @Nullable ItemStack item)
item
- the new itemvoid setItem(@Nullable @Nullable ItemStack item, boolean playSound)
item
- the new itemplaySound
- whether or not to play the item placement soundfloat getItemDropChance()
void setItemDropChance(float chance)
chance
- the chance of off hand item being dropped@NotNull @NotNull Rotation getRotation()
void setRotation(@NotNull @NotNull Rotation rotation) throws IllegalArgumentException
rotation
- the new rotationIllegalArgumentException
- if rotation is nullboolean isVisible()
void setVisible(boolean visible)
visible
- whether the item frame is visible or notboolean isFixed()
void setFixed(boolean visible)
visible
- whether the item frame is fixed or notCopyright © 2021. All rights reserved.