Class MobLootModifier

java.lang.Object
net.minecraftforge.common.loot.LootModifier
de.teamlapen.werewolves.world.loot.MobLootModifier
All Implemented Interfaces:
net.minecraftforge.common.loot.IGlobalLootModifier

@ParametersAreNonnullByDefault public class MobLootModifier extends net.minecraftforge.common.loot.LootModifier
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.Codec<MobLootModifier>
     

    Fields inherited from class net.minecraftforge.common.loot.LootModifier

    conditions

    Fields inherited from interface net.minecraftforge.common.loot.IGlobalLootModifier

    DIRECT_CODEC, LOOT_CONDITIONS_CODEC
  • Constructor Summary

    Constructors
    Constructor
    Description
    MobLootModifier(net.minecraft.world.level.storage.loot.predicates.LootItemCondition[] conditionsIn, net.minecraft.world.level.storage.loot.LootTable lootTable)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    com.mojang.serialization.Codec<? extends net.minecraftforge.common.loot.IGlobalLootModifier>
     
    protected @NotNull 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 context)
     

    Methods inherited from class net.minecraftforge.common.loot.LootModifier

    apply, codecStart

    Methods inherited from class java.lang.Object

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

    • CODEC

      public static final com.mojang.serialization.Codec<MobLootModifier> CODEC
  • Constructor Details

    • MobLootModifier

      public MobLootModifier(net.minecraft.world.level.storage.loot.predicates.LootItemCondition[] conditionsIn, net.minecraft.world.level.storage.loot.LootTable lootTable)
  • Method Details

    • codec

      public com.mojang.serialization.Codec<? extends net.minecraftforge.common.loot.IGlobalLootModifier> codec()
    • doApply

      @NotNull protected @NotNull 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 context)
      Specified by:
      doApply in class net.minecraftforge.common.loot.LootModifier
    • builder

      public static MobLootModifier.Builder builder()