net.minecraft.world.level.storage.loot

public class LootParams

ehc
net.minecraft.world.level.storage.loot.LootParams
net.minecraft.class_8567
net.minecraft.loot.context.LootContextParameterSet
net.minecraft.src.C_286926_
net.minecraft.world.level.storage.loot.LootParams

Field summary

Modifier and TypeField
private final ServerLevel
a
level
field_44883
world
f_286983_
private final Map<LootContextParam<?>, Object>
b
params
field_44884
parameters
f_286977_
private final Map<ResourceLocation, LootParams$DynamicDrop>
c
dynamicDrops
field_44885
dynamicDrops
f_286955_
private final float
d
luck
field_44886
luck
f_286957_

Constructor summary

ModifierConstructor
public (ServerLevel world, Map<LootContextParam<?>, Object> parameters, Map<ResourceLocation, LootParams$DynamicDrop> dynamicDrops, float luck)

Method summary

Modifier and TypeMethod
public ServerLevel
a()
getLevel()
method_51863()
getWorld()
m_287182_()
public boolean
a(eje<?> arg0)
hasParam(LootContextParam<?> arg0)
method_51865(class_169<?> arg0)
contains(LootContextParameter<?> parameter)
m_287166_(C_2968_<?> arg0)
public <T> T
b(eje<T> arg0)
getParameter(LootContextParam<T> arg0)
method_51867(class_169<T> arg0)
get(LootContextParameter<T> parameter)
m_287156_(C_2968_<T> arg0)
public <T> T
c(eje<T> arg0)
getOptionalParameter(LootContextParam<T> arg0)
method_51868(class_169<T> arg0)
method_51868(LootContextParameter<T> parameter)
m_287251_(C_2968_<T> arg0)
public <T> T
d(eje<T> arg0)
getParamOrNull(LootContextParam<T> arg0)
method_51869(class_169<T> arg0)
getOptional(LootContextParameter<T> parameter)
m_287267_(C_2968_<T> arg0)
public void
a(ahg arg0, Consumer<cmy> arg1)
addDynamicDrops(ResourceLocation arg0, Consumer<ItemStack> arg1)
method_51864(class_2960 arg0, Consumer<class_1799> arg1)
addDynamicDrops(Identifier id, Consumer<ItemStack> lootConsumer)
m_287256_(C_5265_ p_287711_, Consumer<C_1391_> arg1)
public float
b()
getLuck()
method_51866()
getLuck()
m_287164_()