接口的使用
org.bukkit.entity.Item
程序包
说明
Bukkit的常用类.
-
org.bukkit中Item的使用
-
org.bukkit.event.entity中Item的使用
修饰符和类型方法说明ItemDespawnEvent.getEntity()
ItemMergeEvent.getEntity()
ItemSpawnEvent.getEntity()
EntityPickupItemEvent.getItem()
Gets the Item picked up by the entity.ItemMergeEvent.getTarget()
获取主物品正在合并的物品实体.限定符构造器说明EntityPickupItemEvent
(LivingEntity entity, Item item, int remaining) ItemDespawnEvent
(Item despawnee, Location loc) ItemMergeEvent
(Item item, Item target) ItemSpawnEvent
(Item spawnee, Location loc) -
org.bukkit.event.inventory中Item的使用
-
org.bukkit.event.player中Item的使用
修饰符和类型方法说明PlayerPickupItemEvent.getItem()
已过时。获得此玩家在地面捡起的物品.PlayerDropItemEvent.getItemDrop()
获得此玩家丢出的物品.限定符构造器说明PlayerDropItemEvent
(Player player, Item drop) PlayerPickupArrowEvent
(Player player, Item item, Arrow arrow) PlayerPickupItemEvent
(Player player, Item item, int remaining) 已过时。