Class ExpandLootParamsBuilder
java.lang.Object
com.blamejared.crafttweaker.natives.loot.param.ExpandLootParamsBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.world.level.storage.loot.LootParamsbuild(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.Buildercreate(net.minecraft.server.level.ServerLevel level) static net.minecraft.server.level.ServerLevelgetLevel(net.minecraft.world.level.storage.loot.LootParams.Builder internal) static <T> TgetOptionalParameter(net.minecraft.world.level.storage.loot.LootParams.Builder internal, Class<T> tClass, net.minecraft.world.level.storage.loot.parameters.LootContextParam<T> param) static <T> TgetParameter(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.BuilderwithDynamicDrop(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.BuilderwithLuck(net.minecraft.world.level.storage.loot.LootParams.Builder internal, float luck) static <T> net.minecraft.world.level.storage.loot.LootParams.BuilderwithOptionalParameter(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.BuilderwithParameter(net.minecraft.world.level.storage.loot.LootParams.Builder internal, Class<T> tClass, net.minecraft.world.level.storage.loot.parameters.LootContextParam<T> param, T value)
-
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)
-