All Known Implementing Classes:
ConditionAddAction, EntryAddAction, EntryItemSetAction, EntryRemoveAction, PoolAddAction, PoolRemoveAction

public interface LootModifierAction
A loot modifier action
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    A builder for loot modifier actions.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.Codec<LootModifierAction>
    Codec containing the type id
    static final int
    Bitmask specifying that the action modified an entry
    static final int
    Bitmask specifying that the action modified nothing
    static final int
    Bitmask specifying that the action modified a pool
    static final int
    Bitmask specifying that the action modified a table
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    apply(@NotNull LootModifierContext context)
    Applies this action to the provided context
    Returns the type of this action.
  • Field Details

    • CODEC

      static final com.mojang.serialization.Codec<LootModifierAction> CODEC
      Codec containing the type id
    • MODIFIED_NONE

      static final int MODIFIED_NONE
      Bitmask specifying that the action modified nothing
      See Also:
    • MODIFIED_TABLE

      static final int MODIFIED_TABLE
      Bitmask specifying that the action modified a table
      See Also:
    • MODIFIED_POOL

      static final int MODIFIED_POOL
      Bitmask specifying that the action modified a pool
      See Also:
    • MODIFIED_ENTRY

      static final int MODIFIED_ENTRY
      Bitmask specifying that the action modified an entry
      See Also:
  • Method Details