Class ExpandLootParams

java.lang.Object
com.blamejared.crafttweaker.natives.loot.param.ExpandLootParams

@ZenRegister public final class ExpandLootParams extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    addDynamicDrops(net.minecraft.world.level.storage.loot.LootParams internal, net.minecraft.resources.ResourceLocation key, Consumer<net.minecraft.world.item.ItemStack> drop)
     
    static net.minecraft.server.level.ServerLevel
    getLevel(net.minecraft.world.level.storage.loot.LootParams internal)
     
    static float
    getLuck(net.minecraft.world.level.storage.loot.LootParams internal)
     
    static <T> T
    getOptionalParameter(net.minecraft.world.level.storage.loot.LootParams internal, Class<T> tClass, net.minecraft.world.level.storage.loot.parameters.LootContextParam<T> param)
     
    static <T> T
    getParameter(net.minecraft.world.level.storage.loot.LootParams internal, Class<T> tClass, net.minecraft.world.level.storage.loot.parameters.LootContextParam<T> param)
     
    static <T> T
    getParamOrNull(net.minecraft.world.level.storage.loot.LootParams internal, Class<T> tClass, net.minecraft.world.level.storage.loot.parameters.LootContextParam<T> param)
     
    static <T> boolean
    hasParam(net.minecraft.world.level.storage.loot.LootParams internal, Class<T> tClass, net.minecraft.world.level.storage.loot.parameters.LootContextParam<T> $$0)
     

    Methods inherited from class java.lang.Object

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

    • ExpandLootParams

      public ExpandLootParams()
  • Method Details

    • getLevel

      public static net.minecraft.server.level.ServerLevel getLevel(net.minecraft.world.level.storage.loot.LootParams internal)
    • hasParam

      public static <T> boolean hasParam(net.minecraft.world.level.storage.loot.LootParams internal, Class<T> tClass, net.minecraft.world.level.storage.loot.parameters.LootContextParam<T> $$0)
    • getParameter

      public static <T> T getParameter(net.minecraft.world.level.storage.loot.LootParams internal, Class<T> tClass, net.minecraft.world.level.storage.loot.parameters.LootContextParam<T> param)
    • getOptionalParameter

      public static <T> T getOptionalParameter(net.minecraft.world.level.storage.loot.LootParams internal, Class<T> tClass, net.minecraft.world.level.storage.loot.parameters.LootContextParam<T> param)
    • getParamOrNull

      public static <T> T getParamOrNull(net.minecraft.world.level.storage.loot.LootParams internal, Class<T> tClass, net.minecraft.world.level.storage.loot.parameters.LootContextParam<T> param)
    • addDynamicDrops

      public static void addDynamicDrops(net.minecraft.world.level.storage.loot.LootParams internal, net.minecraft.resources.ResourceLocation key, Consumer<net.minecraft.world.item.ItemStack> drop)
    • getLuck

      public static float getLuck(net.minecraft.world.level.storage.loot.LootParams internal)