Package net.minecraftforge.registries
Class GameData.ItemCallbacks
- java.lang.Object
-
- net.minecraftforge.registries.GameData.ItemCallbacks
-
- All Implemented Interfaces:
IForgeRegistry.AddCallback<Item>
,IForgeRegistry.ClearCallback<Item>
,IForgeRegistry.CreateCallback<Item>
- Enclosing class:
- GameData
private static class GameData.ItemCallbacks extends java.lang.Object implements IForgeRegistry.AddCallback<Item>, IForgeRegistry.ClearCallback<Item>, IForgeRegistry.CreateCallback<Item>
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static GameData.ItemCallbacks
INSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description private
ItemCallbacks()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onAdd(IForgeRegistryInternal<Item> owner, RegistryManager stage, int id, Item item, Item oldItem)
void
onClear(IForgeRegistryInternal<Item> owner, RegistryManager stage)
void
onCreate(IForgeRegistryInternal<Item> owner, RegistryManager stage)
-
-
-
Field Detail
-
INSTANCE
static final GameData.ItemCallbacks INSTANCE
-
-
Method Detail
-
onAdd
public void onAdd(IForgeRegistryInternal<Item> owner, RegistryManager stage, int id, Item item, @Nullable Item oldItem)
- Specified by:
onAdd
in interfaceIForgeRegistry.AddCallback<Item>
-
onClear
public void onClear(IForgeRegistryInternal<Item> owner, RegistryManager stage)
- Specified by:
onClear
in interfaceIForgeRegistry.ClearCallback<Item>
-
onCreate
public void onCreate(IForgeRegistryInternal<Item> owner, RegistryManager stage)
- Specified by:
onCreate
in interfaceIForgeRegistry.CreateCallback<Item>
-
-