summaryrefslogtreecommitdiff
path: root/src/main/java/net/transit/impl/IAcceptor.java
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2019-11-18 23:20:53 -0500
committerKyle Gunger <kgunger12@gmail.com>2019-11-18 23:20:53 -0500
commitffbb0eb24842e51aa3b3a6965b0d176a76a01c4d (patch)
treed48887830389725ce04a956ecadd365249fcc6eb /src/main/java/net/transit/impl/IAcceptor.java
parentcd5fc531b48770883d411783cc2f626b11d16b6f (diff)
[Update] Change class path from corecg.transit to transit
Diffstat (limited to 'src/main/java/net/transit/impl/IAcceptor.java')
-rw-r--r--src/main/java/net/transit/impl/IAcceptor.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main/java/net/transit/impl/IAcceptor.java b/src/main/java/net/transit/impl/IAcceptor.java
new file mode 100644
index 0000000..9433ea3
--- /dev/null
+++ b/src/main/java/net/transit/impl/IAcceptor.java
@@ -0,0 +1,13 @@
+package net.transit.impl;
+
+import net.transit.type.IType;
+import net.minecraft.util.math.Direction;
+
+public interface IAcceptor<T extends IType<?, ?>>
+{
+ // Direction given if acceptor is a block
+ public boolean canAccept(Direction d);
+
+ // Accept (or not) a provided T (should trigger ITransferEvent)
+ public boolean accept(T provided);
+} \ No newline at end of file