Class Modules.ModuleRegistry

java.lang.Object
net.minecraft.registry.SimpleRegistry<Module>
meteordevelopment.meteorclient.systems.modules.Modules.ModuleRegistry
All Implemented Interfaces:
com.mojang.serialization.Keyable, Iterable<Module>, net.minecraft.registry.entry.RegistryEntryOwner<Module>, net.minecraft.registry.MutableRegistry<Module>, net.minecraft.registry.Registry<Module>, net.minecraft.registry.RegistryEntryLookup<Module>, net.minecraft.registry.RegistryWrapper<Module>, net.minecraft.registry.RegistryWrapper.Impl<Module>, net.minecraft.util.collection.IndexedIterable<Module>
Enclosing class:
Modules

public static class Modules.ModuleRegistry extends net.minecraft.registry.SimpleRegistry<Module>
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.minecraft.registry.Registry

    net.minecraft.registry.Registry.PendingTagLoad<T>

    Nested classes/interfaces inherited from interface net.minecraft.registry.RegistryEntryLookup

    net.minecraft.registry.RegistryEntryLookup.RegistryLookup

    Nested classes/interfaces inherited from interface net.minecraft.registry.RegistryWrapper

    net.minecraft.registry.RegistryWrapper.Impl<T>, net.minecraft.registry.RegistryWrapper.WrapperLookup

    Nested classes/interfaces inherited from interface net.minecraft.registry.RegistryWrapper.Impl

    net.minecraft.registry.RegistryWrapper.Impl.Delegating<T>
  • Field Summary

    Fields inherited from interface net.minecraft.util.collection.IndexedIterable

    ABSENT_RAW_ID
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    contains(net.minecraft.registry.RegistryKey<Module> key)
     
    boolean
    containsId(net.minecraft.util.Identifier id)
     
    net.minecraft.registry.entry.RegistryEntry.Reference<Module>
     
    net.minecraft.registry.Registry<Module>
     
    @Nullable Module
    get(int index)
     
    get(net.minecraft.registry.RegistryKey<Module> key)
     
    get(net.minecraft.util.Identifier id)
     
    Optional<net.minecraft.registry.entry.RegistryEntry.Reference<Module>>
    getEntry(int rawId)
     
    Set<Map.Entry<net.minecraft.registry.RegistryKey<Module>,Module>>
     
    net.minecraft.util.Identifier
    getId(Module entry)
     
    Set<net.minecraft.util.Identifier>
     
    Optional<net.minecraft.registry.RegistryKey<Module>>
    getKey(Module entry)
     
    Set<net.minecraft.registry.RegistryKey<Module>>
     
    com.mojang.serialization.Lifecycle
     
    Optional<net.minecraft.registry.entry.RegistryEntry.Reference<Module>>
    getRandom(net.minecraft.util.math.random.Random random)
     
    int
     
    @NotNull Iterator<Module>
     
    int
     
    Stream<net.minecraft.registry.entry.RegistryEntry.Reference<Module>>
     

    Methods inherited from class net.minecraft.registry.SimpleRegistry

    add, createMutableRegistryLookup, getDefaultEntry, getEntry, getEntry, getEntryInfo, getKey, getOptional, getOptional, getTags, isEmpty, resetTagEntries, setEntries, startTagReload, streamTags, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface net.minecraft.util.collection.IndexedIterable

    getOrThrow, getRawIdOrThrow

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator

    Methods inherited from interface net.minecraft.registry.Registry

    getCodec, getEntryCodec, getIndexedEntries, getOptionalValue, getOptionalValue, getRandomEntry, getValueOrThrow, iterateEntries, keys, stream

    Methods inherited from interface net.minecraft.registry.RegistryEntryLookup

    getOrThrow, getOrThrow

    Methods inherited from interface net.minecraft.registry.entry.RegistryEntryOwner

    ownerEquals

    Methods inherited from interface net.minecraft.registry.RegistryWrapper

    streamKeys, streamTagKeys

    Methods inherited from interface net.minecraft.registry.RegistryWrapper.Impl

    withFeatureFilter, withPredicateFilter
  • Constructor Details

    • ModuleRegistry

      public ModuleRegistry()
  • Method Details

    • size

      public int size()
      Specified by:
      size in interface net.minecraft.util.collection.IndexedIterable<Module>
      Overrides:
      size in class net.minecraft.registry.SimpleRegistry<Module>
    • getId

      public net.minecraft.util.Identifier getId(Module entry)
      Specified by:
      getId in interface net.minecraft.registry.Registry<Module>
      Overrides:
      getId in class net.minecraft.registry.SimpleRegistry<Module>
    • getKey

      public Optional<net.minecraft.registry.RegistryKey<Module>> getKey(Module entry)
      Specified by:
      getKey in interface net.minecraft.registry.Registry<Module>
      Overrides:
      getKey in class net.minecraft.registry.SimpleRegistry<Module>
    • getRawId

      public int getRawId(Module entry)
      Specified by:
      getRawId in interface net.minecraft.util.collection.IndexedIterable<Module>
      Specified by:
      getRawId in interface net.minecraft.registry.Registry<Module>
      Overrides:
      getRawId in class net.minecraft.registry.SimpleRegistry<Module>
    • get

      public Module get(net.minecraft.registry.RegistryKey<Module> key)
      Specified by:
      get in interface net.minecraft.registry.Registry<Module>
      Overrides:
      get in class net.minecraft.registry.SimpleRegistry<Module>
    • get

      public Module get(net.minecraft.util.Identifier id)
      Specified by:
      get in interface net.minecraft.registry.Registry<Module>
      Overrides:
      get in class net.minecraft.registry.SimpleRegistry<Module>
    • getLifecycle

      public com.mojang.serialization.Lifecycle getLifecycle()
      Specified by:
      getLifecycle in interface net.minecraft.registry.RegistryWrapper.Impl<Module>
      Overrides:
      getLifecycle in class net.minecraft.registry.SimpleRegistry<Module>
    • getIds

      public Set<net.minecraft.util.Identifier> getIds()
      Specified by:
      getIds in interface net.minecraft.registry.Registry<Module>
      Overrides:
      getIds in class net.minecraft.registry.SimpleRegistry<Module>
    • containsId

      public boolean containsId(net.minecraft.util.Identifier id)
      Specified by:
      containsId in interface net.minecraft.registry.Registry<Module>
      Overrides:
      containsId in class net.minecraft.registry.SimpleRegistry<Module>
    • get

      @Nullable public @Nullable Module get(int index)
      Specified by:
      get in interface net.minecraft.util.collection.IndexedIterable<Module>
      Overrides:
      get in class net.minecraft.registry.SimpleRegistry<Module>
    • iterator

      @NotNull public @NotNull Iterator<Module> iterator()
      Specified by:
      iterator in interface Iterable<Module>
      Overrides:
      iterator in class net.minecraft.registry.SimpleRegistry<Module>
    • contains

      public boolean contains(net.minecraft.registry.RegistryKey<Module> key)
      Specified by:
      contains in interface net.minecraft.registry.Registry<Module>
      Overrides:
      contains in class net.minecraft.registry.SimpleRegistry<Module>
    • getEntrySet

      public Set<Map.Entry<net.minecraft.registry.RegistryKey<Module>,Module>> getEntrySet()
      Specified by:
      getEntrySet in interface net.minecraft.registry.Registry<Module>
      Overrides:
      getEntrySet in class net.minecraft.registry.SimpleRegistry<Module>
    • getKeys

      public Set<net.minecraft.registry.RegistryKey<Module>> getKeys()
      Specified by:
      getKeys in interface net.minecraft.registry.Registry<Module>
      Overrides:
      getKeys in class net.minecraft.registry.SimpleRegistry<Module>
    • getRandom

      public Optional<net.minecraft.registry.entry.RegistryEntry.Reference<Module>> getRandom(net.minecraft.util.math.random.Random random)
      Specified by:
      getRandom in interface net.minecraft.registry.Registry<Module>
      Overrides:
      getRandom in class net.minecraft.registry.SimpleRegistry<Module>
    • freeze

      public net.minecraft.registry.Registry<Module> freeze()
      Specified by:
      freeze in interface net.minecraft.registry.Registry<Module>
      Overrides:
      freeze in class net.minecraft.registry.SimpleRegistry<Module>
    • createEntry

      public net.minecraft.registry.entry.RegistryEntry.Reference<Module> createEntry(Module value)
      Specified by:
      createEntry in interface net.minecraft.registry.Registry<Module>
      Overrides:
      createEntry in class net.minecraft.registry.SimpleRegistry<Module>
    • getEntry

      public Optional<net.minecraft.registry.entry.RegistryEntry.Reference<Module>> getEntry(int rawId)
      Specified by:
      getEntry in interface net.minecraft.registry.Registry<Module>
      Overrides:
      getEntry in class net.minecraft.registry.SimpleRegistry<Module>
    • streamEntries

      public Stream<net.minecraft.registry.entry.RegistryEntry.Reference<Module>> streamEntries()
      Specified by:
      streamEntries in interface net.minecraft.registry.RegistryWrapper<Module>
      Overrides:
      streamEntries in class net.minecraft.registry.SimpleRegistry<Module>