public class SteamTrading extends ClientMsgHandler
client| Constructor and Description |
|---|
SteamTrading() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelTrade(SteamID user)
Cancels an already sent trade proposal.
|
void |
handleMsg(IPacketMsg packetMsg)
Handles a client message.
|
void |
respondToTrade(int tradeId,
boolean acceptTrade)
Responds to a trade proposal.
|
void |
trade(SteamID user)
Proposes a trade to another client.
|
getClient, isExpectDisconnection, setExpectDisconnection, setuppublic void trade(SteamID user)
user - The client to trade.public void respondToTrade(int tradeId,
boolean acceptTrade)
tradeId - The trade id of the received proposal.acceptTrade - if set to true, the trade will be accepted.public void cancelTrade(SteamID user)
user - The user.public void handleMsg(IPacketMsg packetMsg)
ClientMsgHandlerhandleMsg in class ClientMsgHandlerpacketMsg - The packet message that contains the data.