Class ContextMap

java.lang.Object
net.minecraft.util.context.ContextMap

public class ContextMap extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • has

      public boolean has(ContextKey<?> pKey)
    • getOrThrow

      public <T> T getOrThrow(ContextKey<T> pKey)
    • getOptional

      @Nullable public <T> T getOptional(ContextKey<T> pKey)
    • getOrDefault

      @Nullable @Contract("_,!null->!null; _,_->_") public <T> T getOrDefault(ContextKey<T> pKey, @Nullable T pDefaultValue)