Chest, Dispenser, Hopper, LootableBlockInventory, LootableEntityInventory, LootableInventory, ShulkerBoxpublic interface Lootable
| Modifier and Type | Method | Description |
|---|---|---|
void |
clearLootTable() |
Clears the associated Loot Table to this object
|
String |
getLootTableName() |
Gets the name of the Loot Table to be used in the World Folder
|
long |
getLootTableSeed() |
Gets the current seed associated to the Loot Table on this object
|
default boolean |
hasLootTable() |
Returns whether or not this object has a Loot Table
|
default String |
setLootTable(String name) |
Sets the name of the Loot Table to be used in the World Folder
Will use a random seed (0)
|
String |
setLootTable(String name,
long seed) |
Sets the name of the Loot Table to be used in the World Folder
Uses supplied Seed
|
default long |
setLootTableSeed(long seed) |
Changes the current seed associated with the Loot Table on this object.
|
String getLootTableName()
default boolean hasLootTable()
default String setLootTable(String name)
name - name in either foo or minecraft:foo formatString setLootTable(String name, long seed)
name - name in either foo or minecraft:foo formatseed - seed for the loot table. If 0, seed will be randomlong getLootTableSeed()
default long setLootTableSeed(long seed)
seed - The seed to use, or 0 for randomIllegalStateException - If called when this object does not have a loot tablevoid clearLootTable()
Copyright © 2019. All rights reserved.