Modifier and Type | Method and Description |
---|---|
private static int |
LootCommand.func_218871_a(com.mojang.brigadier.context.CommandContext<CommandSource> p_218871_0_,
ResourceLocation p_218871_1_,
LootContext p_218871_2_,
LootCommand.ITargetHandler p_218871_3_) |
Modifier and Type | Field and Description |
---|---|
private java.util.function.Predicate<LootContext> |
LootPool.combinedConditions |
private java.util.function.Predicate<LootContext> |
LootFunction.combinedConditions |
private java.util.function.BiFunction<ItemStack,LootContext,ItemStack> |
LootTable.combinedFunctions |
private java.util.function.BiFunction<ItemStack,LootContext,ItemStack> |
LootPool.combinedFunctions |
private java.util.function.Predicate<LootContext> |
LootEntry.field_216143_c |
private java.util.function.BiFunction<ItemStack,LootContext,ItemStack> |
StandaloneLootEntry.field_216157_c |
Modifier and Type | Method and Description |
---|---|
LootContext |
LootContext.Builder.build(LootParameterSet parameterSet) |
Modifier and Type | Method and Description |
---|---|
void |
LootContext.IDynamicDropProvider.add(LootContext p_add_1_,
java.util.function.Consumer<ItemStack> p_add_2_) |
ItemStack |
LootFunction.apply(ItemStack p_apply_1_,
LootContext p_apply_2_) |
protected abstract ItemStack |
LootFunction.doApply(ItemStack stack,
LootContext context) |
boolean |
StandaloneLootEntry.expand(LootContext p_expand_1_,
java.util.function.Consumer<ILootGenerator> p_expand_2_) |
boolean |
TagLootEntry.expand(LootContext p_expand_1_,
java.util.function.Consumer<ILootGenerator> p_expand_2_) |
boolean |
ILootEntry.expand(LootContext p_expand_1_,
java.util.function.Consumer<ILootGenerator> p_expand_2_) |
boolean |
ParentedLootEntry.expand(LootContext p_expand_1_,
java.util.function.Consumer<ILootGenerator> p_expand_2_) |
void |
LootTable.fillInventory(IInventory p_216118_1_,
LootContext p_216118_2_) |
protected abstract void |
StandaloneLootEntry.func_216154_a(java.util.function.Consumer<ItemStack> p_216154_1_,
LootContext p_216154_2_) |
void |
TagLootEntry.func_216154_a(java.util.function.Consumer<ItemStack> p_216154_1_,
LootContext p_216154_2_) |
void |
ItemLootEntry.func_216154_a(java.util.function.Consumer<ItemStack> p_216154_1_,
LootContext p_216154_2_) |
void |
EmptyLootEntry.func_216154_a(java.util.function.Consumer<ItemStack> p_216154_1_,
LootContext p_216154_2_) |
void |
DynamicLootEntry.func_216154_a(java.util.function.Consumer<ItemStack> p_216154_1_,
LootContext p_216154_2_) |
void |
TableLootEntry.func_216154_a(java.util.function.Consumer<ItemStack> p_216154_1_,
LootContext p_216154_2_) |
private boolean |
TagLootEntry.func_216179_a(LootContext p_216179_1_,
java.util.function.Consumer<ILootGenerator> p_216179_2_) |
void |
ILootGenerator.func_216188_a(java.util.function.Consumer<ItemStack> p_216188_1_,
LootContext p_216188_2_) |
void |
LootPool.generate(java.util.function.Consumer<ItemStack> p_216091_1_,
LootContext p_216091_2_) |
java.util.List<ItemStack> |
LootTable.generate(LootContext context) |
void |
LootTable.generate(LootContext contextData,
java.util.function.Consumer<ItemStack> stacksOut)
Deprecated.
|
private void |
LootPool.generateRoll(java.util.function.Consumer<ItemStack> p_216095_1_,
LootContext p_216095_2_) |
void |
LootTable.recursiveGenerate(LootContext context,
java.util.function.Consumer<ItemStack> stacksOut) |
protected boolean |
LootEntry.test(LootContext p_216141_1_) |
Constructor and Description |
---|
Builder(LootContext context) |
Modifier and Type | Field and Description |
---|---|
private java.util.function.Predicate<LootContext> |
Alternative.field_215963_b |
Modifier and Type | Method and Description |
---|---|
boolean |
WeatherCheck.test(LootContext p_test_1_) |
boolean |
Inverted.test(LootContext p_test_1_) |
boolean |
MatchTool.test(LootContext p_test_1_) |
boolean |
Reference.test(LootContext p_test_1_) |
boolean |
KilledByPlayer.test(LootContext p_test_1_) |
boolean |
TimeCheck.test(LootContext p_test_1_) |
boolean |
BlockStateProperty.test(LootContext p_test_1_) |
boolean |
DamageSourceProperties.test(LootContext p_test_1_) |
boolean |
SurvivesExplosion.test(LootContext p_test_1_) |
boolean |
TableBonus.test(LootContext p_test_1_) |
boolean |
RandomChanceWithLooting.test(LootContext p_test_1_) |
boolean |
RandomChance.test(LootContext p_test_1_) |
boolean |
EntityHasScore.test(LootContext p_test_1_) |
boolean |
EntityHasProperty.test(LootContext p_test_1_) |
boolean |
Alternative.test(LootContext p_test_1_) |
boolean |
LocationCheck.test(LootContext p_test_1_) |
Modifier and Type | Field and Description |
---|---|
java.util.function.Function<LootContext,INBT> |
CopyNbt.Source.field_216226_g |
static java.util.function.BiFunction<ItemStack,LootContext,ItemStack> |
LootFunctionManager.IDENTITY |
Modifier and Type | Method and Description |
---|---|
static java.util.function.BiFunction<ItemStack,LootContext,ItemStack> |
LootFunctionManager.combine(java.util.function.BiFunction<ItemStack,LootContext,ItemStack>[] p_216241_0_) |
Modifier and Type | Method and Description |
---|---|
ItemStack |
ExplorationMap.doApply(ItemStack stack,
LootContext context) |
ItemStack |
SetContents.doApply(ItemStack stack,
LootContext context) |
ItemStack |
CopyNbt.doApply(ItemStack stack,
LootContext context) |
ItemStack |
ExplosionDecay.doApply(ItemStack stack,
LootContext context) |
ItemStack |
LootingEnchantBonus.doApply(ItemStack stack,
LootContext context) |
ItemStack |
SetLootTable.doApply(ItemStack stack,
LootContext context) |
ItemStack |
EnchantRandomly.doApply(ItemStack stack,
LootContext context) |
ItemStack |
Smelt.doApply(ItemStack stack,
LootContext context) |
ItemStack |
SetName.doApply(ItemStack stack,
LootContext context) |
ItemStack |
EnchantWithLevels.doApply(ItemStack stack,
LootContext context) |
ItemStack |
ApplyBonus.doApply(ItemStack stack,
LootContext context) |
ItemStack |
CopyName.doApply(ItemStack stack,
LootContext context) |
ItemStack |
FillPlayerHead.doApply(ItemStack stack,
LootContext context) |
ItemStack |
SetAttributes.doApply(ItemStack stack,
LootContext context) |
ItemStack |
SetNBT.doApply(ItemStack stack,
LootContext context) |
protected ItemStack |
CopyBlockState.doApply(ItemStack stack,
LootContext context) |
ItemStack |
SetDamage.doApply(ItemStack stack,
LootContext context) |
ItemStack |
SetStewEffect.doApply(ItemStack stack,
LootContext context) |
ItemStack |
SetCount.doApply(ItemStack stack,
LootContext context) |
ItemStack |
SetLore.doApply(ItemStack stack,
LootContext context) |
ItemStack |
LimitCount.doApply(ItemStack stack,
LootContext context) |
static java.util.function.Consumer<ItemStack> |
ILootFunction.func_215858_a(java.util.function.BiFunction<ItemStack,LootContext,ItemStack> p_215858_0_,
java.util.function.Consumer<ItemStack> p_215858_1_,
LootContext p_215858_2_) |
static java.util.function.UnaryOperator<ITextComponent> |
SetName.func_215936_a(LootContext p_215936_0_,
LootContext.EntityTarget p_215936_1_) |
Modifier and Type | Method and Description |
---|---|
static java.util.function.Consumer<ItemStack> |
ILootFunction.func_215858_a(java.util.function.BiFunction<ItemStack,LootContext,ItemStack> p_215858_0_,
java.util.function.Consumer<ItemStack> p_215858_1_,
LootContext p_215858_2_) |
Modifier and Type | Method and Description |
---|---|
static java.util.List<ItemStack> |
ForgeHooks.modifyLoot(java.util.List<ItemStack> list,
LootContext context)
All loot table drops should be passed to this function so that mod added effects
(e.g.
|
Modifier and Type | Field and Description |
---|---|
private java.util.function.Predicate<LootContext> |
LootModifier.combinedConditions |
Modifier and Type | Method and Description |
---|---|
java.util.List<ItemStack> |
LootModifier.apply(java.util.List<ItemStack> generatedLoot,
LootContext context) |
java.util.List<ItemStack> |
IGlobalLootModifier.apply(java.util.List<ItemStack> generatedLoot,
LootContext context)
Applies the modifier to the list of generated loot.
|
protected abstract java.util.List<ItemStack> |
LootModifier.doApply(java.util.List<ItemStack> generatedLoot,
LootContext context)
Applies the modifier to the generated loot (all loot conditions have already been checked
and have returned true).
|
Modifier and Type | Method and Description |
---|---|
java.util.List<ItemStack> |
GlobalLootModifiersTest.SmeltingEnchantmentModifier.doApply(java.util.List<ItemStack> generatedLoot,
LootContext context) |
java.util.List<ItemStack> |
GlobalLootModifiersTest.SilkTouchTestModifier.doApply(java.util.List<ItemStack> generatedLoot,
LootContext context) |
java.util.List<ItemStack> |
GlobalLootModifiersTest.WheatSeedsConverterModifier.doApply(java.util.List<ItemStack> generatedLoot,
LootContext context) |
private static ItemStack |
GlobalLootModifiersTest.SmeltingEnchantmentModifier.smelt(ItemStack stack,
LootContext context) |