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)
ChannelOutputInt
write
in interface ChannelOutputInt
object
- the integer to write to the channelpublic void poison(int strength)
Poisonable
poison
in interface Poisonable
strength
- the strength of the poison (must be >= 0).