class ChannelOutputIntImpl extends java.lang.Object implements ChannelOutputInt
| Modifier and Type | Field and Description |
|---|---|
private ChannelInternalsInt |
channel |
private int |
immunity |
| Constructor and Description |
|---|
ChannelOutputIntImpl(ChannelInternalsInt _channel,
int _immunity) |
| Modifier and Type | Method and Description |
|---|---|
void |
poison(int strength)
This injects poison into the channel.
|
void |
write(int object)
Write an int to the channel.
|
private ChannelInternalsInt channel
private int immunity
ChannelOutputIntImpl(ChannelInternalsInt _channel, int _immunity)
public void write(int object)
ChannelOutputIntwrite in interface ChannelOutputIntobject - the integer to write to the channelpublic void poison(int strength)
Poisonablepoison in interface Poisonablestrength - the strength of the poison (must be >= 0).