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
    Modifier and Type
    Class
    Description
    static enum 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
    private String
     
    private static final NPCDialoguePacket.NPCDialogAction[]
     
    private String
     
    static final byte
     
    private String
     
    private long
     
    private String
     

    Fields inherited from class cn.nukkit.network.protocol.DataPacket

    isEncoded, protocol, reliability

    Fields inherited from class cn.nukkit.utils.BinaryStream

    count, offset
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
     
     
     
     
     
    long
     
     
    byte
    pid()
     
    void
     
    void
    setActionJson(String actionJson)
     
    void
    setDialogue(String dialogue)
     
    void
    setNpcName(String npcName)
     
    void
    setRuntimeEntityId(long runtimeEntityId)
     
    void
    setSceneName(String sceneName)
     

    Methods inherited from class cn.nukkit.network.protocol.DataPacket

    clean, clone, compress, compress, getChannel, packetId, reset, setChannel, tryEncode

    Methods 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

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • NPCDialoguePacket

      public NPCDialoguePacket()
  • Method Details

    • pid

      public byte pid()
      Specified by:
      pid in class cn.nukkit.network.protocol.DataPacket
    • decode

      public void decode()
      Specified by:
      decode in class cn.nukkit.network.protocol.DataPacket
    • encode

      public void encode()
      Specified by:
      encode in class cn.nukkit.network.protocol.DataPacket
    • getRuntimeEntityId

      public long getRuntimeEntityId()
    • setRuntimeEntityId

      public void setRuntimeEntityId(long runtimeEntityId)
    • getAction

    • setAction

      public void setAction(NPCDialoguePacket.NPCDialogAction action)
    • getDialogue

      public String getDialogue()
    • setDialogue

      public void setDialogue(String dialogue)
    • getSceneName

      public String getSceneName()
    • setSceneName

      public void setSceneName(String sceneName)
    • getNpcName

      public String getNpcName()
    • setNpcName

      public void setNpcName(String npcName)
    • getActionJson

      public String getActionJson()
    • setActionJson

      public void setActionJson(String actionJson)