Class ExpandLootParamsBuilder

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

@ZenRegister public final class ExpandLootParamsBuilder extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.world.level.storage.loot.LootParams
    build(net.minecraft.world.level.storage.loot.LootParams.Builder internal, net.minecraft.world.level.storage.loot.parameters.LootContextParamSet params)
     
    static net.minecraft.world.level.storage.loot.LootParams.Builder
    create(net.minecraft.server.level.ServerLevel level)
     
    static net.minecraft.server.level.ServerLevel
    getLevel(net.minecraft.world.level.storage.loot.LootParams.Builder internal)
     
    static <T> T
    getOptionalParameter(net.minecraft.world.level.storage.loot.LootParams.Builder 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.Builder internal, Class<T> tClass, net.minecraft.world.level.storage.loot.parameters.LootContextParam<T> param)
     
    static net.minecraft.world.level.storage.loot.LootParams.Builder
    withDynamicDrop(net.minecraft.world.level.storage.loot.LootParams.Builder internal, net.minecraft.resources.ResourceLocation key, net.minecraft.world.level.storage.loot.LootParams.DynamicDrop drop)
     
    static net.minecraft.world.level.storage.loot.LootParams.Builder
    withLuck(net.minecraft.world.level.storage.loot.LootParams.Builder internal, float luck)
     
    static <T> net.minecraft.world.level.storage.loot.LootParams.Builder
    withOptionalParameter(net.minecraft.world.level.storage.loot.LootParams.Builder internal, Class<T> tClass, net.minecraft.world.level.storage.loot.parameters.LootContextParam<T> param, T value)
     
    static <T> net.minecraft.world.level.storage.loot.LootParams.Builder
    withParameter(net.minecraft.world.level.storage.loot.LootParams.Builder internal, Class<T> tClass, net.minecraft.world.level.storage.loot.parameters.LootContextParam<T> param, T value)
     

    Methods inherited from class java.lang.Object

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

    • ExpandLootParamsBuilder

      public ExpandLootParamsBuilder()
  • Method Details

    • create

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

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

      public static <T> net.minecraft.world.level.storage.loot.LootParams.Builder withParameter(net.minecraft.world.level.storage.loot.LootParams.Builder internal, Class<T> tClass, net.minecraft.world.level.storage.loot.parameters.LootContextParam<T> param, T value)
    • withOptionalParameter

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

      public static <T> T getParameter(net.minecraft.world.level.storage.loot.LootParams.Builder 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.Builder internal, Class<T> tClass, net.minecraft.world.level.storage.loot.parameters.LootContextParam<T> param)
    • withDynamicDrop

      public static net.minecraft.world.level.storage.loot.LootParams.Builder withDynamicDrop(net.minecraft.world.level.storage.loot.LootParams.Builder internal, net.minecraft.resources.ResourceLocation key, net.minecraft.world.level.storage.loot.LootParams.DynamicDrop drop)
    • withLuck

      public static net.minecraft.world.level.storage.loot.LootParams.Builder withLuck(net.minecraft.world.level.storage.loot.LootParams.Builder internal, float luck)
    • build

      public static net.minecraft.world.level.storage.loot.LootParams build(net.minecraft.world.level.storage.loot.LootParams.Builder internal, net.minecraft.world.level.storage.loot.parameters.LootContextParamSet params)