接口 Item
- 所有超级接口:
CommandSender
,Entity
,Metadatable
,Nameable
,Permissible
,ServerOperator
Represents an Item.
-
方法概要
修饰符和类型方法说明Gets the item stack associated with this item drop.int
Gets the delay before this Item is available to be picked up by playersvoid
setItemStack
(ItemStack stack) Sets the item stack associated with this item drop.void
setPickupDelay
(int delay) Sets the delay before this Item is available to be picked up by players从接口继承的方法 org.bukkit.command.CommandSender
getName, sendMessage, sendMessage
从接口继承的方法 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.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
-
方法详细资料
-
getItemStack
ItemStack getItemStack()Gets the item stack associated with this item drop.- 返回:
- An item stack.
-
setItemStack
Sets the item stack associated with this item drop.- 参数:
stack
- An item stack.
-
getPickupDelay
int getPickupDelay()Gets the delay before this Item is available to be picked up by players- 返回:
- Remaining delay
-
setPickupDelay
void setPickupDelay(int delay) Sets the delay before this Item is available to be picked up by players- 参数:
delay
- New delay
-