public static interface RegistryEvent.InfoSlotRegistryEvent.InfoSlotRegistrar
| Modifier and Type | Method and Description |
|---|---|
void |
register(java.lang.String modId,
net.minecraft.network.chat.Component component,
long updateTime,
java.util.function.Supplier<net.minecraft.network.chat.Component> supplier)
Registers an infoslot.
|
void register(java.lang.String modId,
net.minecraft.network.chat.Component component,
long updateTime,
java.util.function.Supplier<net.minecraft.network.chat.Component> supplier)
modId - - The ModIdcomponent - - 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.