private static class GameData.BlockCallbacks extends java.lang.Object implements IForgeRegistry.AddCallback<Block>, IForgeRegistry.ClearCallback<Block>, IForgeRegistry.BakeCallback<Block>, IForgeRegistry.CreateCallback<Block>, IForgeRegistry.DummyFactory<Block>
Modifier and Type | Class and Description |
---|---|
private static class |
GameData.BlockCallbacks.BlockDummyAir |
Modifier and Type | Field and Description |
---|---|
(package private) static GameData.BlockCallbacks |
INSTANCE |
Modifier | Constructor and Description |
---|---|
private |
BlockCallbacks() |
Modifier and Type | Method and Description |
---|---|
Block |
createDummy(ResourceLocation key) |
void |
onAdd(IForgeRegistryInternal<Block> owner,
RegistryManager stage,
int id,
Block block,
Block oldBlock) |
void |
onBake(IForgeRegistryInternal<Block> owner,
RegistryManager stage) |
void |
onClear(IForgeRegistryInternal<Block> owner,
RegistryManager stage) |
void |
onCreate(IForgeRegistryInternal<Block> owner,
RegistryManager stage) |
static final GameData.BlockCallbacks INSTANCE
public void onAdd(IForgeRegistryInternal<Block> owner, RegistryManager stage, int id, Block block, @Nullable Block oldBlock)
onAdd
in interface IForgeRegistry.AddCallback<Block>
public void onClear(IForgeRegistryInternal<Block> owner, RegistryManager stage)
onClear
in interface IForgeRegistry.ClearCallback<Block>
public void onCreate(IForgeRegistryInternal<Block> owner, RegistryManager stage)
onCreate
in interface IForgeRegistry.CreateCallback<Block>
public Block createDummy(ResourceLocation key)
createDummy
in interface IForgeRegistry.DummyFactory<Block>
public void onBake(IForgeRegistryInternal<Block> owner, RegistryManager stage)
onBake
in interface IForgeRegistry.BakeCallback<Block>