Uses of Interface
org.bukkit.util.Consumer
Packages that use Consumer
Package
Description
The root package of the Bukkit API, contains generalized API classes.
-
Uses of Consumer in org.bukkit
Methods in org.bukkit with parameters of type ConsumerModifier and TypeMethodDescriptionDrops an item at the specifiedLocation
Note that functions will run before the entity is spawnedWorld.dropItemNaturally(Location location, ItemStack item, Consumer<Item> function)
Drops an item at the specifiedLocation
with a random offset Note that functions will run before the entity is spawnedboolean
RegionAccessor.generateTree(Location location, Random random, TreeType type, Consumer<BlockState> stateConsumer)
Creates a tree at the givenLocation
<T extends Entity>
TRegionAccessor.spawn(Location location, Class<T> clazz, boolean randomizeData, Consumer<T> function)
Creates a new entity at the givenLocation
with the supplied function run before the entity is added to the world.<T extends Entity>
TSpawn an entity of a specific class at the givenLocation
, with the supplied function run before the entity is added to the world.