Class RegisterSpellPartCustomizationScreensEvent
java.lang.Object
net.neoforged.bus.api.Event
at.minecraftschurli.mods.arsmagicalegacy.api.client.event.RegisterSpellPartCustomizationScreensEvent
- All Implemented Interfaces:
net.neoforged.fml.event.IModBusEvent
public class RegisterSpellPartCustomizationScreensEvent
extends net.neoforged.bus.api.Event
implements net.neoforged.fml.event.IModBusEvent
Event that fires when SpellPartCustomizationScreen.Factorys are registered.
This event is not cancelable. This event is fired on the mod event bus, only on the physical client.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMap<net.minecraft.core.Holder<SpellPart>, SpellPartCustomizationScreen.Factory<?, ?>> <T> voidregister(net.minecraft.core.Holder<SpellPart> key, SpellPartCustomizationScreen.Factory<T, ?> factory) Registers aSpellPartCustomizationScreen.Factory.
-
Constructor Details
-
RegisterSpellPartCustomizationScreensEvent
public RegisterSpellPartCustomizationScreensEvent()
-
-
Method Details
-
register
public <T> void register(net.minecraft.core.Holder<SpellPart> key, SpellPartCustomizationScreen.Factory<T, ?> factory) Registers aSpellPartCustomizationScreen.Factory.- Parameters:
key- TheSpellPartthat will open theSpellPartCustomizationScreen.factory- TheSpellPartCustomizationScreen.Factoryto register.
-
getScreens
public Map<net.minecraft.core.Holder<SpellPart>, SpellPartCustomizationScreen.Factory<?,?>> getScreens()- Returns:
- An unmodifiable view of all registered
SpellPartCustomizationScreen.Factorys.
-