Package org.bukkit.entity
Interface Item
- All Superinterfaces:
- CommandSender,- Entity,- Metadatable,- Nameable,- Permissible,- PersistentDataHolder,- ServerOperator
Represents a dropped item.
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.bukkit.entity.EntityEntity.Spigot
- 
Method SummaryModifier and TypeMethodDescriptionGets the item stack associated with this item drop.getOwner()Get the owner of this item.intGets the delay before this Item is available to be picked up by playersGet the thrower of this item.booleanGets if this Item lives forevervoidsetItemStack(ItemStack stack) Sets the item stack associated with this item drop.voidSets the owner of this item.voidsetPickupDelay(int delay) Sets the delay before this Item is available to be picked up by playersvoidsetThrower(UUID uuid) Set the thrower of this item.voidsetUnlimitedLifetime(boolean unlimited) Sets if this Item should live foreverMethods inherited from interface org.bukkit.command.CommandSendergetName, sendMessage, sendMessage, sendMessage, sendMessageMethods inherited from interface org.bukkit.entity.EntityaddPassenger, addScoreboardTag, copy, copy, createSnapshot, eject, getAsString, getBoundingBox, getEntityId, getFacing, getFallDistance, getFireTicks, getFreezeTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getMaxFreezeTicks, getNearbyEntities, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getSpawnCategory, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTicksLived, getTrackedBy, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isFrozen, isGlowing, isInsideVehicle, isInvulnerable, isInWater, isInWorld, isOnGround, isPersistent, isSilent, isValid, isVisibleByDefault, isVisualFire, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setFreezeTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, setVelocity, setVisibleByDefault, setVisualFire, spigot, teleport, teleport, teleport, teleportMethods inherited from interface org.bukkit.metadata.MetadatablegetMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface org.bukkit.NameablegetCustomName, setCustomNameMethods inherited from interface org.bukkit.permissions.PermissibleaddAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachmentMethods inherited from interface org.bukkit.persistence.PersistentDataHoldergetPersistentDataContainerMethods inherited from interface org.bukkit.permissions.ServerOperatorisOp, setOp
- 
Method Details- 
getItemStackGets the item stack associated with this item drop.- Returns:
- An item stack.
 
- 
setItemStackSets the item stack associated with this item drop.- Parameters:
- stack- An item stack.
 
- 
getPickupDelayint getPickupDelay()Gets the delay before this Item is available to be picked up by players- Returns:
- Remaining delay
 
- 
setPickupDelayvoid setPickupDelay(int delay) Sets the delay before this Item is available to be picked up by players- Parameters:
- delay- New delay
 
- 
setUnlimitedLifetimevoid setUnlimitedLifetime(boolean unlimited) Sets if this Item should live forever- Parameters:
- unlimited- true if the lifetime is unlimited
 
- 
isUnlimitedLifetimeboolean isUnlimitedLifetime()Gets if this Item lives forever- Returns:
- true if the lifetime is unlimited
 
- 
setOwnerSets the owner of this item. Other entities will not be able to pickup this item when an owner is set.- Parameters:
- owner- UUID of new owner
 
- 
getOwnerGet the owner of this item.- Returns:
- UUID of owner
 
- 
setThrowerSet the thrower of this item. The thrower is the entity which dropped the item. This affects the trigger criteria for item pickups, for things such as advancements.- Parameters:
- uuid- UUID of thrower
 
- 
getThrowerGet the thrower of this item. The thrower is the entity which dropped the item.- Returns:
- UUID of thrower
 
 
-