net.minecraft.world.level.storage.loot

public class LootContext

dka
net.minecraft.world.level.storage.loot.LootContext
net.minecraft.class_47
net.minecraft.unmapped.C_iakykpgh
net.minecraft.loot.context.LootContext
net.minecraft.src.C_2811_
net.minecraft.world.level.storage.loot.LootTableInfo

Field summary

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

Constructor summary

ModifierConstructor
(Random 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(dme<?> arg0)
hasParam(LootContextParam<?> arg0)
method_300(class_169<?> arg0)
m_vbxysawq(C_xsaigefq<?> arg0)
hasParameter(LootContextParameter<?> parameter)
m_78936_(C_2968_<?> arg0)
public <T> T
b(dme<T> arg0)
getParam(LootContextParam<T> arg0)
method_35508(class_169<T> arg0)
m_ubbeilnd(C_xsaigefq<T> arg0)
requireParameter(LootContextParameter<T> parameter)
m_165124_(C_2968_<T> arg0)
public void
a(yh arg0, Consumer<bue> arg1)
addDynamicDrops(ResourceLocation arg0, Consumer<ItemStack> arg1)
method_297(class_2960 arg0, Consumer<class_1799> arg1)
m_tjqtsntr(C_ncpywfca arg0, Consumer<C_sddaxwyk> arg1)
drop(Identifier id, Consumer<ItemStack> lootConsumer)
m_78942_(C_5265_ p_78944_, Consumer<C_1391_> arg1)
public <T> T
c(dme<T> arg0)
getParamOrNull(LootContextParam<T> arg0)
method_296(class_169<T> arg0)
m_xpnkgluh(C_xsaigefq<T> arg0)
get(LootContextParameter<T> parameter)
m_78953_(C_2968_<T> arg0)
public boolean
a(dkd arg0)
addVisitedTable(LootTable arg0)
method_298(class_52 arg0)
m_uuszvqlx(C_inwsuliy arg0)
markActive(LootTable table)
m_78934_(C_2822_ arg0)
public void
b(dkd arg0)
removeVisitedTable(LootTable arg0)
method_295(class_52 arg0)
m_mrfvsbxe(C_inwsuliy arg0)
markInactive(LootTable table)
m_78946_(C_2822_ arg0)
public boolean
a(dmt arg0)
addVisitedCondition(LootItemCondition arg0)
method_22555(class_5341 arg0)
m_bbxnwhaq(C_vqkczpuv arg0)
addCondition(LootCondition condition)
m_78938_(C_3004_ arg0)
public void
b(dmt arg0)
removeVisitedCondition(LootItemCondition arg0)
method_22557(class_5341 arg0)
m_eldmlfua(C_vqkczpuv arg0)
removeCondition(LootCondition condition)
m_78948_(C_3004_ arg0)
public LootTable
a(yh arg0)
getLootTable(ResourceLocation arg0)
method_22556(class_2960 arg0)
m_waenynak(C_ncpywfca arg0)
getTable(Identifier id)
m_78940_(C_5265_ arg0)
public LootItemCondition
b(yh arg0)
getCondition(ResourceLocation arg0)
method_22558(class_2960 arg0)
m_ktxckrdf(C_ncpywfca arg0)
getCondition(Identifier id)
m_78950_(C_5265_ arg0)
public Random
a()
getRandom()
method_294()
m_wajkhgmd()
getRandom()
m_78933_()
public float
b()
getLuck()
method_302()
m_whhxcymq()
getLuck()
m_78945_()
public ServerLevel
c()
getLevel()
method_299()
m_izzeghzt()
getWorld()
m_78952_()