Enum Class DummyRegistryAccess

java.lang.Object
java.lang.Enum<DummyRegistryAccess>
me.desht.pneumaticcraft.api.crafting.DummyRegistryAccess
All Implemented Interfaces:
Serializable, Comparable<DummyRegistryAccess>, Constable, net.minecraft.core.HolderLookup.Provider, net.minecraft.core.RegistryAccess

public enum DummyRegistryAccess extends Enum<DummyRegistryAccess> implements net.minecraft.core.RegistryAccess
Dummy registry access which does nothing useful, but we can pass it to methods where we know it's not being used, like ShapedRecipe.getResultItem(RegistryAccess).
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>

    Nested classes/interfaces inherited from interface net.minecraft.core.RegistryAccess

    net.minecraft.core.RegistryAccess.Frozen, net.minecraft.core.RegistryAccess.ImmutableRegistryAccess, net.minecraft.core.RegistryAccess.RegistryEntry<T extends Object>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
     
  • Field Summary

    Fields inherited from interface net.minecraft.core.RegistryAccess

    EMPTY, LOGGER
  • Method Summary

    Modifier and Type
    Method
    Description
    Stream<net.minecraft.core.RegistryAccess.RegistryEntry<?>>
     
    <E> Optional<net.minecraft.core.Registry<E>>
    registry(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<? extends E>> pRegistryKey)
     
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface net.minecraft.core.HolderLookup.Provider

    asGetterLookup, lookupOrThrow

    Methods inherited from interface net.minecraft.core.RegistryAccess

    allRegistriesLifecycle, freeze, lookup, registryOrThrow
  • Enum Constant Details

  • Method Details

    • values

      public static DummyRegistryAccess[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static DummyRegistryAccess valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • registry

      public <E> Optional<net.minecraft.core.Registry<E>> registry(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<? extends E>> pRegistryKey)
      Specified by:
      registry in interface net.minecraft.core.RegistryAccess
    • registries

      public Stream<net.minecraft.core.RegistryAccess.RegistryEntry<?>> registries()
      Specified by:
      registries in interface net.minecraft.core.RegistryAccess