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