Package org.bukkit.entity
Interface Item
- All Superinterfaces:
CommandSender,Entity,Metadatable,Permissible,ServerOperator
public interface Item extends Entity
Represents an Item.
-
Nested Class Summary
-
Method Summary
Modifier and Type Method Description ItemStackgetItemStack()Gets the item stack associated with this item drop.intgetPickupDelay()Gets the delay before this Item is available to be picked up by playersvoidsetItemStack(ItemStack stack)Sets the item stack associated with this item drop.voidsetPickupDelay(int delay)Sets the delay before this Item is available to be picked up by playersMethods inherited from interface org.bukkit.entity.Entity
eject, getCustomName, getEntityId, getFallDistance, getFireTicks, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWorld, isCustomNameVisible, isDead, isEmpty, isInsideVehicle, isOnGround, isValid, leaveVehicle, playEffect, remove, setCustomName, setCustomNameVisible, setFallDistance, setFireTicks, setLastDamageCause, setPassenger, setTicksLived, setVelocity, spigot, teleport, teleport, teleport, teleportMethods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface org.bukkit.permissions.Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
-
Method Details
-
getItemStack
ItemStack 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
-