public abstract class LootModifier extends java.lang.Object implements IGlobalLootModifier
修飾子とタイプ | フィールドと説明 |
---|---|
protected ILootCondition[] |
conditions |
修飾子 | コンストラクタと説明 |
---|---|
protected |
LootModifier(ILootCondition[] conditionsIn)
Constructs a LootModifier.
|
修飾子とタイプ | メソッドと説明 |
---|---|
java.util.List<ItemStack> |
apply(java.util.List<ItemStack> generatedLoot,
LootContext context)
Applies the modifier to the list of generated loot.
|
protected abstract 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).
|
protected final ILootCondition[] conditions
protected LootModifier(ILootCondition[] conditionsIn)
conditionsIn
- the ILootConditions that need to be matched before the loot is modified.@Nonnull public final java.util.List<ItemStack> apply(java.util.List<ItemStack> generatedLoot, LootContext context)
IGlobalLootModifier
apply
インタフェース内 IGlobalLootModifier
generatedLoot
- the list of ItemStacks that will be dropped, generated by loot tablescontext
- the LootContext, identical to what is passed to loot tables@Nonnull protected abstract java.util.List<ItemStack> doApply(java.util.List<ItemStack> generatedLoot, LootContext context)
generatedLoot
- the list of ItemStacks that will be dropped, generated by loot tablescontext
- the LootContext, identical to what is passed to loot tables