Package net.minecraft.loot.context
Class LootContext.Builder
java.lang.Object
net.minecraft.loot.context.LootContext.Builder
- Enclosing class:
- LootContext
public static class LootContext.Builder extends Object
-
Field Summary
Fields Modifier and Type Field Description private Map<Identifier,LootContext.Dropper>dropsprivate floatluckprivate Map<LootContextParameter<?>,Object>parametersprivate Randomrandomprivate ServerWorldworld -
Constructor Summary
Constructors Constructor Description Builder(ServerWorld world) -
Method Summary
Modifier and Type Method Description LootContextbuild(LootContextType type)<T> Tget(LootContextParameter<T> parameter)<T> TgetNullable(LootContextParameter<T> parameter)ServerWorldgetWorld()LootContext.Builderluck(float luck)<T> LootContext.BuilderoptionalParameter(LootContextParameter<T> key, T value)<T> LootContext.Builderparameter(LootContextParameter<T> key, T value)LootContext.BuilderputDrop(Identifier id, LootContext.Dropper value)LootContext.Builderrandom(long seed)LootContext.Builderrandom(long seed, Random random)LootContext.Builderrandom(Random random)