public class TitleS2CPacket extends Object implements Packet<ClientPlayPacketListener>
Modifier and Type | Class and Description |
---|---|
static class |
TitleS2CPacket.Action |
Modifier and Type | Field and Description |
---|---|
private TitleS2CPacket.Action |
action |
private int |
fadeInTicks |
private int |
fadeOutTicks |
private int |
stayTicks |
private Text |
text |
Constructor and Description |
---|
TitleS2CPacket() |
TitleS2CPacket(int fadeInTicks,
int stayTicks,
int fadeOutTicks) |
TitleS2CPacket(TitleS2CPacket.Action action,
Text text) |
TitleS2CPacket(TitleS2CPacket.Action action,
Text text,
int fadeInTicks,
int stayTicks,
int fadeOutTicks) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
TitleS2CPacket.Action |
getAction() |
int |
getFadeInTicks() |
int |
getFadeOutTicks() |
int |
getStayTicks() |
Text |
getText() |
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWritingErrorSkippable
private TitleS2CPacket.Action action
private Text text
private int fadeInTicks
private int stayTicks
private int fadeOutTicks
public TitleS2CPacket()
public TitleS2CPacket(TitleS2CPacket.Action action, Text text)
public TitleS2CPacket(int fadeInTicks, int stayTicks, int fadeOutTicks)
public TitleS2CPacket(TitleS2CPacket.Action action, @Nullable Text text, int fadeInTicks, int stayTicks, int fadeOutTicks)
public void read(PacketByteBuf buf) throws IOException
read
in interface Packet<ClientPlayPacketListener>
IOException
public void write(PacketByteBuf buf) throws IOException
write
in interface Packet<ClientPlayPacketListener>
IOException
public void apply(ClientPlayPacketListener clientPlayPacketListener)
apply
in interface Packet<ClientPlayPacketListener>
@Environment(value=CLIENT) public TitleS2CPacket.Action getAction()
@Environment(value=CLIENT) public Text getText()
@Environment(value=CLIENT) public int getFadeInTicks()
@Environment(value=CLIENT) public int getStayTicks()
@Environment(value=CLIENT) public int getFadeOutTicks()