org.bukkit.entity
Interface Item

All Superinterfaces:
Entity, Metadatable

public interface Item
extends Entity

Represents an Item.


Method Summary
 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 players
 void 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
 
Methods inherited from interface org.bukkit.entity.Entity
eject, getEntityId, getFallDistance, getFireTicks, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWorld, isDead, isEmpty, isInsideVehicle, isOnGround, isValid, leaveVehicle, playEffect, remove, setFallDistance, setFireTicks, setLastDamageCause, setPassenger, setTicksLived, setVelocity, teleport, teleport, teleport, teleport
 
Methods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
 

Method Detail

getItemStack

ItemStack getItemStack()
Gets the item stack associated with this item drop.

Returns:
An item stack.

setItemStack

void setItemStack(ItemStack stack)
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


Copyright © 2013. All Rights Reserved.