|
7 | 7 | import org.cyclops.cyclopscore.config.ConfigHandler; |
8 | 8 | import org.cyclops.cyclopscore.config.extendedconfig.BlockItemConfigReference; |
9 | 9 | import org.cyclops.cyclopscore.init.ItemCreativeTab; |
10 | | -import org.cyclops.cyclopscore.init.ModBase; |
| 10 | +import org.cyclops.cyclopscore.init.ModBaseVersionable; |
11 | 11 | import org.cyclops.cyclopscore.init.RecipeHandler; |
12 | 12 | import org.cyclops.cyclopscore.proxy.ICommonProxy; |
13 | | -import org.cyclops.cyclopscore.tracking.IModVersion; |
14 | 13 | import org.cyclops.structuredcrafting.block.BlockStructuredCrafterConfig; |
15 | 14 | import org.cyclops.structuredcrafting.craft.provider.IItemStackProviderRegistry; |
16 | 15 | import org.cyclops.structuredcrafting.craft.provider.InventoryItemStackProvider; |
|
29 | 28 | dependencies = Reference.MOD_DEPENDENCIES, |
30 | 29 | guiFactory = "org.cyclops.structuredcrafting.GuiConfigOverview$ExtendedConfigGuiFactory" |
31 | 30 | ) |
32 | | -public class StructuredCrafting extends ModBase implements IModVersion { |
| 31 | +public class StructuredCrafting extends ModBaseVersionable { |
33 | 32 |
|
34 | 33 | /** |
35 | 34 | * The unique instance of this mod. |
36 | 35 | */ |
37 | 36 | @Mod.Instance(value = Reference.MOD_ID) |
38 | 37 | public static StructuredCrafting _instance; |
39 | 38 |
|
40 | | - private boolean versionInfo = false; |
41 | | - private String version; |
42 | | - private String info; |
43 | | - private String updateUrl; |
44 | | - |
45 | 39 | public StructuredCrafting() { |
46 | | - super(Reference.MOD_ID, Reference.MOD_NAME); |
47 | | - putGenericReference(REFKEY_MOD_VERSION, Reference.MOD_VERSION); |
| 40 | + super(Reference.MOD_ID, Reference.MOD_NAME, Reference.MOD_VERSION); |
48 | 41 | } |
49 | 42 |
|
50 | 43 | @Override |
@@ -108,39 +101,6 @@ public ICommonProxy getProxy() { |
108 | 101 | return null; |
109 | 102 | } |
110 | 103 |
|
111 | | - @Override |
112 | | - public void setVersionInfo(String version, String info, String updateUrl) { |
113 | | - versionInfo = true; |
114 | | - this.version = version; |
115 | | - this.info = info; |
116 | | - this.updateUrl = updateUrl; |
117 | | - } |
118 | | - |
119 | | - @Override |
120 | | - public boolean isVersionInfo() { |
121 | | - return versionInfo; |
122 | | - } |
123 | | - |
124 | | - @Override |
125 | | - public String getVersion() { |
126 | | - return version; |
127 | | - } |
128 | | - |
129 | | - @Override |
130 | | - public String getInfo() { |
131 | | - return info; |
132 | | - } |
133 | | - |
134 | | - @Override |
135 | | - public String getUpdateUrl() { |
136 | | - return updateUrl; |
137 | | - } |
138 | | - |
139 | | - @Override |
140 | | - public boolean needsUpdate() { |
141 | | - return getVersion() != null && !Reference.MOD_VERSION.equals(getVersion()); |
142 | | - } |
143 | | - |
144 | 104 | /** |
145 | 105 | * Log a new info message for this mod. |
146 | 106 | * @param message The message to show. |
|
0 commit comments