Interface EngineRegistry<T>

All Superinterfaces:
EngineInterface<net.minecraft.core.MappedRegistry<T>>
All Known Implementing Classes:
MappedRegistryMixin

public interface EngineRegistry<T> extends EngineInterface<net.minecraft.core.MappedRegistry<T>>
Allows removing entries from a MappedRegistry and toggling its frozen state at runtime.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    Returns whether the registry is frozen.
    default boolean
    engine$remove(net.minecraft.resources.Identifier key)
    Removes a registry entry by identifier key.
    default boolean
    Removes a registry entry by value.
    default void
    engine$setFrozen(boolean value)
    Sets the frozen state of the registry.
    static <T> boolean
    remove(net.minecraft.core.MappedRegistry<T> registry, net.minecraft.resources.Identifier key)
     
    static <T> boolean
    remove(net.minecraft.core.MappedRegistry<T> registry, T value)
     
    thaw(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

      static <T> EngineRegistry.RegistryRemoval thaw(net.minecraft.core.Registry<T> registry)
    • engine$remove

      default boolean engine$remove(T value)
      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.