接口 ItemFrame
- 所有超级接口:
Attachable
,CommandSender
,Directional
,Entity
,Hanging
,Metadatable
,Nameable
,Permissible
,ServerOperator
代表物品展示框.
-
方法概要
修饰符和类型方法说明getItem()
获取在展示框内的物品.获取展示框内物品的旋转角度.void
设置在展示框内的物品.void
setRotation
(Rotation rotation) 设置展示框内物品的旋转角度.从接口继承的方法 org.bukkit.material.Attachable
getAttachedFace
从接口继承的方法 org.bukkit.command.CommandSender
getName, sendMessage, sendMessage
从接口继承的方法 org.bukkit.material.Directional
getFacing, setFacingDirection
从接口继承的方法 org.bukkit.entity.Entity
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
从接口继承的方法 org.bukkit.entity.Hanging
setFacingDirection
从接口继承的方法 org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
从接口继承的方法 org.bukkit.Nameable
getCustomName, setCustomName
从接口继承的方法 org.bukkit.permissions.Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
从接口继承的方法 org.bukkit.permissions.ServerOperator
isOp, setOp
-
方法详细资料
-
getItem
ItemStack getItem()获取在展示框内的物品.原文:Get the item in this frame
- 返回:
- 展示框内的物品
-
setItem
设置在展示框内的物品.原文:Set the item in this frame
- 参数:
item
- 新的物品
-
getRotation
Rotation getRotation()获取展示框内物品的旋转角度.原文:Get the rotation of the frame's item
- 返回:
- 旋转角度
-
setRotation
设置展示框内物品的旋转角度.原文:Set the rotation of the frame's item
- 参数:
rotation
- 新的旋转角度- 抛出:
IllegalArgumentException
- 如果旋转角度为null
-