Class LogShardsLootModifierHandler

java.lang.Object
net.neoforged.neoforge.common.loot.LootModifier
tech.anonymoushacker1279.immersiveweapons.world.level.loot.LogShardsLootModifierHandler
All Implemented Interfaces:
net.neoforged.neoforge.common.loot.IGlobalLootModifier

public class LogShardsLootModifierHandler extends net.neoforged.neoforge.common.loot.LootModifier
  • Field Summary

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

    Fields inherited from class net.neoforged.neoforge.common.loot.LootModifier

    conditions

    Fields inherited from interface net.neoforged.neoforge.common.loot.IGlobalLootModifier

    CONDITIONAL_CODEC, DIRECT_CODEC, LOOT_CONDITIONS_CODEC
  • Method Summary

    Modifier and Type
    Method
    Description
    com.mojang.serialization.Codec<? extends net.neoforged.neoforge.common.loot.IGlobalLootModifier>
     
    @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)
    Apply loot table modifications.

    Methods inherited from class net.neoforged.neoforge.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

  • Method Details

    • doApply

      @NotNull public @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)
      Apply loot table modifications.
      Specified by:
      doApply in class net.neoforged.neoforge.common.loot.LootModifier
      Parameters:
      generatedLoot - the List of generated items
      context - the LootContext instance
      Returns:
      List extending ItemStack
    • codec

      public com.mojang.serialization.Codec<? extends net.neoforged.neoforge.common.loot.IGlobalLootModifier> codec()