Package cn.lanink.gamecore.utils.packet
Class NPCDialoguePacket
java.lang.Object
cn.nukkit.utils.BinaryStream
cn.nukkit.network.protocol.DataPacket
cn.lanink.gamecore.utils.packet.NPCDialoguePacket
- All Implemented Interfaces:
Cloneable
public class NPCDialoguePacket
extends cn.nukkit.network.protocol.DataPacket
- Since:
- 2021-07-06
- Author:
- joserobjr
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate static final NPCDialoguePacket.NPCDialogAction[]private Stringstatic final byteprivate Stringprivate longprivate StringFields inherited from class cn.nukkit.network.protocol.DataPacket
isEncoded, protocol, reliabilityFields inherited from class cn.nukkit.utils.BinaryStream
count, offset -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddecode()voidencode()longbytepid()voidvoidsetActionJson(String actionJson) voidsetDialogue(String dialogue) voidsetNpcName(String npcName) voidsetRuntimeEntityId(long runtimeEntityId) voidsetSceneName(String sceneName) Methods inherited from class cn.nukkit.network.protocol.DataPacket
clean, clone, compress, compress, getChannel, packetId, reset, setChannel, tryEncodeMethods inherited from class cn.nukkit.utils.BinaryStream
feof, get, get, getArray, getArray, getArray, getAttributeList, getBlockFace, getBlockVector3, getBoolean, getBuffer, getBufferUnsafe, getByte, getByteArray, getCount, getEntityLink, getEntityRuntimeId, getEntityUniqueId, getFloat, getFloat, getImage, getInt, getLFloat, getLFloat, getLInt, getLLong, getLong, getLShort, getLTriad, getOffset, getOptional, getRecipeIngredient, getRotationByte, getShort, getSignedBlockPosition, getSingedByte, getSkin, getSkin, getSlot, getSlot, getString, getTag, getTriad, getUnsignedVarInt, getUnsignedVarLong, getUUID, getVarInt, getVarLong, getVector2f, getVector3f, put, putArray, putArray, putArray, putAttributeList, putBlockFace, putBlockVector3, putBlockVector3, putBoolean, putByte, putByteArray, putEntityLink, putEntityRuntimeId, putEntityUniqueId, putFloat, putGameRules, putGameRules, putGameRulesMap, putImage, putInt, putLFloat, putLInt, putLLong, putLong, putLShort, putLTriad, putOptional, putOptional, putOptionalNull, putOptionalNull, putRecipeIngredient, putRecipeIngredient, putRotationByte, putShort, putSignedBlockPosition, putSkin, putSkin, putSlot, putSlot, putSlot, putString, putTriad, putUnsignedVarInt, putUnsignedVarLong, putUUID, putVarInt, putVarLong, putVector2f, putVector2f, putVector3f, putVector3f, reuse, setBuffer, setBuffer, setCount, setOffset, skip
-
Field Details
-
NETWORK_ID
public static final byte NETWORK_ID- See Also:
-
ACTIONS
-
runtimeEntityId
private long runtimeEntityId -
action
-
dialogue
-
sceneName
-
npcName
-
actionJson
-
-
Constructor Details
-
NPCDialoguePacket
public NPCDialoguePacket()
-
-
Method Details
-
pid
public byte pid()- Specified by:
pidin classcn.nukkit.network.protocol.DataPacket
-
decode
public void decode()- Specified by:
decodein classcn.nukkit.network.protocol.DataPacket
-
encode
public void encode()- Specified by:
encodein classcn.nukkit.network.protocol.DataPacket
-
getRuntimeEntityId
public long getRuntimeEntityId() -
setRuntimeEntityId
public void setRuntimeEntityId(long runtimeEntityId) -
getAction
-
setAction
-
getDialogue
-
setDialogue
-
getSceneName
-
setSceneName
-
getNpcName
-
setNpcName
-
getActionJson
-
setActionJson
-