summaryrefslogtreecommitdiff
path: root/src/main/java/net/transit/impl/IAcceptor.java
blob: 7fe06aad1e096879595e7d13679342cce6ee955c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
package net.transit.impl;

import net.transit.packet.IPacket;
import net.minecraft.util.math.Direction;

public interface IAcceptor<T>
{
    //  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<T> provided);
}