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 ki
  • 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 Lki;a:Lki;
    • 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 Lki;b:Lcom/mojang/serialization/Codec;
  • Method Details

    • 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 Lki;a(Lki;Lki;)Lki;
    • 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 Lki;a()Lki$a;
    • get

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

      Set<DataComponentType<?>> 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 Lki;b()Ljava/util/Set;
    • contains

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

      default <T> T getOrDefault(DataComponentType<? extends T> type, T fallback)
      Mappings:
      Namespace Name Mixin selector
      named getOrDefault Lnet/minecraft/component/ComponentMap;getOrDefault(Lnet/minecraft/component/DataComponentType;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 Lki;a(Lkl;Ljava/lang/Object;)Ljava/lang/Object;
    • copy

      @Nullable default <T> @Nullable Component<T> copy(DataComponentType<T> type)
      Mappings:
      Namespace Name Mixin selector
      named copy Lnet/minecraft/component/ComponentMap;copy(Lnet/minecraft/component/DataComponentType;)Lnet/minecraft/component/Component;
      intermediary method_57834 Lnet/minecraft/class_9323;method_57834(Lnet/minecraft/class_9331;)Lnet/minecraft/class_9336;
      official c Lki;c(Lkl;)Lko;
    • 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 Lki;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 Lki;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 Lki;e()Z
    • filtered

      default ComponentMap filtered(Predicate<DataComponentType<?>> 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 Lki;a(Ljava/util/function/Predicate;)Lki;