Package org.bukkit.loot
Interface Lootable
- All Known Subinterfaces:
- AbstractHorse,- AbstractSkeleton,- AbstractVillager,- Ageable,- Allay,- Ambient,- Animals,- Armadillo,- Axolotl,- Barrel,- Bat,- Bee,- Blaze,- Bogged,- Breedable,- Breeze,- BrushableBlock,- Camel,- Cat,- CaveSpider,- Chest,- ChestBoat,- ChestedHorse,- Chicken,- Cod,- Cow,- Crafter,- Creature,- Creeper,- Dispenser,- Dolphin,- Donkey,- Dropper,- Drowned,- ElderGuardian,- EnderDragon,- Enderman,- Endermite,- Evoker,- Fish,- Flying,- Fox,- Frog,- Ghast,- Giant,- GlowSquid,- Goat,- Golem,- Guardian,- Hoglin,- Hopper,- HopperMinecart,- Horse,- Husk,- Illager,- Illusioner,- IronGolem,- Llama,- MagmaCube,- Mob,- Monster,- Mule,- MushroomCow,- NPC,- Ocelot,- Panda,- Parrot,- Phantom,- Pig,- Piglin,- PiglinAbstract,- PiglinBrute,- PigZombie,- Pillager,- PolarBear,- PufferFish,- Rabbit,- Raider,- Ravager,- Salmon,- Sheep,- Shulker,- ShulkerBox,- Silverfish,- Skeleton,- SkeletonHorse,- Slime,- Sniffer,- Snowman,- Spellcaster,- Spider,- Squid,- Steerable,- StorageMinecart,- Stray,- Strider,- SuspiciousSand,- Tadpole,- Tameable,- TraderLlama,- TropicalFish,- Turtle,- Vex,- Villager,- Vindicator,- WanderingTrader,- Warden,- WaterMob,- Witch,- Wither,- WitherSkeleton,- Wolf,- Zoglin,- Zombie,- ZombieHorse,- ZombieVillager
public interface Lootable
- 
Method SummaryModifier and TypeMethodDescriptionGets the Loot Table attached to this block or entity.longgetSeed()Get the Loot Table's seed.voidsetLootTable(LootTable table) Set the loot table for a container or entity.voidsetSeed(long seed) Set the seed used when this Loot Table generates loot.
- 
Method Details- 
setLootTableSet the loot table for a container or entity.
 To remove a loot table use null. Do not useLootTables.EMPTYto clear a LootTable.
- 
getLootTableGets the Loot Table attached to this block or entity.
 If an block/entity does not have a loot table, this will return null, NOT an empty loot table.- Returns:
- the Loot Table attached to this block or entity.
 
- 
setSeedvoid setSeed(long seed) Set the seed used when this Loot Table generates loot.- Parameters:
- seed- the seed to used to generate loot. Default is 0.
 
- 
getSeedlong getSeed()Get the Loot Table's seed.
 The seed is used when generating loot.- Returns:
- the seed
 
 
-