public class DataFixer extends java.lang.Object implements IDataFixer
Modifier and Type | Field and Description |
---|---|
private java.util.Map<IFixType,java.util.List<IFixableData>> |
fixMap |
private static org.apache.logging.log4j.Logger |
LOGGER |
int |
version |
private java.util.Map<IFixType,java.util.List<IDataWalker>> |
walkerMap |
Constructor and Description |
---|
DataFixer(int versionIn) |
Modifier and Type | Method and Description |
---|---|
private <V> java.util.List<V> |
getTypeList(java.util.Map<IFixType,java.util.List<V>> map,
IFixType type) |
NBTTagCompound |
process(IFixType type,
NBTTagCompound compound) |
NBTTagCompound |
process(IFixType type,
NBTTagCompound compound,
int versionIn) |
private NBTTagCompound |
processFixes(IFixType type,
NBTTagCompound compound,
int versionIn) |
private NBTTagCompound |
processWalkers(IFixType type,
NBTTagCompound compound,
int versionIn) |
void |
registerFix(IFixType type,
IFixableData fixable) |
void |
registerVanillaWalker(IFixType type,
IDataWalker walker) |
void |
registerWalker(FixTypes type,
IDataWalker walker) |
private static final org.apache.logging.log4j.Logger LOGGER
private final java.util.Map<IFixType,java.util.List<IDataWalker>> walkerMap
private final java.util.Map<IFixType,java.util.List<IFixableData>> fixMap
public final int version
public NBTTagCompound process(IFixType type, NBTTagCompound compound)
public NBTTagCompound process(IFixType type, NBTTagCompound compound, int versionIn)
process
in interface IDataFixer
private NBTTagCompound processFixes(IFixType type, NBTTagCompound compound, int versionIn)
private NBTTagCompound processWalkers(IFixType type, NBTTagCompound compound, int versionIn)
public void registerWalker(FixTypes type, IDataWalker walker)
public void registerVanillaWalker(IFixType type, IDataWalker walker)
public void registerFix(IFixType type, IFixableData fixable)