Interface EngineRegistry<T>
- All Superinterfaces:
EngineInterface<net.minecraft.core.MappedRegistry<T>>
- All Known Implementing Classes:
MappedRegistryMixin
Allows removing entries from a
MappedRegistry and toggling its frozen state at runtime.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiondefault booleanReturns whether the registry is frozen.default booleanengine$remove(net.minecraft.resources.Identifier key) Removes a registry entry by identifier key.default booleanengine$remove(T value) Removes a registry entry by value.default voidengine$setFrozen(boolean value) Sets the frozen state of the registry.static <T> booleanremove(net.minecraft.core.MappedRegistry<T> registry, net.minecraft.resources.Identifier key) static <T> booleanremove(net.minecraft.core.MappedRegistry<T> registry, T value) static <T> EngineRegistry.RegistryRemovalthaw(net.minecraft.core.Registry<T> registry) Methods inherited from interface EngineInterface
engine$self
-
Method Details
-
remove
static <T> boolean remove(net.minecraft.core.MappedRegistry<T> registry, net.minecraft.resources.Identifier key) -
remove
static <T> boolean remove(net.minecraft.core.MappedRegistry<T> registry, T value) -
thaw
-
engine$remove
Removes a registry entry by value. -
engine$remove
default boolean engine$remove(net.minecraft.resources.Identifier key) Removes a registry entry by identifier key. -
engine$setFrozen
default void engine$setFrozen(boolean value) Sets the frozen state of the registry. -
engine$isFrozen
default boolean engine$isFrozen()Returns whether the registry is frozen.
-