Package cn.nukkit.network.protocol
Class SetTitlePacket
java.lang.Object
cn.nukkit.utils.BinaryStream
cn.nukkit.network.protocol.DataPacket
cn.nukkit.network.protocol.SetTitlePacket
- All Implemented Interfaces:
Cloneable
- Author:
- Tee7even
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionint
int
static final byte
int
int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
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
Modifier and TypeMethodDescriptionvoid
decode()
void
encode()
int
int
int
getText()
getXuid()
byte
pid()
void
setFadeInTime
(int fadeInTime) void
setFadeOutTime
(int fadeOutTime) void
setPlatformOnlineId
(String platformOnlineId) void
setStayTime
(int stayTime) void
void
void
toString()
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, 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_CLEAR
public static final int TYPE_CLEAR- See Also:
-
TYPE_RESET
public static final int TYPE_RESET- See Also:
-
TYPE_TITLE
public static final int TYPE_TITLE- See Also:
-
TYPE_SUBTITLE
public static final int TYPE_SUBTITLE- See Also:
-
TYPE_ACTION_BAR
public static final int TYPE_ACTION_BAR- See Also:
-
TYPE_ANIMATION_TIMES
public static final int TYPE_ANIMATION_TIMES- See Also:
-
TYPE_TITLE_JSON
- See Also:
-
TYPE_SUBTITLE_JSON
- See Also:
-
TYPE_ACTIONBAR_JSON
- See Also:
-
type
public int type -
text
-
fadeInTime
public int fadeInTime -
stayTime
public int stayTime -
fadeOutTime
public int fadeOutTime -
xuid
-
platformOnlineId
-
-
Constructor Details
-
SetTitlePacket
public SetTitlePacket()
-
-
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
-
getTitleAction
-
setTitleAction
@PowerNukkitOnly @Since("1.5.2.0-PN") public void setTitleAction(@Nonnull SetTitlePacket.TitleAction type) -
getText
-
setText
-
getFadeInTime
-
setFadeInTime
-
getStayTime
-
setStayTime
-
getFadeOutTime
-
setFadeOutTime
-
getXuid
-
setXuid
-
getPlatformOnlineId
-
setPlatformOnlineId
-
toString
-