public class STitlePacket extends java.lang.Object implements IPacket<IClientPlayNetHandler>
Modifier and Type | Class and Description |
---|---|
static class |
STitlePacket.Type |
Modifier and Type | Field and Description |
---|---|
private int |
displayTime |
private int |
fadeInTime |
private int |
fadeOutTime |
private ITextComponent |
message |
private STitlePacket.Type |
type |
Constructor and Description |
---|
STitlePacket() |
STitlePacket(int fadeInTimeIn,
int displayTimeIn,
int fadeOutTimeIn) |
STitlePacket(STitlePacket.Type typeIn,
ITextComponent messageIn) |
STitlePacket(STitlePacket.Type typeIn,
ITextComponent messageIn,
int fadeInTimeIn,
int displayTimeIn,
int fadeOutTimeIn) |
Modifier and Type | Method and Description |
---|---|
int |
getDisplayTime() |
int |
getFadeInTime() |
int |
getFadeOutTime() |
ITextComponent |
getMessage() |
STitlePacket.Type |
getType() |
void |
processPacket(IClientPlayNetHandler handler) |
void |
readPacketData(PacketBuffer buf) |
void |
writePacketData(PacketBuffer buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
shouldSkipErrors
private STitlePacket.Type type
private ITextComponent message
private int fadeInTime
private int displayTime
private int fadeOutTime
public STitlePacket()
public STitlePacket(STitlePacket.Type typeIn, ITextComponent messageIn)
public STitlePacket(int fadeInTimeIn, int displayTimeIn, int fadeOutTimeIn)
public STitlePacket(STitlePacket.Type typeIn, @Nullable ITextComponent messageIn, int fadeInTimeIn, int displayTimeIn, int fadeOutTimeIn)
public void readPacketData(PacketBuffer buf) throws java.io.IOException
readPacketData
in interface IPacket<IClientPlayNetHandler>
java.io.IOException
public void writePacketData(PacketBuffer buf) throws java.io.IOException
writePacketData
in interface IPacket<IClientPlayNetHandler>
java.io.IOException
public void processPacket(IClientPlayNetHandler handler)
processPacket
in interface IPacket<IClientPlayNetHandler>
public STitlePacket.Type getType()
public ITextComponent getMessage()
public int getFadeInTime()
public int getDisplayTime()
public int getFadeOutTime()