class ChannelOutputImpl<T> extends java.lang.Object implements ChannelOutput<T>
Modifier and Type | Field and Description |
---|---|
private ChannelInternals<T> |
channel |
private int |
immunity |
Constructor and Description |
---|
ChannelOutputImpl(ChannelInternals _channel,
int _immunity) |
Modifier and Type | Method and Description |
---|---|
void |
poison(int strength)
This injects poison into the channel.
|
void |
write(T object)
Write an Object to the channel.
|
private ChannelInternals<T> channel
private int immunity
ChannelOutputImpl(ChannelInternals _channel, int _immunity)
public void write(T object)
ChannelOutput
write
in interface ChannelOutput<T>
object
- the object to write to the channelpublic void poison(int strength)
Poisonable
poison
in interface Poisonable
strength
- the strength of the poison (must be >= 0).