Class RegisterTooltipAppendersEvent
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.RegisterTooltipAppendersEvent
- All Implemented Interfaces:
IModBusEvent
public final class RegisterTooltipAppendersEvent
extends net.neoforged.bus.api.Event
implements IModBusEvent
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<TooltipLocation, List<TooltipAppender>> private final Map<DataComponentType<?>, TooltipAppender> private final MutableGraph<DataComponentType<?>> private final DataComponentType<?> private final DataComponentType<?> -
Constructor Summary
ConstructorsConstructorDescriptionRegisterTooltipAppendersEvent(Map<TooltipLocation, List<TooltipAppender>> appenders, Map<DataComponentType<?>, TooltipAppender> componentAppenders, MutableGraph<DataComponentType<?>> componentGraph, DataComponentType<?> firstVanillaType, DataComponentType<?> lastVanillaType) -
Method Summary
Modifier and TypeMethodDescriptionvoidregisterAppender(TooltipLocation location, TooltipAppender appender) Register aTooltipAppenderat the providedTooltipLocation.private voidregisterComponentAppender(DataComponentType<?> type, TooltipAppender appender) voidregisterComponentAppenderAfter(Supplier<? extends DataComponentType<?>> type, DataComponentType<?> otherType, TooltipAppender appender) Register aTooltipAppenderfor the providedDataComponentTypeafter the other provided data component type.voidregisterComponentAppenderAfter(DataComponentType<?> type, DataComponentType<?> otherType, TooltipAppender appender) Register aTooltipAppenderfor the providedDataComponentTypeafter the other provided data component type.voidregisterComponentAppenderAfterAll(Supplier<? extends DataComponentType<?>> type, TooltipAppender appender) Register aTooltipAppenderfor the providedDataComponentTypeafter all vanilla data component tooltip appenders.voidregisterComponentAppenderAfterAll(DataComponentType<?> type, TooltipAppender appender) Register aTooltipAppenderfor the providedDataComponentTypeafter all vanilla data component tooltip appenders.voidregisterComponentAppenderBefore(Supplier<? extends DataComponentType<?>> type, DataComponentType<?> otherType, TooltipAppender appender) Register aTooltipAppenderfor the providedDataComponentTypebefore the other provided data component type.voidregisterComponentAppenderBefore(DataComponentType<?> type, DataComponentType<?> otherType, TooltipAppender appender) Register aTooltipAppenderfor the providedDataComponentTypebefore the other provided data component type.voidregisterComponentAppenderBeforeAll(Supplier<? extends DataComponentType<?>> type, TooltipAppender appender) Register aTooltipAppenderfor the providedDataComponentTypebefore all vanilla data component tooltip appenders.voidregisterComponentAppenderBeforeAll(DataComponentType<?> type, TooltipAppender appender) Register aTooltipAppenderfor the providedDataComponentTypebefore all vanilla data component tooltip appenders.
-
Field Details
-
appenders
-
componentAppenders
-
componentGraph
-
firstVanillaType
-
lastVanillaType
-
-
Constructor Details
-
RegisterTooltipAppendersEvent
@Internal public RegisterTooltipAppendersEvent(Map<TooltipLocation, List<TooltipAppender>> appenders, Map<DataComponentType<?>, TooltipAppender> componentAppenders, MutableGraph<DataComponentType<?>> componentGraph, DataComponentType<?> firstVanillaType, DataComponentType<?> lastVanillaType)
-
-
Method Details
-
registerAppender
Register aTooltipAppenderat the providedTooltipLocation.- Parameters:
location- The location to apply the appender toappender- The appender to register
-
registerComponentAppenderBeforeAll
public void registerComponentAppenderBeforeAll(Supplier<? extends DataComponentType<?>> type, TooltipAppender appender) Register aTooltipAppenderfor the providedDataComponentTypebefore all vanilla data component tooltip appenders.- Parameters:
type- The type to register the appender forappender- The appender to register
-
registerComponentAppenderBeforeAll
Register aTooltipAppenderfor the providedDataComponentTypebefore all vanilla data component tooltip appenders.- Parameters:
type- The type to register the appender forappender- The appender to register
-
registerComponentAppenderBefore
public void registerComponentAppenderBefore(Supplier<? extends DataComponentType<?>> type, DataComponentType<?> otherType, TooltipAppender appender) Register aTooltipAppenderfor the providedDataComponentTypebefore the other provided data component type.- Parameters:
type- The type to register the appender forotherType- The type before which the provided appender should be appliedappender- The appender to register
-
registerComponentAppenderBefore
public void registerComponentAppenderBefore(DataComponentType<?> type, DataComponentType<?> otherType, TooltipAppender appender) Register aTooltipAppenderfor the providedDataComponentTypebefore the other provided data component type.- Parameters:
type- The type to register the appender forotherType- The type before which the provided appender should be appliedappender- The appender to register
-
registerComponentAppenderAfter
public void registerComponentAppenderAfter(Supplier<? extends DataComponentType<?>> type, DataComponentType<?> otherType, TooltipAppender appender) Register aTooltipAppenderfor the providedDataComponentTypeafter the other provided data component type.- Parameters:
type- The type to register the appender forotherType- The type after which the provided appender should be appliedappender- The appender to register
-
registerComponentAppenderAfter
public void registerComponentAppenderAfter(DataComponentType<?> type, DataComponentType<?> otherType, TooltipAppender appender) Register aTooltipAppenderfor the providedDataComponentTypeafter the other provided data component type.- Parameters:
type- The type to register the appender forotherType- The type after which the provided appender should be appliedappender- The appender to register
-
registerComponentAppenderAfterAll
public void registerComponentAppenderAfterAll(Supplier<? extends DataComponentType<?>> type, TooltipAppender appender) Register aTooltipAppenderfor the providedDataComponentTypeafter all vanilla data component tooltip appenders.- Parameters:
type- The type to register the appender forappender- The appender to register
-
registerComponentAppenderAfterAll
Register aTooltipAppenderfor the providedDataComponentTypeafter all vanilla data component tooltip appenders.- Parameters:
type- The type to register the appender forappender- The appender to register
-
registerComponentAppender
-