public class SPacketTitle extends java.lang.Object implements Packet<INetHandlerPlayClient>
Modifier and Type | Class and Description |
---|---|
static class |
SPacketTitle.Type |
Constructor and Description |
---|
SPacketTitle() |
SPacketTitle(int fadeInTimeIn,
int displayTimeIn,
int fadeOutTimeIn) |
SPacketTitle(SPacketTitle.Type typeIn,
ITextComponent messageIn) |
SPacketTitle(SPacketTitle.Type typeIn,
ITextComponent messageIn,
int fadeInTimeIn,
int displayTimeIn,
int fadeOutTimeIn) |
Modifier and Type | Method and Description |
---|---|
int |
getDisplayTime() |
int |
getFadeInTime() |
int |
getFadeOutTime() |
ITextComponent |
getMessage() |
SPacketTitle.Type |
getType() |
void |
processPacket(INetHandlerPlayClient handler) |
void |
readPacketData(PacketBuffer buf) |
void |
writePacketData(PacketBuffer buf) |
public SPacketTitle()
public SPacketTitle(SPacketTitle.Type typeIn, ITextComponent messageIn)
public SPacketTitle(int fadeInTimeIn, int displayTimeIn, int fadeOutTimeIn)
public SPacketTitle(SPacketTitle.Type typeIn, @Nullable ITextComponent messageIn, int fadeInTimeIn, int displayTimeIn, int fadeOutTimeIn)
public void readPacketData(PacketBuffer buf) throws java.io.IOException
readPacketData
in interface Packet<INetHandlerPlayClient>
java.io.IOException
public void writePacketData(PacketBuffer buf) throws java.io.IOException
writePacketData
in interface Packet<INetHandlerPlayClient>
java.io.IOException
public void processPacket(INetHandlerPlayClient handler)
processPacket
in interface Packet<INetHandlerPlayClient>
public SPacketTitle.Type getType()
public ITextComponent getMessage()
public int getFadeInTime()
public int getDisplayTime()
public int getFadeOutTime()