Uses of Interface
org.bukkit.loot.LootTable
Package
Description
The root package of the Bukkit API, contains generalized API classes.
Classes used to manipulate the voxels in a
world
,
including special states.Classes relevant to mob spawners.
Classes relevant to loot table manipulation and generation.
Classes related to entity spawners.
-
Uses of LootTable in org.bukkit
Modifier and TypeMethodDescriptionstatic LootTable
Bukkit.getLootTable
(NamespacedKey key) Gets the specifiedLootTable
.Server.getLootTable
(NamespacedKey key) Gets the specifiedLootTable
. -
Uses of LootTable in org.bukkit.block
Modifier and TypeMethodDescriptionVault.getDisplayLootTable()
Gets theLootTable
this vault will display items from.Vault.getLootTable()
Gets theLootTable
this vault will pick rewards from.Modifier and TypeMethodDescriptionvoid
Vault.setDisplayLootTable
(LootTable table) Sets theLootTable
this vault will display items from.void
Vault.setLootTable
(LootTable table) Sets theLootTable
this vault will pick rewards from. -
Uses of LootTable in org.bukkit.block.spawner
Modifier and TypeMethodDescriptionSpawnerEntry.Equipment.getEquipmentLootTable()
Gets the loot table for the entity.Modifier and TypeMethodDescriptionvoid
SpawnerEntry.Equipment.setEquipmentLootTable
(LootTable table) Set the loot table for the entity.ModifierConstructorDescriptionEquipment
(LootTable equipmentLootTable, Map<EquipmentSlot, Float> dropChances) -
Uses of LootTable in org.bukkit.event.world
Modifier and TypeMethodDescriptionLootGenerateEvent.getLootTable()
Get the loot table used to generate loot.ModifierConstructorDescriptionLootGenerateEvent
(World world, Entity entity, InventoryHolder inventoryHolder, LootTable lootTable, LootContext lootContext, List<ItemStack> items, boolean plugin) -
Uses of LootTable in org.bukkit.loot
Modifier and TypeMethodDescriptionLootable.getLootTable()
Gets the Loot Table attached to this block or entity.LootTables.getLootTable()
Get theLootTable
corresponding to this constant.Modifier and TypeMethodDescriptionvoid
Lootable.setLootTable
(LootTable table) Set the loot table for a container or entity. -
Uses of LootTable in org.bukkit.spawner
Modifier and TypeMethodDescriptionTrialSpawnerConfiguration.getPossibleRewards()
Gets a list ofLootTable
s this spawner can pick a reward from as well as their associated weight to be chosen.Modifier 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.Modifier and TypeMethodDescriptionvoid
TrialSpawnerConfiguration.setPossibleRewards
(Map<LootTable, Integer> rewards) Sets the list ofLootTable
s and their weights this spawner can pick a reward from.