Package org.bukkit.entity
Interface Item
- All Superinterfaces:
CommandSender
,Entity
,Metadatable
,Nameable
,Permissible
,PersistentDataHolder
,ServerOperator
public interface Item extends Entity
Represents a dropped item.
-
Nested Class Summary
-
Method Summary
Modifier and Type Method Description ItemStack
getItemStack()
Gets the item stack associated with this item drop.int
getPickupDelay()
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 playersMethods inherited from interface org.bukkit.entity.Entity
addPassenger, addScoreboardTag, eject, getBoundingBox, getEntityId, getFacing, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isGlowing, isInsideVehicle, isInvulnerable, isOnGround, isPersistent, isSilent, 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
Methods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
Methods inherited from interface org.bukkit.permissions.Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
Methods inherited from interface org.bukkit.persistence.PersistentDataHolder
getPersistentDataContainer
-
Method Details
-
getItemStack
Gets the item stack associated with this item drop.- Returns:
- An item stack.
-
setItemStack
Sets the item stack associated with this item drop.- Parameters:
stack
- An item stack.
-
getPickupDelay
int getPickupDelay()Gets the delay before this Item is available to be picked up by players- Returns:
- Remaining delay
-
setPickupDelay
void setPickupDelay(int delay)Sets the delay before this Item is available to be picked up by players- Parameters:
delay
- New delay
-