Enum Class 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 -
Field Summary
Fields inherited from interface net.minecraft.core.RegistryAccess
EMPTY, LOGGER -
Method Summary
Modifier and TypeMethodDescriptionStream<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) static DummyRegistryAccessReturns the enum constant of this class with the specified name.static DummyRegistryAccess[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface net.minecraft.core.HolderLookup.Provider
asGetterLookup, lookupOrThrowMethods inherited from interface net.minecraft.core.RegistryAccess
allRegistriesLifecycle, freeze, lookup, registryOrThrow
-
Enum Constant Details
-
INSTANCE
-
-
Method Details
-
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
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 nameNullPointerException- 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:
registryin interfacenet.minecraft.core.RegistryAccess
-
registries
- Specified by:
registriesin interfacenet.minecraft.core.RegistryAccess
-