Interface ILootPoolModifier

All Superinterfaces:
ILootModifierBase, ILootTableModifier
All Known Implementing Classes:
AddEntryLootPoolModifier, ModifyPoolEntryLootTableModifier

public interface ILootPoolModifier extends ILootTableModifier
  • Field Summary

    Fields inherited from interface com.petrolpark.core.data.loot.modifier.ILootTableModifier

    CODEC, TYPED_CODEC
  • Method Summary

    Modifier and Type
    Method
    Description
    default net.minecraft.world.level.storage.loot.LootTable
    modify(net.minecraft.core.HolderLookup.Provider registries, net.minecraft.world.level.storage.loot.LootTable originalTable)
     
    net.minecraft.world.level.storage.loot.LootPool.Builder
    modifyPool(net.minecraft.core.HolderLookup.Provider registries, net.minecraft.world.level.storage.loot.LootTable lootTable, net.minecraft.world.level.storage.loot.LootPool pool)
     
    static <T extends ILootPoolModifier>
    com.mojang.datafixers.Products.P1<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<T>,com.mojang.datafixers.util.Either<String,Integer>>
    poolField(com.mojang.serialization.codecs.RecordCodecBuilder.Instance<T> instance)
     
    com.mojang.datafixers.util.Either<String,Integer>
     

    Methods inherited from interface com.petrolpark.core.data.loot.modifier.ILootModifierBase

    add, apply, apply, copy, copy, getConditions, getEntries, getFunctions, getFunctions, getPools, getRandomSequence, when, withPool

    Methods inherited from interface com.petrolpark.core.data.loot.modifier.ILootTableModifier

    getType
  • Method Details

    • poolField

      static <T extends ILootPoolModifier> com.mojang.datafixers.Products.P1<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<T>,com.mojang.datafixers.util.Either<String,Integer>> poolField(com.mojang.serialization.codecs.RecordCodecBuilder.Instance<T> instance)
    • poolIdentifier

      com.mojang.datafixers.util.Either<String,Integer> poolIdentifier()
    • modify

      @NonExtendable default net.minecraft.world.level.storage.loot.LootTable modify(net.minecraft.core.HolderLookup.Provider registries, net.minecraft.world.level.storage.loot.LootTable originalTable)
      Specified by:
      modify in interface ILootTableModifier
    • modifyPool

      net.minecraft.world.level.storage.loot.LootPool.Builder modifyPool(net.minecraft.core.HolderLookup.Provider registries, net.minecraft.world.level.storage.loot.LootTable lootTable, net.minecraft.world.level.storage.loot.LootPool pool)