Interface CrossfireUpdateItemListener

All Superinterfaces:
EventListener

public interface CrossfireUpdateItemListener extends EventListener
Interface for listeners interested in item related commands.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addItemReceived(int location, int tag, int flags, int weight, int faceNum, @NotNull String name, @NotNull String namePl, int anim, int animSpeed, int nrof, int type)
    An "additem" has been received.
    void
    delinvReceived(int tag)
    A "delinv" command has been received.
    void
    delitemReceived(int @NotNull [] tags)
    A "delitem" command has been received.
    void
    playerReceived(int tag, int weight, int faceNum, @NotNull String name)
    A "player" command has been received.
    void
    upditemReceived(int flags, int tag, int valLocation, int valFlags, int valWeight, int valFaceNum, @NotNull String valName, @NotNull String valNamePl, int valAnim, int valAnimSpeed, int valNrof)
    An "upditem" command has been received.
  • Method Details

    • delinvReceived

      void delinvReceived(int tag)
      A "delinv" command has been received.
      Parameters:
      tag - the item tag
    • delitemReceived

      void delitemReceived(int @NotNull [] tags)
      A "delitem" command has been received.
      Parameters:
      tags - the item tags
    • addItemReceived

      void addItemReceived(int location, int tag, int flags, int weight, int faceNum, @NotNull @NotNull String name, @NotNull @NotNull String namePl, int anim, int animSpeed, int nrof, int type)
      An "additem" has been received.
      Parameters:
      location - the item's location
      tag - the item tag
      flags - the item's flags
      weight - the item's weight
      faceNum - the item's face ID
      name - the item's singular name
      namePl - the item's plural name
      anim - the item's animation ID
      animSpeed - the item's animation speed
      nrof - the number of items
      type - the item's type
    • playerReceived

      void playerReceived(int tag, int weight, int faceNum, @NotNull @NotNull String name)
      A "player" command has been received.
      Parameters:
      tag - the player's taq
      weight - the player's weight
      faceNum - the player's face ID
      name - the player's name
    • upditemReceived

      void upditemReceived(int flags, int tag, int valLocation, int valFlags, int valWeight, int valFaceNum, @NotNull @NotNull String valName, @NotNull @NotNull String valNamePl, int valAnim, int valAnimSpeed, int valNrof)
      An "upditem" command has been received.
      Parameters:
      flags - the changed values
      tag - the item's tag
      valLocation - the item's location
      valFlags - the item's flags
      valWeight - the item's weight
      valFaceNum - the item's face ID
      valName - the item's singular name
      valNamePl - the item's plural name
      valAnim - the item's animation ID
      valAnimSpeed - the item's animation speed
      valNrof - the number of items