Class ContextParameterMap.Builder

java.lang.Object
net.minecraft.util.context.ContextParameterMap.Builder
Enclosing class:
ContextParameterMap

public static class ContextParameterMap.Builder extends Object
Mappings:
Namespace Name
named net/minecraft/util/context/ContextParameterMap$Builder
intermediary net/minecraft/class_10352$class_10353
official bbp$a
  • Field Details

    • map

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

    • Builder

      public Builder()
  • Method Details

    • add

      public <T> ContextParameterMap.Builder add(ContextParameter<T> parameter, T value)
      Mappings:
      Namespace Name Mixin selector
      named add Lnet/minecraft/util/context/ContextParameterMap$Builder;add(Lnet/minecraft/util/context/ContextParameter;Ljava/lang/Object;)Lnet/minecraft/util/context/ContextParameterMap$Builder;
      intermediary method_64970 Lnet/minecraft/class_10352$class_10353;method_64970(Lnet/minecraft/class_169;Ljava/lang/Object;)Lnet/minecraft/class_10352$class_10353;
      official a Lbbp$a;a(Lbbn;Ljava/lang/Object;)Lbbp$a;
    • addNullable

      public <T> ContextParameterMap.Builder addNullable(ContextParameter<T> parameter, @Nullable T value)
      Mappings:
      Namespace Name Mixin selector
      named addNullable Lnet/minecraft/util/context/ContextParameterMap$Builder;addNullable(Lnet/minecraft/util/context/ContextParameter;Ljava/lang/Object;)Lnet/minecraft/util/context/ContextParameterMap$Builder;
      intermediary method_64973 Lnet/minecraft/class_10352$class_10353;method_64973(Lnet/minecraft/class_169;Ljava/lang/Object;)Lnet/minecraft/class_10352$class_10353;
      official b Lbbp$a;b(Lbbn;Ljava/lang/Object;)Lbbp$a;
    • getOrThrow

      public <T> T getOrThrow(ContextParameter<T> parameter)
      Mappings:
      Namespace Name Mixin selector
      named getOrThrow Lnet/minecraft/util/context/ContextParameterMap$Builder;getOrThrow(Lnet/minecraft/util/context/ContextParameter;)Ljava/lang/Object;
      intermediary method_64969 Lnet/minecraft/class_10352$class_10353;method_64969(Lnet/minecraft/class_169;)Ljava/lang/Object;
      official a Lbbp$a;a(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$Builder;getNullable(Lnet/minecraft/util/context/ContextParameter;)Ljava/lang/Object;
      intermediary method_64972 Lnet/minecraft/class_10352$class_10353;method_64972(Lnet/minecraft/class_169;)Ljava/lang/Object;
      official b Lbbp$a;b(Lbbn;)Ljava/lang/Object;
    • build

      public ContextParameterMap build(ContextType type)
      Mappings:
      Namespace Name Mixin selector
      named build Lnet/minecraft/util/context/ContextParameterMap$Builder;build(Lnet/minecraft/util/context/ContextType;)Lnet/minecraft/util/context/ContextParameterMap;
      intermediary method_64971 Lnet/minecraft/class_10352$class_10353;method_64971(Lnet/minecraft/class_176;)Lnet/minecraft/class_10352;
      official a Lbbp$a;a(Lbbo;)Lbbp;