net.minecraft.world.level.storage.loot

public class LootContext

evs
net.minecraft.world.level.storage.loot.LootContext
net.minecraft.class_47
net.minecraft.loot.context.LootContext
net.minecraft.world.level.storage.loot.LootTableInfo

Field summary

Modifier and TypeField
private final LootParams
a
params
field_44881
worldContext
private final RandomSource
b
random
field_923
random
private final HolderGetter$Provider
c
lootDataResolver
field_44490
lookup
private final Set<LootContext$VisitedEntry<?>>
d
visitedElements
field_927
activeEntries

Constructor summary

ModifierConstructor
(LootParams worldContext, RandomSource random, HolderGetter$Provider lookup)

Method summary

Modifier and TypeMethod
public boolean
a(bai<?> arg0)
hasParameter(ContextKey<?> arg0)
method_300(class_169<?> arg0)
hasParameter(ContextParameter<?> parameter)
public <T> T
b(bai<T> arg0)
getParameter(ContextKey<T> arg0)
method_35508(class_169<T> arg0)
requireParameter(ContextParameter<T> parameter)
public <T> T
c(bai<T> arg0)
getOptionalParameter(ContextKey<T> arg0)
method_65013(class_169<T> arg0)
get(ContextParameter<T> parameter)
public void
a(akv arg0, Consumer<cwq> arg1)
addDynamicDrops(ResourceLocation arg0, Consumer<ItemStack> arg1)
method_297(class_2960 arg0, Consumer<class_1799> arg1)
drop(Identifier id, Consumer<ItemStack> lootConsumer)
public boolean
a(evs$c<?> arg0)
hasVisitedElement(LootContext$VisitedEntry<?> arg0)
method_51184(class_47$class_8487<?> arg0)
isActive(LootContext$Entry<?> entry)
public boolean
b(evs$c<?> arg0)
pushVisitedElement(LootContext$VisitedEntry<?> arg0)
method_298(class_47$class_8487<?> arg0)
markActive(LootContext$Entry<?> entry)
public void
c(evs$c<?> arg0)
popVisitedElement(LootContext$VisitedEntry<?> arg0)
method_295(class_47$class_8487<?> arg0)
markInactive(LootContext$Entry<?> entry)
public HolderGetter$Provider
a()
getResolver()
method_51183()
getLookup()
public RandomSource
b()
getRandom()
method_294()
getRandom()
public float
c()
getLuck()
method_302()
getLuck()
public ServerLevel
d()
getLevel()
method_299()
getWorld()
public static LootContext$VisitedEntry<LootTable>
a(evx arg0)
createVisitedEntry(LootTable arg0)
method_51185(class_52 arg0)
table(LootTable table)
public static LootContext$VisitedEntry<LootItemCondition>
a(ezb arg0)
createVisitedEntry(LootItemCondition arg0)
method_51187(class_5341 arg0)
predicate(LootCondition predicate)
public static LootContext$VisitedEntry<LootItemFunction>
a(exg arg0)
createVisitedEntry(LootItemFunction arg0)
method_51186(class_117 arg0)
itemModifier(LootFunction itemModifier)