Package net.minecraftforge.registries
Class GameData.BlockCallbacks
java.lang.Object
net.minecraftforge.registries.GameData.BlockCallbacks
- All Implemented Interfaces:
IForgeRegistry.AddCallback<Block>
,IForgeRegistry.BakeCallback<Block>
,IForgeRegistry.ClearCallback<Block>
,IForgeRegistry.CreateCallback<Block>
- Enclosing class:
GameData
public static class GameData.BlockCallbacks
extends Object
implements IForgeRegistry.AddCallback<Block>, IForgeRegistry.ClearCallback<Block>, IForgeRegistry.BakeCallback<Block>, IForgeRegistry.CreateCallback<Block>
-
Field Summary
Modifier and TypeFieldDescription(package private) static final GameData.BlockCallbacks
private static final IForgeRegistry.SlaveKey
<GameData.ClearableObjectIntIdentityMap<BlockState>> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic IdMapper
<BlockState> void
onAdd
(IForgeRegistryInternal<Block> owner, RegistryManager stage, int id, ResourceKey<Block> key, Block block, @Nullable Block oldBlock) void
onBake
(IForgeRegistryInternal<Block> owner, RegistryManager stage) void
onClear
(IForgeRegistryInternal<Block> owner, RegistryManager stage) void
onCreate
(IForgeRegistryInternal<Block> owner, RegistryManager stage)
-
Field Details
-
INSTANCE
-
STATE_TO_ID
private static final IForgeRegistry.SlaveKey<GameData.ClearableObjectIntIdentityMap<BlockState>> STATE_TO_ID
-
-
Constructor Details
-
BlockCallbacks
public BlockCallbacks()
-
-
Method Details
-
getBlockStateIDMap
-
onAdd
public void onAdd(IForgeRegistryInternal<Block> owner, RegistryManager stage, int id, ResourceKey<Block> key, Block block, @Nullable @Nullable Block oldBlock) - Specified by:
onAdd
in interfaceIForgeRegistry.AddCallback<Block>
-
onClear
- Specified by:
onClear
in interfaceIForgeRegistry.ClearCallback<Block>
-
onCreate
- Specified by:
onCreate
in interfaceIForgeRegistry.CreateCallback<Block>
-
onBake
- Specified by:
onBake
in interfaceIForgeRegistry.BakeCallback<Block>
-