public class CompoundDataFixer extends DataFixer
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,ModFixs> |
modFixers |
private ModFixs |
vanilla |
private java.util.Map<IFixType,java.util.List<IDataWalker>> |
walkers |
Constructor and Description |
---|
CompoundDataFixer(DataFixer vanilla) |
Modifier and Type | Method and Description |
---|---|
private java.util.Map<java.lang.String,java.lang.Integer> |
getVersions(NBTTagCompound nbt) |
private java.util.List<IDataWalker> |
getWalkers(IFixType type) |
ModFixs |
init(java.lang.String modid,
int version)
Initialize your mod specific data fixer.
|
NBTTagCompound |
process(IFixType type,
NBTTagCompound nbt) |
NBTTagCompound |
process(IFixType type,
NBTTagCompound nbt,
int mcversion)
Deprecated.
|
void |
registerFix(IFixType type,
IFixableData fixable)
Deprecated.
|
void |
registerVanillaWalker(IFixType type,
IDataWalker walker) |
void |
registerWalker(FixTypes type,
IDataWalker walker)
Deprecated.
|
private void |
validateModId(java.lang.String mod) |
void |
writeVersionData(NBTTagCompound nbt) |
private final ModFixs vanilla
private final java.util.Map<java.lang.String,ModFixs> modFixers
private final java.util.Map<IFixType,java.util.List<IDataWalker>> walkers
public CompoundDataFixer(DataFixer vanilla)
public NBTTagCompound process(IFixType type, NBTTagCompound nbt)
@Deprecated public NBTTagCompound process(IFixType type, NBTTagCompound nbt, int mcversion)
process
in interface IDataFixer
process
in class DataFixer
private java.util.List<IDataWalker> getWalkers(IFixType type)
@Deprecated public void registerFix(IFixType type, IFixableData fixable)
registerFix
in class DataFixer
@Deprecated public void registerWalker(FixTypes type, IDataWalker walker)
registerWalker
in class DataFixer
public void registerVanillaWalker(IFixType type, IDataWalker walker)
registerVanillaWalker
in class DataFixer
private void validateModId(java.lang.String mod)
public ModFixs init(java.lang.String modid, int version)
modid
- You mod id, must be lower case.version
- The current data version of your modprivate java.util.Map<java.lang.String,java.lang.Integer> getVersions(NBTTagCompound nbt)
public void writeVersionData(NBTTagCompound nbt)