Package net.minecraft.util.context
Class ContextMap
java.lang.Object
net.minecraft.util.context.ContextMap
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> T
getOptional
(ContextKey<T> p_381151_) <T> T
getOrDefault
(ContextKey<T> p_381114_, T p_380947_) <T> T
getOrThrow
(ContextKey<T> p_380981_) boolean
has
(ContextKey<?> p_380966_)
-
Field Details
-
EMPTY
-
params
-
-
Constructor Details
-
ContextMap
ContextMap(Map<ContextKey<?>, Object> p_381157_)
-
-
Method Details
-
has
-
getOrThrow
-
getOptional
-
getOrDefault
@Nullable @Contract("_,!null->!null; _,_->_") public <T> T getOrDefault(ContextKey<T> p_381114_, @Nullable T p_380947_)
-