public class SChatPacket extends java.lang.Object implements IPacket<IClientPlayNetHandler>
| コンストラクタと説明 |
|---|
SChatPacket() |
SChatPacket(ITextComponent componentIn) |
SChatPacket(ITextComponent message,
ChatType type) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
ITextComponent |
getChatComponent() |
ChatType |
getType() |
boolean |
isSystem()
This method returns true if the type is SYSTEM or ABOVE_HOTBAR, and false if CHAT
|
void |
processPacket(IClientPlayNetHandler handler)
Passes this Packet on to the NetHandler for processing.
|
void |
readPacketData(PacketBuffer buf)
Reads the raw packet data from the data stream.
|
boolean |
shouldSkipErrors() |
void |
writePacketData(PacketBuffer buf)
Writes the raw packet data to the data stream.
|
public SChatPacket()
public SChatPacket(ITextComponent componentIn)
public SChatPacket(ITextComponent message, ChatType type)
public void readPacketData(PacketBuffer buf) throws java.io.IOException
readPacketData インタフェース内 IPacket<IClientPlayNetHandler>java.io.IOExceptionpublic void writePacketData(PacketBuffer buf) throws java.io.IOException
writePacketData インタフェース内 IPacket<IClientPlayNetHandler>java.io.IOExceptionpublic void processPacket(IClientPlayNetHandler handler)
processPacket インタフェース内 IPacket<IClientPlayNetHandler>public ITextComponent getChatComponent()
public boolean isSystem()
public ChatType getType()
public boolean shouldSkipErrors()
shouldSkipErrors インタフェース内 IPacket<IClientPlayNetHandler>