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
FieldsModifier and TypeFieldDescription(package private) static final GameData.BlockCallbacksprivate static final IForgeRegistry.SlaveKey<GameData.ClearableObjectIntIdentityMap<BlockState>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IdMapper<BlockState> voidonAdd(IForgeRegistryInternal<Block> owner, RegistryManager stage, int id, ResourceKey<Block> key, Block block, @Nullable Block oldBlock) voidonBake(IForgeRegistryInternal<Block> owner, RegistryManager stage) voidonClear(IForgeRegistryInternal<Block> owner, RegistryManager stage) voidonCreate(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:
onAddin interfaceIForgeRegistry.AddCallback<Block>
-
onClear
- Specified by:
onClearin interfaceIForgeRegistry.ClearCallback<Block>
-
onCreate
- Specified by:
onCreatein interfaceIForgeRegistry.CreateCallback<Block>
-
onBake
- Specified by:
onBakein interfaceIForgeRegistry.BakeCallback<Block>
-