net.minecraft.world.level.storage.loot

public class LootContext

dzk
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 LootParams
a
params
field_44881
parameters
f_78914_
private final RandomSource
b
random
field_923
random
f_78907_
private final LootDataResolver
c
lootDataResolver
field_44490
dataLookup
f_278421_
private final Set<LootContext$VisitedEntry<?>>
d
visitedElements
field_927
activeEntries
f_278466_

Constructor summary

ModifierConstructor
(LootParams parameters, RandomSource random, LootDataResolver dataLookup)

Method summary

Modifier and TypeMethod
public boolean
a(ebt<?> arg0)
hasParam(LootContextParam<?> arg0)
method_300(class_169<?> arg0)
hasParameter(LootContextParameter<?> parameter)
m_78936_(C_2968_<?> arg0)
public <T> T
b(ebt<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(acq arg0, Consumer<cfz> 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(ebt<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(dzk$c<?> arg0)
hasVisitedElement(LootContext$VisitedEntry<?> arg0)
method_51184(class_47$class_8487<?> arg0)
isActive(LootContext$Entry<?> entry)
m_278628_(C_2811_$C_278353_<?> arg0)
public boolean
b(dzk$c<?> arg0)
pushVisitedElement(LootContext$VisitedEntry<?> arg0)
method_298(class_47$class_8487<?> arg0)
markActive(LootContext$Entry<?> entry)
m_278759_(C_2811_$C_278353_<?> arg0)
public void
c(dzk$c<?> arg0)
popVisitedElement(LootContext$VisitedEntry<?> arg0)
method_295(class_47$class_8487<?> arg0)
markInactive(LootContext$Entry<?> entry)
m_278639_(C_2811_$C_278353_<?> arg0)
public LootDataResolver
a()
getResolver()
method_51183()
getDataLookup()
m_278643_()
public RandomSource
b()
getRandom()
method_294()
getRandom()
m_230907_()
public float
c()
getLuck()
method_302()
getLuck()
m_78945_()
public ServerLevel
d()
getLevel()
method_299()
getWorld()
m_78952_()
public static LootContext$VisitedEntry<LootTable>
a(dzs arg0)
createVisitedEntry(LootTable arg0)
method_51185(class_52 arg0)
table(LootTable table)
m_278811_(C_2822_ p_279327_)
public static LootContext$VisitedEntry<LootItemCondition>
a(eck arg0)
createVisitedEntry(LootItemCondition arg0)
method_51187(class_5341 arg0)
predicate(LootCondition predicate)
m_278785_(C_3004_ p_279250_)
public static LootContext$VisitedEntry<LootItemFunction>
a(eaz arg0)
createVisitedEntry(LootItemFunction arg0)
method_51186(class_117 arg0)
itemModifier(LootFunction itemModifier)
m_278853_(C_2928_ p_279163_)