From b0f364399bfaa952c8692925efda9ffdf2fbd75e Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Fri, 22 Jan 2021 21:10:46 -0500 Subject: 1.0.0 --- gradle.properties | 2 +- .../net/cshift/transit/basic/system/AbstractSystem.java | 13 ------------- .../cshift/transit/basic/system/AbstractSystemNode.java | 12 ------------ src/main/java/net/cshift/transit/type/Type.java | 15 ++++++++------- src/main/resources/fabric.mod.json | 2 +- 5 files changed, 10 insertions(+), 34 deletions(-) delete mode 100644 src/main/java/net/cshift/transit/basic/system/AbstractSystem.java delete mode 100644 src/main/java/net/cshift/transit/basic/system/AbstractSystemNode.java diff --git a/gradle.properties b/gradle.properties index 7292418..6be1baa 100644 --- a/gradle.properties +++ b/gradle.properties @@ -8,7 +8,7 @@ org.gradle.jvmargs=-Xmx1G loader_version=0.10.6+build.214 # Mod Properties - mod_version = 1.0.0-rc.1 + mod_version = 1.0.0 maven_group = net.corechg archives_base_name = transit-api diff --git a/src/main/java/net/cshift/transit/basic/system/AbstractSystem.java b/src/main/java/net/cshift/transit/basic/system/AbstractSystem.java deleted file mode 100644 index ef6254c..0000000 --- a/src/main/java/net/cshift/transit/basic/system/AbstractSystem.java +++ /dev/null @@ -1,13 +0,0 @@ -package net.cshift.transit.basic.system; - -import net.cshift.transit.network.system.*; - -public abstract class AbstractSystem implements ISystem { - - @Override - public INode[] getNodes() { - // TODO Auto-generated method stub - return null; - } - -} diff --git a/src/main/java/net/cshift/transit/basic/system/AbstractSystemNode.java b/src/main/java/net/cshift/transit/basic/system/AbstractSystemNode.java deleted file mode 100644 index a246588..0000000 --- a/src/main/java/net/cshift/transit/basic/system/AbstractSystemNode.java +++ /dev/null @@ -1,12 +0,0 @@ -package net.cshift.transit.basic.system; - -import net.cshift.transit.basic.*; -import net.minecraft.block.entity.*; - -public abstract class AbstractSystemNode extends AbstractNode { - - public AbstractSystemNode(BlockEntityType type) { - super(type); - } - -} diff --git a/src/main/java/net/cshift/transit/type/Type.java b/src/main/java/net/cshift/transit/type/Type.java index 586a891..2ea5bf4 100644 --- a/src/main/java/net/cshift/transit/type/Type.java +++ b/src/main/java/net/cshift/transit/type/Type.java @@ -11,6 +11,7 @@ public class Type protected final String typeID; protected final String groupID; + // Should not override, but you can if you must public Type(String tID, String gID) { typeID = tID; @@ -129,7 +130,7 @@ public class Type * @param data The data to convert * @return The data formatted in this type */ - public T convertFrom(Type from, String group, T data) { + public T convertFrom(Type from, T data, String group) { return this.fromBase(from.toBase(data, group), group); } @@ -140,7 +141,7 @@ public class Type * @return The data formatted in this type */ public final T convertFrom(Type from, T data) { - return convertFrom(from, from.groupID, data); + return convertFrom(from, data, from.groupID); } /** Convert a packet using another type to a packet using this type within the given group. @@ -150,7 +151,7 @@ public class Type * @return The new packet formatted in this type */ public final IStaticPacket convertFrom(IStaticPacket packet, String group) { - return new StaticPacket(convertFrom(packet.getType(), group, packet.getData()), this); + return new StaticPacket(convertFrom(packet.getType(), packet.getData(), group), this); } /** Convert a packet using another type to a packet using this type within the default group. @@ -175,8 +176,8 @@ public class Type * @param data The data to convert * @return The data formatted in this type */ - public final T convertTo(Type to, String group, T data) { - return to.convertFrom(this, group, data); + public final T convertTo(Type to, T data, String group) { + return to.convertFrom(this, data, group); } /** Convert data from this type to another type in the default group. @@ -186,7 +187,7 @@ public class Type * @return The data formatted in this type */ public final T convertTo(Type to, T data) { - return to.convertFrom(this, groupID, data); + return to.convertFrom(this, data, this.groupID); } /** Convert a packet using this type to a packet using another type within the given group. @@ -205,7 +206,7 @@ public class Type * @return The new packet formatted in this type */ public final IStaticPacket convertTo(Type to, IStaticPacket packet) { - return to.convertFrom(packet, groupID); + return to.convertFrom(packet, this.groupID); } diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index 44afcd7..b2634d6 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -1,7 +1,7 @@ { "schemaVersion": 1, "id": "transit-api", - "version": "1.0.0-rc.1", + "version": "1.0.0", "name": "Transit API", "description": "Move things about!", -- cgit v1.2.3