From df044930bca4252ff6e4814c654a612c6aee2136 Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Wed, 20 Nov 2019 12:45:16 -0500 Subject: [0.1.7 REWRITE] Codebase overhaul. ~ Codebase split into two sub-packages ~ net.transit.network for transfering between objects ~ net.transit.type for type registering and conversion + Added new interfaces (INode and ISystem) + More documentation + (Kinda) Working build - Removed unnessairy interfaces (IGenerator and IConsumer) - Removed base types ~ Restructured type system --- src/main/java/net/transit/impl/IAcceptor.java | 13 ------------- src/main/java/net/transit/impl/IConsumer.java | 8 -------- src/main/java/net/transit/impl/IGenerator.java | 8 -------- src/main/java/net/transit/impl/IProvider.java | 17 ----------------- 4 files changed, 46 deletions(-) delete mode 100644 src/main/java/net/transit/impl/IAcceptor.java delete mode 100644 src/main/java/net/transit/impl/IConsumer.java delete mode 100644 src/main/java/net/transit/impl/IGenerator.java delete mode 100644 src/main/java/net/transit/impl/IProvider.java (limited to 'src/main/java/net/transit/impl') diff --git a/src/main/java/net/transit/impl/IAcceptor.java b/src/main/java/net/transit/impl/IAcceptor.java deleted file mode 100644 index 7fe06aa..0000000 --- a/src/main/java/net/transit/impl/IAcceptor.java +++ /dev/null @@ -1,13 +0,0 @@ -package net.transit.impl; - -import net.transit.packet.IPacket; -import net.minecraft.util.math.Direction; - -public interface IAcceptor -{ - // Direction given if acceptor is a block - public boolean canAccept(Direction d); - - // Accept (or not) a provided T (should trigger ITransferEvent) - public boolean accept(IPacket provided); -} \ No newline at end of file diff --git a/src/main/java/net/transit/impl/IConsumer.java b/src/main/java/net/transit/impl/IConsumer.java deleted file mode 100644 index 7b3b070..0000000 --- a/src/main/java/net/transit/impl/IConsumer.java +++ /dev/null @@ -1,8 +0,0 @@ -package net.transit.impl; - -public interface IConsumer extends IAcceptor -{ - public boolean canConsume(); - - -} \ No newline at end of file diff --git a/src/main/java/net/transit/impl/IGenerator.java b/src/main/java/net/transit/impl/IGenerator.java deleted file mode 100644 index f69de2f..0000000 --- a/src/main/java/net/transit/impl/IGenerator.java +++ /dev/null @@ -1,8 +0,0 @@ -package net.transit.impl; - -public interface IGenerator extends IProvider -{ - public boolean canGenerate(); - - -} \ No newline at end of file diff --git a/src/main/java/net/transit/impl/IProvider.java b/src/main/java/net/transit/impl/IProvider.java deleted file mode 100644 index 94e903f..0000000 --- a/src/main/java/net/transit/impl/IProvider.java +++ /dev/null @@ -1,17 +0,0 @@ -package net.transit.impl; - -import net.transit.packet.IPacket; -import net.minecraft.util.math.Direction; - -public interface IProvider -{ - - // Direction given if provider is a block - public boolean canProvide(Direction d); - - // Provide the next T (should trigger ITransferEvent) - public IPacket provide(); - - // Retain the rejected T if the acceptor did not accept it (should trigger ITransferEvent) - public void retain(IPacket rejected); -} \ No newline at end of file -- cgit v1.2.3