net.minecraft.util.context

public final class ContextParameterMap

net.minecraft.util.context.ContextMap
net.minecraft.class_10352
net.minecraft.util.context.ContextParameterMap

Field summary

Modifier and TypeField
public static final ContextParameterMap
EMPTY
field_1_9766
EMPTY
private final Map<ContextParameter<?>, Object>
params
field_54893
map

Constructor summary

ModifierConstructor
private (Map<ContextParameter<?>, Object> map)

Method summary

Modifier and TypeMethod
public static ContextParameterMap$Builder
builder()
method_1_9397()
builder()
public boolean
has(ContextKey<?> key)
method_64965(class_169<?> arg0)
contains(ContextParameter<?> parameter)
public <T> T
getOrThrow(ContextKey<T> key)
method_64967(class_169<T> arg0)
getOrThrow(ContextParameter<T> parameter)
public <T> T
get(ContextKey<T> key)
method_64968(class_169<T> arg0)
getNullable(ContextParameter<T> parameter)
public <T> T
getOrDefault(ContextKey<T> param, T _default)
method_64966(class_169<T> arg0, T arg1)
getOrDefault(ContextParameter<T> parameter, T defaultValue)