public interface ItemFrame extends Hanging
限定符和类型 | 方法和说明 |
---|---|
ItemStack |
getItem()
获取在展示框内的物品.
|
Rotation |
getRotation()
获取展示框内物品的旋转角度.
|
void |
setItem(ItemStack item)
设置在展示框内的物品.
|
void |
setRotation(Rotation rotation)
设置展示框内物品的旋转角度.
|
setFacingDirection
addPassenger, addScoreboardTag, eject, getEntityId, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getScoreboardTags, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isGlowing, isInsideVehicle, isInvulnerable, isOnGround, isSilent, isValid, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPortalCooldown, setSilent, setTicksLived, setVelocity, teleport, teleport, teleport, teleport
getMetadata, hasMetadata, removeMetadata, setMetadata
getName, sendMessage, sendMessage
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
isOp, setOp
getCustomName, setCustomName
getAttachedFace
getFacing, setFacingDirection
ItemStack getItem()
原文:Get the item in this frame
void setItem(ItemStack item)
原文:Set the item in this frame
item
- 新的物品Rotation getRotation()
原文:Get the rotation of the frame's item
void setRotation(Rotation rotation) throws java.lang.IllegalArgumentException
原文:Set the rotation of the frame's item
rotation
- 新的旋转角度java.lang.IllegalArgumentException
- 如果旋转角度为null