37public class SendScreenFade
extends OutgoingPacket {
39 private final String text;
40 private final int state;
41 private final int seconds;
43 public SendScreenFade(String text,
int state,
int seconds) {
47 this.seconds = seconds;
50 throw new IllegalArgumentException(
"The amount of seconds cannot be less than one.");
55 protected boolean encode(
Player player) {
56 builder.writeString(text);
57 builder.writeByte(state);
58 builder.writeByte(seconds);