类 NeoForgeRegistryCallbacks.ItemCallbacks
java.lang.Object
net.neoforged.neoforge.registries.NeoForgeRegistryCallbacks.ItemCallbacks
- 所有已实现的接口:
AddCallback<Item>
,ClearCallback<Item>
,RegistryCallback<Item>
static class NeoForgeRegistryCallbacks.ItemCallbacks
extends Object
implements AddCallback<Item>, ClearCallback<Item>
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
-
字段详细资料
-
INSTANCE
-
BLOCK_TO_ITEM_MAP
-
-
构造器详细资料
-
ItemCallbacks
ItemCallbacks()
-
-
方法详细资料
-
onAdd
从接口复制的说明:AddCallback
Called when an entry is added to the registry.- 指定者:
onAdd
在接口中AddCallback<Item>
- 参数:
registry
- the registryid
- the integer ID assigned to the entrykey
- the resource key for the entryitem
- the entry's value
-
onClear
从接口复制的说明:ClearCallback
Called when the registry is cleared before anything is done to the registry.- 指定者:
onClear
在接口中ClearCallback<Item>
- 参数:
registry
- the registryfull
- iftrue
, all entries in the registry will be cleared. iffalse
, only integer IDs in the registry will be cleared.
-