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>
,IForgeRegistry.DummyFactory<Block>
- Enclosing class:
- GameData
private static class GameData.BlockCallbacks
extends Object
implements IForgeRegistry.AddCallback<Block>, IForgeRegistry.ClearCallback<Block>, IForgeRegistry.BakeCallback<Block>, IForgeRegistry.CreateCallback<Block>, IForgeRegistry.DummyFactory<Block>
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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
-
-
Constructor Details
-
BlockCallbacks
private BlockCallbacks()
-
-
Method Details
-
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>
-
createDummy
- Specified by:
createDummy
in interfaceIForgeRegistry.DummyFactory<Block>
-
onBake
- Specified by:
onBake
in interfaceIForgeRegistry.BakeCallback<Block>
-