diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2019-11-18 23:20:53 -0500 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2019-11-18 23:20:53 -0500 |
commit | ffbb0eb24842e51aa3b3a6965b0d176a76a01c4d (patch) | |
tree | d48887830389725ce04a956ecadd365249fcc6eb /src/main/java/net/transit/impl/IProvider.java | |
parent | cd5fc531b48770883d411783cc2f626b11d16b6f (diff) |
[Update] Change class path from corecg.transit to transit
Diffstat (limited to 'src/main/java/net/transit/impl/IProvider.java')
-rw-r--r-- | src/main/java/net/transit/impl/IProvider.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/main/java/net/transit/impl/IProvider.java b/src/main/java/net/transit/impl/IProvider.java new file mode 100644 index 0000000..b613436 --- /dev/null +++ b/src/main/java/net/transit/impl/IProvider.java @@ -0,0 +1,17 @@ +package net.transit.impl; + +import net.transit.type.IType; +import net.minecraft.util.math.Direction; + +public interface IProvider<T extends IType<?, ?>> +{ + + // Direction given if provider is a block + public boolean canProvide(Direction d); + + // Provide the next T (should trigger ITransferEvent) + public T provide(); + + // Retain the rejected T if the acceptor did not accept it (should trigger ITransferEvent) + public void accept(T rejected); +}
\ No newline at end of file |