Class ExpandLootParams
java.lang.Object
com.blamejared.crafttweaker.natives.loot.param.ExpandLootParams
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddDynamicDrops(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.ServerLevelgetLevel(net.minecraft.world.level.storage.loot.LootParams internal) static floatgetLuck(net.minecraft.world.level.storage.loot.LootParams internal) static <T> TgetOptionalParameter(net.minecraft.world.level.storage.loot.LootParams internal, Class<T> tClass, net.minecraft.world.level.storage.loot.parameters.LootContextParam<T> param) static <T> TgetParameter(net.minecraft.world.level.storage.loot.LootParams internal, Class<T> tClass, net.minecraft.world.level.storage.loot.parameters.LootContextParam<T> param) static <T> TgetParamOrNull(net.minecraft.world.level.storage.loot.LootParams internal, Class<T> tClass, net.minecraft.world.level.storage.loot.parameters.LootContextParam<T> param) static <T> booleanhasParam(net.minecraft.world.level.storage.loot.LootParams internal, Class<T> tClass, net.minecraft.world.level.storage.loot.parameters.LootContextParam<T> param)
-
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> param) -
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)
-