net.minecraft.world.level.storage.loot

public class LootContext

dsd
net.minecraft.world.level.storage.loot.LootContext
net.minecraft.class_47
net.minecraft.loot.context.LootContext
net.minecraft.src.C_2811_
net.minecraft.world.level.storage.loot.LootTableInfo

Field summary

Modifier and TypeField
private final RandomSource
a
random
field_923
random
f_78907_
private final float
b
luck
field_926
luck
f_78908_
private final ServerLevel
c
level
field_928
world
f_78909_
private final Function<ResourceLocation, LootTable>
d
lootTables
field_924
tableGetter
f_78910_
private final Set<LootTable>
e
visitedTables
field_927
activeTables
f_78911_
private final Function<ResourceLocation, LootItemCondition>
f
conditions
field_20750
conditionGetter
f_78912_
private final Set<LootItemCondition>
g
visitedConditions
field_20751
conditions
f_78913_
private final Map<LootContextParam<?>, Object>
h
params
field_925
parameters
f_78914_
private final Map<ResourceLocation, LootContext$DynamicDrop>
i
dynamicDrops
field_929
drops
f_78915_

Constructor summary

ModifierConstructor
(RandomSource random, float luck, ServerLevel world, Function<ResourceLocation, LootTable> tableGetter, Function<ResourceLocation, LootItemCondition> conditionGetter, Map<LootContextParam<?>, Object> parameters, Map<ResourceLocation, LootContext$DynamicDrop> drops)

Method summary

Modifier and TypeMethod
public boolean
a(dui<?> arg0)
hasParam(LootContextParam<?> arg0)
method_300(class_169<?> arg0)
hasParameter(LootContextParameter<?> parameter)
m_78936_(C_2968_<?> arg0)
public <T> T
b(dui<T> arg0)
getParam(LootContextParam<T> arg0)
method_35508(class_169<T> arg0)
requireParameter(LootContextParameter<T> parameter)
m_165124_(C_2968_<T> arg0)
public void
a(abb arg0, Consumer<cax> arg1)
addDynamicDrops(ResourceLocation arg0, Consumer<ItemStack> arg1)
method_297(class_2960 arg0, Consumer<class_1799> arg1)
drop(Identifier id, Consumer<ItemStack> lootConsumer)
m_78942_(C_5265_ p_78944_, Consumer<C_1391_> arg1)
public <T> T
c(dui<T> arg0)
getParamOrNull(LootContextParam<T> arg0)
method_296(class_169<T> arg0)
get(LootContextParameter<T> parameter)
m_78953_(C_2968_<T> arg0)
public boolean
a(dsg arg0)
addVisitedTable(LootTable arg0)
method_298(class_52 arg0)
markActive(LootTable table)
m_78934_(C_2822_ arg0)
public void
b(dsg arg0)
removeVisitedTable(LootTable arg0)
method_295(class_52 arg0)
markInactive(LootTable table)
m_78946_(C_2822_ arg0)
public boolean
a(dux arg0)
addVisitedCondition(LootItemCondition arg0)
method_22555(class_5341 arg0)
addCondition(LootCondition condition)
m_78938_(C_3004_ arg0)
public void
b(dux arg0)
removeVisitedCondition(LootItemCondition arg0)
method_22557(class_5341 arg0)
removeCondition(LootCondition condition)
m_78948_(C_3004_ arg0)
public LootTable
a(abb arg0)
getLootTable(ResourceLocation arg0)
method_22556(class_2960 arg0)
getTable(Identifier id)
m_78940_(C_5265_ arg0)
public LootItemCondition
b(abb arg0)
getCondition(ResourceLocation arg0)
method_22558(class_2960 arg0)
getCondition(Identifier id)
m_78950_(C_5265_ arg0)
public RandomSource
a()
getRandom()
method_294()
getRandom()
m_230907_()
public float
b()
getLuck()
method_302()
getLuck()
m_78945_()
public ServerLevel
c()
getLevel()
method_299()
getWorld()
m_78952_()