net.minecraft.world.level.storage.loot

public class LootContext

fdj
net.minecraft.world.level.storage.loot.LootContext

Field summary

Modifier and TypeField
private final LootParams
a
params
private final RandomSource
b
random
private final HolderGetter$Provider
c
lootDataResolver
private final Set<LootContext$VisitedEntry<?>>
d
visitedElements

Constructor summary

ModifierConstructor
(LootParams arg0, RandomSource arg1, HolderGetter$Provider arg2)

Method summary

Modifier and TypeMethod
public boolean
a(bdn<?> arg0)
hasParameter(ContextKey<?> arg0)
public <T> T
b(bdn<T> arg0)
getParameter(ContextKey<T> arg0)
public <T> T
c(bdn<T> arg0)
getOptionalParameter(ContextKey<T> arg0)
public void
a(ame arg0, Consumer<dcv> arg1)
addDynamicDrops(ResourceLocation arg0, Consumer<ItemStack> arg1)
public boolean
a(fdj$c<?> arg0)
hasVisitedElement(LootContext$VisitedEntry<?> arg0)
public boolean
b(fdj$c<?> arg0)
pushVisitedElement(LootContext$VisitedEntry<?> arg0)
public void
c(fdj$c<?> arg0)
popVisitedElement(LootContext$VisitedEntry<?> arg0)
public HolderGetter$Provider
a()
getResolver()
public RandomSource
b()
getRandom()
public float
c()
getLuck()
public ServerLevel
d()
getLevel()
public static LootContext$VisitedEntry<LootTable>
a(fdo arg0)
createVisitedEntry(LootTable arg0)
public static LootContext$VisitedEntry<LootItemCondition>
a(fgs arg0)
createVisitedEntry(LootItemCondition arg0)
public static LootContext$VisitedEntry<LootItemFunction>
a(fex arg0)
createVisitedEntry(LootItemFunction arg0)