Chest, Dispenser, Hopper, LootableBlockInventory, LootableEntityInventory, LootableInventory, ShulkerBoxpublic interface Lootable
| Modifier and Type | Method | Description |
|---|---|---|
void |
clearLootTable() |
Clears the associated Loot Table to this object
|
java.lang.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 java.lang.String |
setLootTable(java.lang.String name) |
Sets the name of the Loot Table to be used in the World Folder
Will use a random seed (0)
|
java.lang.String |
setLootTable(java.lang.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.
|
java.lang.String getLootTableName()
default boolean hasLootTable()
default java.lang.String setLootTable(java.lang.String name)
name - name in either foo or minecraft:foo formatjava.lang.String setLootTable(java.lang.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 randomjava.lang.IllegalStateException - If called when this object does not have a loot tablevoid clearLootTable()
Copyright © 2018. All rights reserved.