public final class ItemStackRequest
extends java.lang.Object
ItemStackRequestPacket or
PlayerAuthInputPacket sent by the client to
change an item in an inventory.
Item stack requests are either approved or rejected by the server using the ItemStackResponse packet.| Constructor and Description |
|---|
ItemStackRequest(int requestId,
ItemStackRequestAction[] actions,
java.lang.String[] filterStrings) |
ItemStackRequest(int requestId,
ItemStackRequestAction[] actions,
java.lang.String[] filterStrings,
TextProcessingEventOrigin textProcessingEventOrigin) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
ItemStackRequestAction[] |
getActions()
actions is a list of actions performed by the client.
|
java.lang.String[] |
getFilterStrings()
Used for the server to determine which strings should be filtered.
|
int |
getRequestId()
requestId is a unique ID for the request.
|
TextProcessingEventOrigin |
getTextProcessingEventOrigin() |
int |
hashCode() |
java.lang.String |
toString() |
public ItemStackRequest(int requestId,
ItemStackRequestAction[] actions,
java.lang.String[] filterStrings)
public ItemStackRequest(int requestId,
ItemStackRequestAction[] actions,
java.lang.String[] filterStrings,
TextProcessingEventOrigin textProcessingEventOrigin)
public int getRequestId()
public ItemStackRequestAction[] getActions()
public java.lang.String[] getFilterStrings()
public TextProcessingEventOrigin getTextProcessingEventOrigin()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object