类 NeoForgeRegistryCallbacks.BlockCallbacks
java.lang.Object
net.neoforged.neoforge.registries.NeoForgeRegistryCallbacks.BlockCallbacks
- 所有已实现的接口:
AddCallback<Block>
,BakeCallback<Block>
,ClearCallback<Block>
,RegistryCallback<Block>
static class NeoForgeRegistryCallbacks.BlockCallbacks
extends Object
implements AddCallback<Block>, ClearCallback<Block>, BakeCallback<Block>
-
嵌套类概要
嵌套类修饰符和类型类说明private static class
-
字段概要
字段修饰符和类型字段说明(专用程序包) static final NeoForgeRegistryCallbacks.BlockCallbacks.ClearableObjectIntIdentityMap
<BlockState> (专用程序包) static final NeoForgeRegistryCallbacks.BlockCallbacks
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
Called when an entry is added to the registry.void
Called when the registry is frozen, and all registration is finished.void
Called when the registry is cleared before anything is done to the registry.
-
字段详细资料
-
INSTANCE
-
BLOCKSTATE_TO_ID_MAP
static final NeoForgeRegistryCallbacks.BlockCallbacks.ClearableObjectIntIdentityMap<BlockState> BLOCKSTATE_TO_ID_MAP -
addedBlocks
-
-
构造器详细资料
-
BlockCallbacks
BlockCallbacks()
-
-
方法详细资料
-
onAdd
从接口复制的说明:AddCallback
Called when an entry is added to the registry.- 指定者:
onAdd
在接口中AddCallback<Block>
- 参数:
registry
- the registryid
- the integer ID assigned to the entrykey
- the resource key for the entryvalue
- the entry's value
-
onClear
从接口复制的说明:ClearCallback
Called when the registry is cleared before anything is done to the registry.- 指定者:
onClear
在接口中ClearCallback<Block>
- 参数:
registry
- the registryfull
- iftrue
, all entries in the registry will be cleared. iffalse
, only integer IDs in the registry will be cleared.
-
onBake
从接口复制的说明:BakeCallback
Called when the registry is frozen, and all registration is finished.- 指定者:
onBake
在接口中BakeCallback<Block>
- 参数:
registry
- the registry
-