public class LootTable
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
LootTable.Builder |
static class |
LootTable.Serializer |
Modifier and Type | Field and Description |
---|---|
static LootParameterSet |
DEFAULT_PARAMETER_SET |
static LootTable |
EMPTY_LOOT_TABLE |
Modifier and Type | Method and Description |
---|---|
void |
addPool(LootPool pool) |
static LootTable.Builder |
builder() |
static java.util.function.Consumer<ItemStack> |
capStackSizes(java.util.function.Consumer<ItemStack> p_216124_0_) |
void |
fillInventory(IInventory p_216118_1_,
LootContext p_216118_2_) |
void |
freeze() |
void |
func_216117_a(ValidationResults p_216117_1_,
java.util.function.Function<ResourceLocation,LootTable> p_216117_2_,
java.util.Set<ResourceLocation> p_216117_3_,
LootParameterSet p_216117_4_) |
java.util.List<ItemStack> |
generate(LootContext p_216113_1_) |
void |
generate(LootContext p_216120_1_,
java.util.function.Consumer<ItemStack> p_216120_2_)
Deprecated.
|
LootParameterSet |
getParameterSet() |
LootPool |
getPool(java.lang.String name) |
boolean |
isFrozen() |
void |
recursiveGenerate(LootContext p_216114_1_,
java.util.function.Consumer<ItemStack> p_216114_2_) |
LootPool |
removePool(java.lang.String name) |
public static final LootTable EMPTY_LOOT_TABLE
public static final LootParameterSet DEFAULT_PARAMETER_SET
public static java.util.function.Consumer<ItemStack> capStackSizes(java.util.function.Consumer<ItemStack> p_216124_0_)
public void recursiveGenerate(LootContext p_216114_1_, java.util.function.Consumer<ItemStack> p_216114_2_)
@Deprecated public void generate(LootContext p_216120_1_, java.util.function.Consumer<ItemStack> p_216120_2_)
public java.util.List<ItemStack> generate(LootContext p_216113_1_)
public LootParameterSet getParameterSet()
public void func_216117_a(ValidationResults p_216117_1_, java.util.function.Function<ResourceLocation,LootTable> p_216117_2_, java.util.Set<ResourceLocation> p_216117_3_, LootParameterSet p_216117_4_)
public void fillInventory(IInventory p_216118_1_, LootContext p_216118_2_)
public static LootTable.Builder builder()
public void freeze()
public boolean isFrozen()
public LootPool getPool(java.lang.String name)
public LootPool removePool(java.lang.String name)
public void addPool(LootPool pool)