Package cn.nukkit.network.protocol
Class TextPacket
java.lang.Object
cn.nukkit.utils.BinaryStream
cn.nukkit.network.protocol.DataPacket
cn.nukkit.network.protocol.TextPacket
- All Implemented Interfaces:
Cloneable
- Since:
- 15-10-13
-
Field Summary
Modifier and TypeFieldDescriptionboolean
static final byte
String[]
byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
Fields inherited from class cn.nukkit.network.protocol.DataPacket
EMPTY_ARRAY, isEncoded, reliability
Fields inherited from class cn.nukkit.utils.BinaryStream
count, offset
-
Constructor Summary
-
Method Summary
Methods inherited from class cn.nukkit.network.protocol.DataPacket
clean, clone, compress, compress, getChannel, reset, setChannel, tryEncode
Methods inherited from class cn.nukkit.utils.BinaryStream
feof, get, get, getArray, getAttributeList, getBlockFace, getBlockVector3, getBoolean, getBuffer, getByte, getByteArray, getCount, getEntityLink, getEntityRuntimeId, getEntityUniqueId, getFloat, getFloat, getImage, getInt, getLFloat, getLFloat, getLInt, getLLong, getLong, getLShort, getLTriad, getOffset, getRecipeIngredient, getShort, getSignedBlockPosition, getSkin, getSlot, getString, getTag, getTriad, getUnsignedVarInt, getUnsignedVarLong, getUUID, getVarInt, getVarLong, getVector3f, put, putArray, putArray, putArray, putAttributeList, putBlockFace, putBlockVector3, putBlockVector3, putBoolean, putByte, putByteArray, putEntityLink, putEntityRuntimeId, putEntityUniqueId, putFloat, putGameRules, putImage, putInt, putLFloat, putLInt, putLLong, putLong, putLShort, putLTriad, putRecipeIngredient, putShort, putSignedBlockPosition, putSkin, putSlot, putSlot, putString, putTag, putTriad, putUnsignedVarInt, putUnsignedVarLong, putUUID, putVarInt, putVarLong, putVector3f, putVector3f, setBuffer, setBuffer, setOffset
-
Field Details
-
NETWORK_ID
public static final byte NETWORK_ID- See Also:
-
TYPE_RAW
public static final byte TYPE_RAW- See Also:
-
TYPE_CHAT
public static final byte TYPE_CHAT- See Also:
-
TYPE_TRANSLATION
public static final byte TYPE_TRANSLATION- See Also:
-
TYPE_POPUP
public static final byte TYPE_POPUP- See Also:
-
TYPE_JUKEBOX_POPUP
public static final byte TYPE_JUKEBOX_POPUP- See Also:
-
TYPE_TIP
public static final byte TYPE_TIP- See Also:
-
TYPE_SYSTEM
public static final byte TYPE_SYSTEM- See Also:
-
TYPE_WHISPER
public static final byte TYPE_WHISPER- See Also:
-
TYPE_ANNOUNCEMENT
public static final byte TYPE_ANNOUNCEMENT- See Also:
-
TYPE_OBJECT
- See Also:
-
TYPE_OBJECT_WHISPER
- See Also:
-
type
public byte type -
source
-
message
-
parameters
-
isLocalized
public boolean isLocalized -
xboxUserId
-
platformChatId
-
-
Constructor Details
-
TextPacket
public TextPacket()
-
-
Method Details
-
pid
public byte pid()- Specified by:
pid
in classDataPacket
-
decode
public void decode()- Specified by:
decode
in classDataPacket
-
encode
public void encode()- Specified by:
encode
in classDataPacket
-
toString
-