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 Object
implements IForgeRegistry.AddCallback<Item>, IForgeRegistry.ClearCallback<Item>, IForgeRegistry.CreateCallback<Item>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onAdd
(IForgeRegistryInternal<Item> owner, RegistryManager stage, int id, ResourceKey<Item> key, Item item, @Nullable Item oldItem) void
onClear
(IForgeRegistryInternal<Item> owner, RegistryManager stage) void
onCreate
(IForgeRegistryInternal<Item> owner, RegistryManager stage)
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
ItemCallbacks
private ItemCallbacks()
-
-
Method Details
-
onAdd
public void onAdd(IForgeRegistryInternal<Item> owner, RegistryManager stage, int id, ResourceKey<Item> key, Item item, @Nullable @Nullable Item oldItem) - Specified by:
onAdd
in interfaceIForgeRegistry.AddCallback<Item>
-
onClear
- Specified by:
onClear
in interfaceIForgeRegistry.ClearCallback<Item>
-
onCreate
- Specified by:
onCreate
in interfaceIForgeRegistry.CreateCallback<Item>
-