Class NPCRequestPacket

java.lang.Object
cn.nukkit.utils.BinaryStream
cn.nukkit.network.protocol.DataPacket
cn.nukkit.network.protocol.NPCRequestPacket
cn.lanink.gamecore.utils.packet.NPCRequestPacket
All Implemented Interfaces:
Cloneable

public class NPCRequestPacket extends cn.nukkit.network.protocol.NPCRequestPacket
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     
  • Field Summary

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

    actionType, commandString, entityRuntimeId, NETWORK_ID, requestType, sceneName

    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
    int
     
     
    long
     
     
     
    void
    setActionType(int actionType)
     
    void
     
    void
    setRequestedEntityRuntimeId(long entityRuntimeId)
     
    void
     
    void
    setSceneName(String sceneName)
     

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

    decode, encode, pid, toString

    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, wait, wait, wait
  • Constructor Details

    • NPCRequestPacket

      public NPCRequestPacket()
  • Method Details

    • getRequestedEntityRuntimeId

      public long getRequestedEntityRuntimeId()
    • setRequestedEntityRuntimeId

      public void setRequestedEntityRuntimeId(long entityRuntimeId)
    • getRequestType

      public NPCRequestPacket.RequestType getRequestType()
    • setRequestType

      public void setRequestType(NPCRequestPacket.RequestType requestType)
    • getData

      public String getData()
    • setData

      public void setData(String data)
    • getActionType

      public int getActionType()
    • setActionType

      public void setActionType(int actionType)
    • getSceneName

      public String getSceneName()
    • setSceneName

      public void setSceneName(String sceneName)