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 java.lang.Object implements IForgeRegistry.AddCallback<Block>, IForgeRegistry.ClearCallback<Block>, IForgeRegistry.BakeCallback<Block>, IForgeRegistry.CreateCallback<Block>, IForgeRegistry.DummyFactory<Block>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
GameData.BlockCallbacks.BlockDummyAir
-
Field Summary
Fields Modifier and Type Field Description (package private) static GameData.BlockCallbacks
INSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description private
BlockCallbacks()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Field Detail
-
INSTANCE
static final GameData.BlockCallbacks INSTANCE
-
-
Method Detail
-
onAdd
public void onAdd(IForgeRegistryInternal<Block> owner, RegistryManager stage, int id, Block block, @Nullable Block oldBlock)
- Specified by:
onAdd
in interfaceIForgeRegistry.AddCallback<Block>
-
onClear
public void onClear(IForgeRegistryInternal<Block> owner, RegistryManager stage)
- Specified by:
onClear
in interfaceIForgeRegistry.ClearCallback<Block>
-
onCreate
public void onCreate(IForgeRegistryInternal<Block> owner, RegistryManager stage)
- Specified by:
onCreate
in interfaceIForgeRegistry.CreateCallback<Block>
-
createDummy
public Block createDummy(ResourceLocation key)
- Specified by:
createDummy
in interfaceIForgeRegistry.DummyFactory<Block>
-
onBake
public void onBake(IForgeRegistryInternal<Block> owner, RegistryManager stage)
- Specified by:
onBake
in interfaceIForgeRegistry.BakeCallback<Block>
-
-