Class RegisterItemDecorationsEvent
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.client.event.RegisterItemDecorationsEvent
- All Implemented Interfaces:
net.neoforged.fml.event.IModBusEvent
public class RegisterItemDecorationsEvent
extends net.neoforged.bus.api.Event
implements net.neoforged.fml.event.IModBusEvent
Allows users to register custom IItemDecorator to Items.
This event is not cancelable, and does not have a result.
This event is fired on the mod-specific event bus, only on the logical client.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.neoforged.bus.api.Event
net.neoforged.bus.api.Event.HasResult, net.neoforged.bus.api.Event.Result
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
register
(ItemLike itemLike, IItemDecorator decorator) Register an ItemDecorator to an ItemMethods inherited from class net.neoforged.bus.api.Event
getResult, hasResult, setResult
-
Field Details
-
decorators
-
-
Constructor Details
-
RegisterItemDecorationsEvent
-
-
Method Details
-
register
Register an ItemDecorator to an Item
-