]> git.basschouten.com Git - openhab-addons.git/blob
ccd0d7ef862ac88eb80594131e7818d645d80cf8
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
7  * This program and the accompanying materials are made available under the
8  * terms of the Eclipse Public License 2.0 which is available at
9  * http://www.eclipse.org/legal/epl-2.0
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.minecraft.internal.message.data.commands;
14
15 /**
16  * Object representing Minecraft server.
17  *
18  * @author Mattias Markehed - Initial contribution
19  */
20 public class PlayerCommandData {
21
22     public static final String COMMAND_PLAYER_HEALTH = "PLAYER_HEALTH";
23     public static final String COMMAND_PLAYER_LEVEL = "PLAYER_LEVEL";
24     public static final String COMMAND_PLAYER_WALK_SPEED = "PLAYER_WALK_SPEED";
25     public static final String COMMAND_PLAYER_GAME_MODE = "PLAYER_GAME_MODE";
26     public static final String COMMAND_PLAYER_LOCATION = "PLAYER_LOCATION";
27
28     private String type;
29     private String playerName;
30     private String value;
31
32     public PlayerCommandData() {
33     }
34
35     public PlayerCommandData(String type, String playerName, String value) {
36         this.type = type;
37         this.playerName = playerName;
38         this.value = value;
39     }
40
41     /**
42      * Get the type of command.
43      *
44      * @return the type of command.
45      */
46     public String getType() {
47         return type;
48     }
49
50     /**
51      * The name of the player that the command targets.
52      *
53      * @return name of player
54      */
55     public String getPlayerName() {
56         return playerName;
57     }
58
59     /**
60      * The command value sent.
61      *
62      * @return command value.
63      */
64     public String getValue() {
65         return value;
66     }
67 }