blob: 94e903f7c438b4fc1161b6c3faa1aa8b3b1b11fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
package net.transit.impl;
import net.transit.packet.IPacket;
import net.minecraft.util.math.Direction;
public interface IProvider<T>
{
// Direction given if provider is a block
public boolean canProvide(Direction d);
// Provide the next T (should trigger ITransferEvent)
public IPacket<T> provide();
// Retain the rejected T if the acceptor did not accept it (should trigger ITransferEvent)
public void retain(IPacket<T> rejected);
}
|