summaryrefslogtreecommitdiff
path: root/src/main/java/net/cshift/api/transit
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/net/cshift/api/transit')
-rw-r--r--src/main/java/net/cshift/api/transit/network/Channel.java4
-rw-r--r--src/main/java/net/cshift/api/transit/network/INode.java2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/net/cshift/api/transit/network/Channel.java b/src/main/java/net/cshift/api/transit/network/Channel.java
index 3fdae88..758c7d4 100644
--- a/src/main/java/net/cshift/api/transit/network/Channel.java
+++ b/src/main/java/net/cshift/api/transit/network/Channel.java
@@ -139,8 +139,8 @@ public final class Channel<D> {
* @param packet the packet to send
* @return The overflow data if the packet is only partially accepted. {@code null} otherwise.
*/
- public IStaticPacket send(IStaticPacket packet)
+ public IStaticPacket<D> send(IStaticPacket<D> packet)
{
- return to.accept(packet, this);
+ return to.<D>accept(packet, this);
}
}
diff --git a/src/main/java/net/cshift/api/transit/network/INode.java b/src/main/java/net/cshift/api/transit/network/INode.java
index 6653e40..ad9f1d3 100644
--- a/src/main/java/net/cshift/api/transit/network/INode.java
+++ b/src/main/java/net/cshift/api/transit/network/INode.java
@@ -45,7 +45,7 @@ public interface INode
* @param channel The channel which the packet is coming through
* @return The overflow data if the packet is only partially accepted. {@code null} otherwise.
*/
- public IStaticPacket accept(IStaticPacket packet, Channel<?> channel);
+ public <T> IStaticPacket<T> accept(IStaticPacket<T> packet, Channel<T> channel);
/** Pressure
*