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<?> p_380966_)
    • getOrThrow

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

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

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