Package | Description |
---|---|
org.bukkit |
The root package of the Bukkit API, contains generalized API classes.
|
Modifier and Type | Method and Description |
---|---|
Item |
World.dropItem(Location location,
ItemStack item,
Consumer<Item> function)
Drops an item at the specified
Location
Note that functions will run before the entity is spawned |
Item |
World.dropItemNaturally(Location location,
ItemStack item,
Consumer<Item> function)
Drops an item at the specified
Location with a random offset
Note that functions will run before the entity is spawned |
<T extends Entity> |
World.spawn(Location location,
Class<T> clazz,
Consumer<T> function)
Spawn an entity of a specific class at the given
Location , with
the supplied function run before the entity is added to the world. |
Copyright © 2021. All rights reserved.