Class ContextParameterMap

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

public class ContextParameterMap extends Object
Mappings:
Namespace Name
named net/minecraft/util/context/ContextParameterMap
intermediary net/minecraft/class_10352
official bbp
  • Field Details

    • map

      private final Map<ContextParameter<?>,Object> map
      Mappings:
      Namespace Name Mixin selector
      named map Lnet/minecraft/util/context/ContextParameterMap;map:Ljava/util/Map;
      intermediary field_54893 Lnet/minecraft/class_10352;field_54893:Ljava/util/Map;
      official a Lbbp;a:Ljava/util/Map;
  • Constructor Details

    • ContextParameterMap

      ContextParameterMap(Map<ContextParameter<?>,Object> map)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/util/context/ContextParameterMap;<init>(Ljava/util/Map;)V
      intermediary <init> Lnet/minecraft/class_10352;<init>(Ljava/util/Map;)V
      official <init> Lbbp;<init>(Ljava/util/Map;)V
  • Method Details

    • contains

      public boolean contains(ContextParameter<?> parameter)
      Mappings:
      Namespace Name Mixin selector
      named contains Lnet/minecraft/util/context/ContextParameterMap;contains(Lnet/minecraft/util/context/ContextParameter;)Z
      intermediary method_64965 Lnet/minecraft/class_10352;method_64965(Lnet/minecraft/class_169;)Z
      official a Lbbp;a(Lbbn;)Z
    • getOrThrow

      public <T> T getOrThrow(ContextParameter<T> parameter)
      Mappings:
      Namespace Name Mixin selector
      named getOrThrow Lnet/minecraft/util/context/ContextParameterMap;getOrThrow(Lnet/minecraft/util/context/ContextParameter;)Ljava/lang/Object;
      intermediary method_64967 Lnet/minecraft/class_10352;method_64967(Lnet/minecraft/class_169;)Ljava/lang/Object;
      official b Lbbp;b(Lbbn;)Ljava/lang/Object;
    • getNullable

      @Nullable public <T> T getNullable(ContextParameter<T> parameter)
      Mappings:
      Namespace Name Mixin selector
      named getNullable Lnet/minecraft/util/context/ContextParameterMap;getNullable(Lnet/minecraft/util/context/ContextParameter;)Ljava/lang/Object;
      intermediary method_64968 Lnet/minecraft/class_10352;method_64968(Lnet/minecraft/class_169;)Ljava/lang/Object;
      official c Lbbp;c(Lbbn;)Ljava/lang/Object;
    • getOrDefault

      @Contract("_,!null->!null; _,_->_") @Nullable public <T> T getOrDefault(ContextParameter<T> parameter, @Nullable T defaultValue)
      Mappings:
      Namespace Name Mixin selector
      named getOrDefault Lnet/minecraft/util/context/ContextParameterMap;getOrDefault(Lnet/minecraft/util/context/ContextParameter;Ljava/lang/Object;)Ljava/lang/Object;
      intermediary method_64966 Lnet/minecraft/class_10352;method_64966(Lnet/minecraft/class_169;Ljava/lang/Object;)Ljava/lang/Object;
      official a Lbbp;a(Lbbn;Ljava/lang/Object;)Ljava/lang/Object;