private static class GlobalLootModifiersTest.SmeltingEnchantmentModifier extends LootModifier
| Modifier and Type | Class and Description |
|---|---|
private static class |
GlobalLootModifiersTest.SmeltingEnchantmentModifier.Serializer |
conditions| Constructor and Description |
|---|
SmeltingEnchantmentModifier(ILootCondition[] conditionsIn) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<ItemStack> |
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).
|
private static ItemStack |
smelt(ItemStack stack,
LootContext context) |
applypublic SmeltingEnchantmentModifier(ILootCondition[] conditionsIn)
@Nonnull public java.util.List<ItemStack> doApply(java.util.List<ItemStack> generatedLoot, LootContext context)
LootModifierdoApply in class LootModifiergeneratedLoot - the list of ItemStacks that will be dropped, generated by loot tablescontext - the LootContext, identical to what is passed to loot tablesprivate static ItemStack smelt(ItemStack stack, LootContext context)