Interface ComponentMap

All Superinterfaces:
Iterable<Component<?>>
All Known Implementing Classes:
ComponentMap.Builder.SimpleComponentMap, ComponentMapImpl

public interface ComponentMap extends Iterable<Component<?>>
Mappings:
Namespace Name
named net/minecraft/component/ComponentMap
intermediary net/minecraft/class_9323
official kj
  • Field Details

    • EMPTY

      static final ComponentMap EMPTY
      Mappings:
      Namespace Name Mixin selector
      named EMPTY Lnet/minecraft/component/ComponentMap;EMPTY:Lnet/minecraft/component/ComponentMap;
      intermediary field_49584 Lnet/minecraft/class_9323;field_49584:Lnet/minecraft/class_9323;
      official a Lkj;a:Lkj;
    • CODEC

      static final com.mojang.serialization.Codec<ComponentMap> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/component/ComponentMap;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_50234 Lnet/minecraft/class_9323;field_50234:Lcom/mojang/serialization/Codec;
      official b Lkj;b:Lcom/mojang/serialization/Codec;
  • Method Details

    • createCodec

      static com.mojang.serialization.Codec<ComponentMap> createCodec(com.mojang.serialization.Codec<ComponentType<?>> componentTypeCodec)
      Mappings:
      Namespace Name Mixin selector
      named createCodec Lnet/minecraft/component/ComponentMap;createCodec(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
      intermediary method_60386 Lnet/minecraft/class_9323;method_60386(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
      official a Lkj;a(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
    • createCodecFromValueMap

      static com.mojang.serialization.Codec<ComponentMap> createCodecFromValueMap(com.mojang.serialization.Codec<Map<ComponentType<?>,Object>> typeToValueMapCodec)
      Mappings:
      Namespace Name Mixin selector
      named createCodecFromValueMap Lnet/minecraft/component/ComponentMap;createCodecFromValueMap(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
      intermediary method_60388 Lnet/minecraft/class_9323;method_60388(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
      official b Lkj;b(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
    • of

      static ComponentMap of(ComponentMap base, ComponentMap overrides)
      Mappings:
      Namespace Name Mixin selector
      named of Lnet/minecraft/component/ComponentMap;of(Lnet/minecraft/component/ComponentMap;Lnet/minecraft/component/ComponentMap;)Lnet/minecraft/component/ComponentMap;
      intermediary method_59771 Lnet/minecraft/class_9323;method_59771(Lnet/minecraft/class_9323;Lnet/minecraft/class_9323;)Lnet/minecraft/class_9323;
      official a Lkj;a(Lkj;Lkj;)Lkj;
    • builder

      static ComponentMap.Builder builder()
      Mappings:
      Namespace Name Mixin selector
      named builder Lnet/minecraft/component/ComponentMap;builder()Lnet/minecraft/component/ComponentMap$Builder;
      intermediary method_57827 Lnet/minecraft/class_9323;method_57827()Lnet/minecraft/class_9323$class_9324;
      official a Lkj;a()Lkj$a;
    • get

      @Nullable <T> T get(ComponentType<? extends T> type)
      Mappings:
      Namespace Name Mixin selector
      named get Lnet/minecraft/component/ComponentMap;get(Lnet/minecraft/component/ComponentType;)Ljava/lang/Object;
      intermediary method_57829 Lnet/minecraft/class_9323;method_57829(Lnet/minecraft/class_9331;)Ljava/lang/Object;
      official a Lkj;a(Lkm;)Ljava/lang/Object;
    • getTypes

      Set<ComponentType<?>> getTypes()
      Mappings:
      Namespace Name Mixin selector
      named getTypes Lnet/minecraft/component/ComponentMap;getTypes()Ljava/util/Set;
      intermediary method_57831 Lnet/minecraft/class_9323;method_57831()Ljava/util/Set;
      official b Lkj;b()Ljava/util/Set;
    • contains

      default boolean contains(ComponentType<?> type)
      Mappings:
      Namespace Name Mixin selector
      named contains Lnet/minecraft/component/ComponentMap;contains(Lnet/minecraft/component/ComponentType;)Z
      intermediary method_57832 Lnet/minecraft/class_9323;method_57832(Lnet/minecraft/class_9331;)Z
      official b Lkj;b(Lkm;)Z
    • getOrDefault

      default <T> T getOrDefault(ComponentType<? extends T> type, T fallback)
      Mappings:
      Namespace Name Mixin selector
      named getOrDefault Lnet/minecraft/component/ComponentMap;getOrDefault(Lnet/minecraft/component/ComponentType;Ljava/lang/Object;)Ljava/lang/Object;
      intermediary method_57830 Lnet/minecraft/class_9323;method_57830(Lnet/minecraft/class_9331;Ljava/lang/Object;)Ljava/lang/Object;
      official a Lkj;a(Lkm;Ljava/lang/Object;)Ljava/lang/Object;
    • copy

      @Nullable default <T> @Nullable Component<T> copy(ComponentType<T> type)
      Mappings:
      Namespace Name Mixin selector
      named copy Lnet/minecraft/component/ComponentMap;copy(Lnet/minecraft/component/ComponentType;)Lnet/minecraft/component/Component;
      intermediary method_57834 Lnet/minecraft/class_9323;method_57834(Lnet/minecraft/class_9331;)Lnet/minecraft/class_9336;
      official c Lkj;c(Lkm;)Lkp;
    • iterator

      default Iterator<Component<?>> iterator()
      Specified by:
      iterator in interface Iterable<Component<?>>
    • stream

      default Stream<Component<?>> stream()
      Mappings:
      Namespace Name Mixin selector
      named stream Lnet/minecraft/component/ComponentMap;stream()Ljava/util/stream/Stream;
      intermediary method_57833 Lnet/minecraft/class_9323;method_57833()Ljava/util/stream/Stream;
      official c Lkj;c()Ljava/util/stream/Stream;
    • size

      default int size()
      Mappings:
      Namespace Name Mixin selector
      named size Lnet/minecraft/component/ComponentMap;size()I
      intermediary method_57835 Lnet/minecraft/class_9323;method_57835()I
      official d Lkj;d()I
    • isEmpty

      default boolean isEmpty()
      Mappings:
      Namespace Name Mixin selector
      named isEmpty Lnet/minecraft/component/ComponentMap;isEmpty()Z
      intermediary method_57837 Lnet/minecraft/class_9323;method_57837()Z
      official e Lkj;e()Z
    • filtered

      default ComponentMap filtered(Predicate<ComponentType<?>> predicate)
      Mappings:
      Namespace Name Mixin selector
      named filtered Lnet/minecraft/component/ComponentMap;filtered(Ljava/util/function/Predicate;)Lnet/minecraft/component/ComponentMap;
      intermediary method_57828 Lnet/minecraft/class_9323;method_57828(Ljava/util/function/Predicate;)Lnet/minecraft/class_9323;
      official a Lkj;a(Ljava/util/function/Predicate;)Lkj;