Interface RegistryEvent.InfoSlotRegistryEvent.InfoSlotRegistrar

Enclosing class:
RegistryEvent.InfoSlotRegistryEvent

public static interface RegistryEvent.InfoSlotRegistryEvent.InfoSlotRegistrar
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    register(String modId, net.minecraft.network.chat.Component component, long updateTime, Supplier<net.minecraft.network.chat.Component> supplier)
    Registers an infoslot.
  • Method Details

    • register

      void register(String modId, net.minecraft.network.chat.Component component, long updateTime, Supplier<net.minecraft.network.chat.Component> supplier)
      Registers an infoslot.
      Parameters:
      modId - - The ModId
      component - - The i18n key or Label for the InfoSlot dropdown in the options menu.
      updateTime - - How often in milliseconds to update.
      supplier - - The supplier that gets the value to be displayed.