blob: b61343642090d18dba90b818198a8273a38d1fdd (
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.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);
}
|