Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Server commands, see CommandType for a list of types
- * @author fragger
- */
- public class Command<T> implements Serializable {
- private CommandType type;
- private T[] data;
- public Command(CommandType type, T[] data) {
- this.type = type;
- this.data = data;
- }
- public Command(CommandType type) {
- this.type = type;
- }
- public void setData(T[] data) {
- this.data = data;
- }
- public T[] getData() {
- return data;
- }
- public CommandType getType() {
- return type;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement