net.minecraft.world.level.storage.loot

public class LootContext

ewp
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(bbn<?> arg0)
hasParameter(ContextKey<?> arg0)
method_300(class_169<?> arg0)
hasParameter(ContextParameter<?> parameter)
public <T> T
b(bbn<T> arg0)
getParameter(ContextKey<T> arg0)
method_35508(class_169<T> arg0)
requireParameter(ContextParameter<T> parameter)
public <T> T
c(bbn<T> arg0)
getOptionalParameter(ContextKey<T> arg0)
method_65013(class_169<T> arg0)
get(ContextParameter<T> parameter)
public void
a(alz arg0, Consumer<cxp> 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(ewp$c<?> arg0)
hasVisitedElement(LootContext$VisitedEntry<?> arg0)
method_51184(class_47$class_8487<?> arg0)
isActive(LootContext$Entry<?> entry)
public boolean
b(ewp$c<?> arg0)
pushVisitedElement(LootContext$VisitedEntry<?> arg0)
method_298(class_47$class_8487<?> arg0)
markActive(LootContext$Entry<?> entry)
public void
c(ewp$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(ewu arg0)
createVisitedEntry(LootTable arg0)
method_51185(class_52 arg0)
table(LootTable table)
public static LootContext$VisitedEntry<LootItemCondition>
a(ezy arg0)
createVisitedEntry(LootItemCondition arg0)
method_51187(class_5341 arg0)
predicate(LootCondition predicate)
public static LootContext$VisitedEntry<LootItemFunction>
a(eyd arg0)
createVisitedEntry(LootItemFunction arg0)
method_51186(class_117 arg0)
itemModifier(LootFunction itemModifier)