net.minecraft.util.context

public class ContextParameterMap

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

Field summary

Modifier and TypeField
private final Map<ContextParameter<?>, Object>
params
field_54893
map

Constructor summary

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

Method summary

Modifier and TypeMethod
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
getOptional(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)