net.minecraft.loot.context

public class LootWorldContext$Builder

net.minecraft.world.level.storage.loot.LootParams$Builder
net.minecraft.class_8567$class_8568
net.minecraft.loot.context.LootWorldContext$Builder

Field summary

Modifier and TypeField
private final ServerWorld
level
field_44887
world
private final ContextParameterMap$Builder
params
field_44888
parameters
private final Map<Identifier, LootWorldContext$DynamicDrop>
dynamicDrops
field_44889
dynamicDrops
private float
luck
field_44890
luck

Constructor summary

ModifierConstructor
public (ServerWorld world)

Method summary

Modifier and TypeMethod
public ServerWorld
getLevel()
method_51870()
getWorld()
public <T> LootWorldContext$Builder
withParameter(ContextKey<T> param, T value)
method_51874(class_169<T> arg0, T arg1)
add(ContextParameter<T> parameter, T value)
public <T> LootWorldContext$Builder
withOptionalParameter(ContextKey<T> param, T value)
method_51877(class_169<T> arg0, T arg1)
addOptional(ContextParameter<T> parameter, T value)
public <T> T
getParameter(ContextKey<T> param)
method_51873(class_169<T> arg0)
get(ContextParameter<T> parameter)
public <T> T
getOptionalParameter(ContextKey<T> param)
method_51876(class_169<T> arg0)
getOptional(ContextParameter<T> parameter)
public LootWorldContext$Builder
withDynamicDrop(Identifier location, LootParams$DynamicDrop dynamicDrop)
method_51872(class_2960 arg0, class_8567$class_49 arg1)
addDynamicDrop(Identifier id, LootWorldContext$DynamicDrop dynamicDrop)
public LootWorldContext$Builder
withLuck(float luck)
method_51871(float arg0)
luck(float luck)
public LootWorldContext
create(ContextKeySet contextKeySet)
method_51875(class_176 arg0)
build(ContextType contextType)