Interface CrossfireUpdateItemListener
- All Superinterfaces:
EventListener
Interface for listeners interested in item related commands.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddItemReceived(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.voiddelinvReceived(int tag) A "delinv" command has been received.voiddelitemReceived(int @NotNull [] tags) A "delitem" command has been received.voidplayerReceived(int tag, int weight, int faceNum, @NotNull String name) A "player" command has been received.voidupditemReceived(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 locationtag- the item tagflags- the item's flagsweight- the item's weightfaceNum- the item's face IDname- the item's singular namenamePl- the item's plural nameanim- the item's animation IDanimSpeed- the item's animation speednrof- the number of itemstype- the item's type
-
playerReceived
A "player" command has been received.- Parameters:
tag- the player's taqweight- the player's weightfaceNum- the player's face IDname- 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 valuestag- the item's tagvalLocation- the item's locationvalFlags- the item's flagsvalWeight- the item's weightvalFaceNum- the item's face IDvalName- the item's singular namevalNamePl- the item's plural namevalAnim- the item's animation IDvalAnimSpeed- the item's animation speedvalNrof- the number of items
-