Uses of Interface
org.bukkit.loot.LootTable
Package
Description
The root package of the Bukkit API, contains generalized API classes.
Classes relevant to mob spawners.
Interfaces for non-voxel objects that can exist in a
world
, including all players, monsters, projectiles, etc.Classes relevant to loot table manipulation and generation.
Classes related to entity spawners.
-
Uses of LootTable in org.bukkit
Modifier and TypeMethodDescriptionBukkit.getLootTable
(@NotNull NamespacedKey key) Gets the specifiedLootTable
.Server.getLootTable
(@NotNull NamespacedKey key) Gets the specifiedLootTable
. -
Uses of LootTable in org.bukkit.block.spawner
Modifier and TypeMethodDescriptionSpawnerEntry.Equipment.getEquipmentLootTable()
Gets the loot table for the spawned entity's equipment.Modifier and TypeMethodDescriptionvoid
SpawnerEntry.Equipment.setEquipmentLootTable
(@NotNull LootTable table) Set the loot table for the spawned entity's equipment slots. -
Uses of LootTable in org.bukkit.entity
-
Uses of LootTable in org.bukkit.event.world
Modifier and TypeMethodDescriptionLootGenerateEvent.getLootTable()
Get the loot table used to generate loot.ModifierConstructorDescriptionLootGenerateEvent
(@NotNull World world, @Nullable Entity entity, @Nullable InventoryHolder inventoryHolder, @NotNull LootTable lootTable, @NotNull LootContext lootContext, @NotNull 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
(@Nullable LootTable table) Set the loot table for a container or entity.void
Lootable.setLootTable
(@Nullable LootTable table, long seed) Set the loot table and seed for a container or entity at the same time. -
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
(@NotNull 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
(@NotNull LootTable table) Removes the providedLootTable
from the list of tables this spawner can pick a reward from.