Interface ILootModifierBase

All Known Subinterfaces:
ILootPoolEntryModifier, ILootPoolModifier, ILootPoolSingletonEntryModifier, ILootTableModifier
All Known Implementing Classes:
AddEntryLootPoolModifier, AddPoolLootTableModifier, ModifyNestedLootTableModifier, ModifyPoolEntryLootTableModifier, SetQualityLootPoolEntryModifier, SetWeightLootPoolEntryModifier

public interface ILootModifierBase
  • Method Summary

    Modifier and Type
    Method
    Description
    default net.minecraft.world.level.storage.loot.LootPool.Builder
    add(net.minecraft.world.level.storage.loot.LootPool.Builder builder, net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer... entries)
     
    default net.minecraft.world.level.storage.loot.LootPool.Builder
    apply(net.minecraft.world.level.storage.loot.LootPool.Builder builder, net.minecraft.world.level.storage.loot.functions.LootItemFunction... functions)
     
    default net.minecraft.world.level.storage.loot.LootTable.Builder
    apply(net.minecraft.world.level.storage.loot.LootTable.Builder builder, net.minecraft.world.level.storage.loot.functions.LootItemFunction... functions)
     
    default net.minecraft.world.level.storage.loot.LootPool.Builder
    copy(net.minecraft.world.level.storage.loot.LootPool pool)
     
    default net.minecraft.world.level.storage.loot.LootTable.Builder
    copy(net.minecraft.world.level.storage.loot.LootTable table)
     
    default List<net.minecraft.world.level.storage.loot.predicates.LootItemCondition>
    getConditions(net.minecraft.world.level.storage.loot.LootPool pool)
     
    default List<net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer>
    getEntries(net.minecraft.world.level.storage.loot.LootPool pool)
     
    default List<net.minecraft.world.level.storage.loot.functions.LootItemFunction>
    getFunctions(net.minecraft.world.level.storage.loot.LootPool pool)
     
    default List<net.minecraft.world.level.storage.loot.functions.LootItemFunction>
    getFunctions(net.minecraft.world.level.storage.loot.LootTable lootTable)
     
    default List<net.minecraft.world.level.storage.loot.LootPool>
    getPools(net.minecraft.world.level.storage.loot.LootTable lootTable)
     
    default Optional<net.minecraft.resources.ResourceLocation>
    getRandomSequence(net.minecraft.world.level.storage.loot.LootTable lootTable)
     
    default net.minecraft.world.level.storage.loot.LootPool.Builder
    when(net.minecraft.world.level.storage.loot.LootPool.Builder builder, net.minecraft.world.level.storage.loot.predicates.LootItemCondition... conditions)
     
    default net.minecraft.world.level.storage.loot.LootTable.Builder
    withPool(net.minecraft.world.level.storage.loot.LootTable.Builder builder, net.minecraft.world.level.storage.loot.LootPool... pools)
     
  • Method Details

    • getRandomSequence

      default Optional<net.minecraft.resources.ResourceLocation> getRandomSequence(net.minecraft.world.level.storage.loot.LootTable lootTable)
    • getPools

      default List<net.minecraft.world.level.storage.loot.LootPool> getPools(net.minecraft.world.level.storage.loot.LootTable lootTable)
    • getFunctions

      default List<net.minecraft.world.level.storage.loot.functions.LootItemFunction> getFunctions(net.minecraft.world.level.storage.loot.LootTable lootTable)
    • withPool

      default net.minecraft.world.level.storage.loot.LootTable.Builder withPool(net.minecraft.world.level.storage.loot.LootTable.Builder builder, net.minecraft.world.level.storage.loot.LootPool... pools)
    • apply

      default net.minecraft.world.level.storage.loot.LootTable.Builder apply(net.minecraft.world.level.storage.loot.LootTable.Builder builder, net.minecraft.world.level.storage.loot.functions.LootItemFunction... functions)
    • copy

      default net.minecraft.world.level.storage.loot.LootTable.Builder copy(net.minecraft.world.level.storage.loot.LootTable table)
    • getEntries

      default List<net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer> getEntries(net.minecraft.world.level.storage.loot.LootPool pool)
    • getConditions

      default List<net.minecraft.world.level.storage.loot.predicates.LootItemCondition> getConditions(net.minecraft.world.level.storage.loot.LootPool pool)
    • getFunctions

      default List<net.minecraft.world.level.storage.loot.functions.LootItemFunction> getFunctions(net.minecraft.world.level.storage.loot.LootPool pool)
    • add

      default net.minecraft.world.level.storage.loot.LootPool.Builder add(net.minecraft.world.level.storage.loot.LootPool.Builder builder, net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer... entries)
    • when

      default net.minecraft.world.level.storage.loot.LootPool.Builder when(net.minecraft.world.level.storage.loot.LootPool.Builder builder, net.minecraft.world.level.storage.loot.predicates.LootItemCondition... conditions)
    • apply

      default net.minecraft.world.level.storage.loot.LootPool.Builder apply(net.minecraft.world.level.storage.loot.LootPool.Builder builder, net.minecraft.world.level.storage.loot.functions.LootItemFunction... functions)
    • copy

      default net.minecraft.world.level.storage.loot.LootPool.Builder copy(net.minecraft.world.level.storage.loot.LootPool pool)