private static class GlobalLootModifiersTest.SilkTouchTestModifier extends LootModifier
| Modifier and Type | Class and Description |
|---|---|
private static class |
GlobalLootModifiersTest.SilkTouchTestModifier.Serializer |
conditions| Constructor and Description |
|---|
SilkTouchTestModifier(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).
|
applypublic SilkTouchTestModifier(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 tables