Uses of Interface
org.bukkit.loot.LootTable
Packages that use LootTable
Package
Description
The root package of the Bukkit API, contains generalized API classes.
Classes relevant to mob spawners.
Classes relevant to loot table manipulation and generation.
Classes related to entity spawners.
-
Uses of LootTable in org.bukkit
Methods in org.bukkit that return LootTableModifier and TypeMethodDescriptionstatic LootTable
Bukkit.getLootTable
(NamespacedKey key) Gets the specifiedLootTable
.Server.getLootTable
(NamespacedKey key) Gets the specifiedLootTable
. -
Uses of LootTable in org.bukkit.block.spawner
Methods in org.bukkit.block.spawner that return LootTableModifier and TypeMethodDescriptionSpawnerEntry.Equipment.getEquipmentLootTable()
Gets the loot table for the entity.Methods in org.bukkit.block.spawner with parameters of type LootTableModifier and TypeMethodDescriptionvoid
SpawnerEntry.Equipment.setEquipmentLootTable
(LootTable table) Set the loot table for the entity.Constructors in org.bukkit.block.spawner with parameters of type LootTableModifierConstructorDescriptionEquipment
(LootTable equipmentLootTable, Map<EquipmentSlot, Float> dropChances) -
Uses of LootTable in org.bukkit.event.world
Methods in org.bukkit.event.world that return LootTableModifier and TypeMethodDescriptionLootGenerateEvent.getLootTable()
Get the loot table used to generate loot.Constructors in org.bukkit.event.world with parameters of type LootTableModifierConstructorDescriptionLootGenerateEvent
(World world, Entity entity, InventoryHolder inventoryHolder, LootTable lootTable, LootContext lootContext, List<ItemStack> items, boolean plugin) -
Uses of LootTable in org.bukkit.loot
Methods in org.bukkit.loot that return LootTableModifier and TypeMethodDescriptionLootable.getLootTable()
Gets the Loot Table attached to this block or entity.LootTables.getLootTable()
Get theLootTable
corresponding to this constant.Methods in org.bukkit.loot with parameters of type LootTableModifier and TypeMethodDescriptionvoid
Lootable.setLootTable
(LootTable table) Set the loot table for a container or entity. -
Uses of LootTable in org.bukkit.spawner
Methods in org.bukkit.spawner that return types with arguments of type LootTableModifier and TypeMethodDescriptionTrialSpawnerConfiguration.getPossibleRewards()
Gets a list ofLootTable
s this spawner can pick a reward from as well as their associated weight to be chosen.Methods in org.bukkit.spawner with parameters of type LootTableModifier and TypeMethodDescriptionvoid
TrialSpawnerConfiguration.addPossibleReward
(LootTable table, int weight) Add aLootTable
to the list of tables this spawner can pick a reward from with a given weight.void
TrialSpawnerConfiguration.removePossibleReward
(LootTable table) Removes the providedLootTable
from the list of tables this spawner can pick a reward from.Method parameters in org.bukkit.spawner with type arguments of type LootTableModifier and TypeMethodDescriptionvoid
TrialSpawnerConfiguration.setPossibleRewards
(Map<LootTable, Integer> rewards) Sets the list ofLootTable
s and their weights this spawner can pick a reward from.