AbstractHorse
, Ageable
, Ambient
, Animals
, Bat
, Blaze
, CaveSpider
, Chest
, ChestedHorse
, Chicken
, Cod
, Cow
, Creature
, Creeper
, Dispenser
, Dolphin
, Donkey
, Dropper
, Drowned
, ElderGuardian
, EnderDragon
, Enderman
, Endermite
, Evoker
, Fish
, Flying
, Ghast
, Giant
, Golem
, Guardian
, Hopper
, HopperMinecart
, Horse
, Husk
, Illager
, Illusioner
, IronGolem
, Llama
, LootableBlockInventory
, LootableEntityInventory
, LootableInventory
, MagmaCube
, Mob
, Monster
, Mule
, MushroomCow
, NPC
, Ocelot
, Parrot
, Phantom
, Pig
, PigZombie
, PolarBear
, PufferFish
, Rabbit
, RangedEntity
, Salmon
, Sheep
, Shulker
, ShulkerBox
, Silverfish
, Skeleton
, SkeletonHorse
, Slime
, Snowman
, Spellcaster
, Spider
, Squid
, StorageMinecart
, Stray
, TropicalFish
, Turtle
, Vex
, Villager
, Vindicator
, WaterMob
, Witch
, Wither
, WitherSkeleton
, Wolf
, Zombie
, ZombieHorse
, ZombieVillager
public interface Lootable
Modifier and Type | Method | Description |
---|---|---|
default void |
clearLootTable() |
Clears the associated Loot Table to this object
|
LootTable |
getLootTable() |
Gets the Loot Table attached to this block or entity.
|
long |
getSeed() |
Get the Loot Table's seed.
|
default boolean |
hasLootTable() |
Returns whether or not this object has a Loot Table
|
void |
setLootTable(LootTable table) |
Set the loot table for a container or entity.
|
default void |
setLootTable(LootTable table,
long seed) |
Set the loot table and seed for a container or entity at the same time.
|
void |
setSeed(long seed) |
Set the seed used when this Loot Table generates loot.
|
void setLootTable(@Nullable LootTable table)
LootTables.EMPTY
to
clear a LootTable.@Nullable LootTable getLootTable()
default void setLootTable(@Nullable LootTable table, long seed)
default boolean hasLootTable()
default void clearLootTable()
void setSeed(long seed)
seed
- the seed to used to generate loot. Default is 0.long getSeed()
Copyright © 2020. All rights reserved.