Skip to content

Commit 7bb6675

Browse files
committed
Use base mod class for versions
1 parent 627c418 commit 7bb6675

2 files changed

Lines changed: 4 additions & 44 deletions

File tree

build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
mod_version=0.1.0
22
minecraft_version=1.8
33
forge_version=11.14.3.1487
4-
cyclopscore_version=0.1.0-104
4+
cyclopscore_version=0.1.0-118
55
release_type=beta

src/main/java/org/cyclops/structuredcrafting/StructuredCrafting.java

Lines changed: 3 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@
77
import org.cyclops.cyclopscore.config.ConfigHandler;
88
import org.cyclops.cyclopscore.config.extendedconfig.BlockItemConfigReference;
99
import org.cyclops.cyclopscore.init.ItemCreativeTab;
10-
import org.cyclops.cyclopscore.init.ModBase;
10+
import org.cyclops.cyclopscore.init.ModBaseVersionable;
1111
import org.cyclops.cyclopscore.init.RecipeHandler;
1212
import org.cyclops.cyclopscore.proxy.ICommonProxy;
13-
import org.cyclops.cyclopscore.tracking.IModVersion;
1413
import org.cyclops.structuredcrafting.block.BlockStructuredCrafterConfig;
1514
import org.cyclops.structuredcrafting.craft.provider.IItemStackProviderRegistry;
1615
import org.cyclops.structuredcrafting.craft.provider.InventoryItemStackProvider;
@@ -29,22 +28,16 @@
2928
dependencies = Reference.MOD_DEPENDENCIES,
3029
guiFactory = "org.cyclops.structuredcrafting.GuiConfigOverview$ExtendedConfigGuiFactory"
3130
)
32-
public class StructuredCrafting extends ModBase implements IModVersion {
31+
public class StructuredCrafting extends ModBaseVersionable {
3332

3433
/**
3534
* The unique instance of this mod.
3635
*/
3736
@Mod.Instance(value = Reference.MOD_ID)
3837
public static StructuredCrafting _instance;
3938

40-
private boolean versionInfo = false;
41-
private String version;
42-
private String info;
43-
private String updateUrl;
44-
4539
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);
4841
}
4942

5043
@Override
@@ -108,39 +101,6 @@ public ICommonProxy getProxy() {
108101
return null;
109102
}
110103

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-
144104
/**
145105
* Log a new info message for this mod.
146106
* @param message The message to show.

0 commit comments

Comments
 (0)