Interface RegistryEntry<T>

All Known Implementing Classes:
RegistryEntry.Direct, RegistryEntry.Reference

public interface RegistryEntry<T>
Mappings:
Namespace Name
official hc
intermediary net/minecraft/class_6880
named net/minecraft/util/registry/RegistryEntry
  • Method Details

    • value

      T value()
      Mappings:
      Namespace Name Mixin selector
      official a Lhc;a()Ljava/lang/Object;
      intermediary comp_349 Lnet/minecraft/class_6880;comp_349()Ljava/lang/Object;
      named value Lnet/minecraft/util/registry/RegistryEntry;value()Ljava/lang/Object;
    • hasKeyAndValue

      boolean hasKeyAndValue()
      Mappings:
      Namespace Name Mixin selector
      official b Lhc;b()Z
      intermediary method_40227 Lnet/minecraft/class_6880;method_40227()Z
      named hasKeyAndValue Lnet/minecraft/util/registry/RegistryEntry;hasKeyAndValue()Z
    • matchesId

      boolean matchesId(Identifier id)
      Mappings:
      Namespace Name Mixin selector
      official a Lhc;a(Laaj;)Z
      intermediary method_40226 Lnet/minecraft/class_6880;method_40226(Lnet/minecraft/class_2960;)Z
      named matchesId Lnet/minecraft/util/registry/RegistryEntry;matchesId(Lnet/minecraft/util/Identifier;)Z
    • matchesKey

      boolean matchesKey(RegistryKey<T> key)
      Mappings:
      Namespace Name Mixin selector
      official a Lhc;a(Laai;)Z
      intermediary method_40225 Lnet/minecraft/class_6880;method_40225(Lnet/minecraft/class_5321;)Z
      named matchesKey Lnet/minecraft/util/registry/RegistryEntry;matchesKey(Lnet/minecraft/util/registry/RegistryKey;)Z
    • matches

      boolean matches(Predicate<RegistryKey<T>> predicate)
      Mappings:
      Namespace Name Mixin selector
      official a Lhc;a(Ljava/util/function/Predicate;)Z
      intermediary method_40224 Lnet/minecraft/class_6880;method_40224(Ljava/util/function/Predicate;)Z
      named matches Lnet/minecraft/util/registry/RegistryEntry;matches(Ljava/util/function/Predicate;)Z
    • isIn

      boolean isIn(TagKey<T> tag)
      Mappings:
      Namespace Name Mixin selector
      official a Lhc;a(Lakh;)Z
      intermediary method_40220 Lnet/minecraft/class_6880;method_40220(Lnet/minecraft/class_6862;)Z
      named isIn Lnet/minecraft/util/registry/RegistryEntry;isIn(Lnet/minecraft/tag/TagKey;)Z
    • streamTags

      Stream<TagKey<T>> streamTags()
      Mappings:
      Namespace Name Mixin selector
      official c Lhc;c()Ljava/util/stream/Stream;
      intermediary method_40228 Lnet/minecraft/class_6880;method_40228()Ljava/util/stream/Stream;
      named streamTags Lnet/minecraft/util/registry/RegistryEntry;streamTags()Ljava/util/stream/Stream;
    • getKeyOrValue

      com.mojang.datafixers.util.Either<RegistryKey<T>,T> getKeyOrValue()
      Mappings:
      Namespace Name Mixin selector
      official d Lhc;d()Lcom/mojang/datafixers/util/Either;
      intermediary method_40229 Lnet/minecraft/class_6880;method_40229()Lcom/mojang/datafixers/util/Either;
      named getKeyOrValue Lnet/minecraft/util/registry/RegistryEntry;getKeyOrValue()Lcom/mojang/datafixers/util/Either;
    • getKey

      Optional<RegistryKey<T>> getKey()
      Mappings:
      Namespace Name Mixin selector
      official e Lhc;e()Ljava/util/Optional;
      intermediary method_40230 Lnet/minecraft/class_6880;method_40230()Ljava/util/Optional;
      named getKey Lnet/minecraft/util/registry/RegistryEntry;getKey()Ljava/util/Optional;
    • getType

      Mappings:
      Namespace Name Mixin selector
      official f Lhc;f()Lhc$b;
      intermediary method_40231 Lnet/minecraft/class_6880;method_40231()Lnet/minecraft/class_6880$class_6882;
      named getType Lnet/minecraft/util/registry/RegistryEntry;getType()Lnet/minecraft/util/registry/RegistryEntry$Type;
    • matchesRegistry

      boolean matchesRegistry(Registry<T> registry)
      Mappings:
      Namespace Name Mixin selector
      official a Lhc;a(Lhm;)Z
      intermediary method_40222 Lnet/minecraft/class_6880;method_40222(Lnet/minecraft/class_2378;)Z
      named matchesRegistry Lnet/minecraft/util/registry/RegistryEntry;matchesRegistry(Lnet/minecraft/util/registry/Registry;)Z
    • of

      static <T> RegistryEntry<T> of(T value)
      Mappings:
      Namespace Name Mixin selector
      official a Lhc;a(Ljava/lang/Object;)Lhc;
      intermediary method_40223 Lnet/minecraft/class_6880;method_40223(Ljava/lang/Object;)Lnet/minecraft/class_6880;
      named of Lnet/minecraft/util/registry/RegistryEntry;of(Ljava/lang/Object;)Lnet/minecraft/util/registry/RegistryEntry;
    • upcast

      static <T> RegistryEntry<T> upcast(RegistryEntry<? extends T> entry)
      Mappings:
      Namespace Name Mixin selector
      official a Lhc;a(Lhc;)Lhc;
      intermediary method_40221 Lnet/minecraft/class_6880;method_40221(Lnet/minecraft/class_6880;)Lnet/minecraft/class_6880;
      named upcast Lnet/minecraft/util/registry/RegistryEntry;upcast(Lnet/minecraft/util/registry/RegistryEntry;)Lnet/minecraft/util/registry/RegistryEntry;