Class AddItemModifierWithRandomAmount

java.lang.Object
net.trique.wardentools.loot.ConditionalFabricLootModifier
net.trique.wardentools.loot.AddItemModifierWithRandomAmount
All Implemented Interfaces:
FabricLootModifier

public class AddItemModifierWithRandomAmount extends ConditionalFabricLootModifier
  • Constructor Summary

    Constructors
    Constructor
    Description
    AddItemModifierWithRandomAmount(net.minecraft.world.level.storage.loot.predicates.LootItemCondition[] conditionsIn, Set<net.minecraft.resources.ResourceLocation> tables, net.minecraft.world.item.Item item, int min, int max)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    it.unimi.dsi.fastutil.objects.ObjectArrayList<net.minecraft.world.item.ItemStack>
    doApply(it.unimi.dsi.fastutil.objects.ObjectArrayList<net.minecraft.world.item.ItemStack> generatedLoot, net.minecraft.world.level.storage.loot.LootContext lootContext, net.minecraft.resources.ResourceLocation lootTable)
     

    Methods inherited from class net.trique.wardentools.loot.ConditionalFabricLootModifier

    checkConditions

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AddItemModifierWithRandomAmount

      public AddItemModifierWithRandomAmount(net.minecraft.world.level.storage.loot.predicates.LootItemCondition[] conditionsIn, Set<net.minecraft.resources.ResourceLocation> tables, net.minecraft.world.item.Item item, int min, int max)
  • Method Details

    • doApply

      public it.unimi.dsi.fastutil.objects.ObjectArrayList<net.minecraft.world.item.ItemStack> doApply(it.unimi.dsi.fastutil.objects.ObjectArrayList<net.minecraft.world.item.ItemStack> generatedLoot, net.minecraft.world.level.storage.loot.LootContext lootContext, net.minecraft.resources.ResourceLocation lootTable)