2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
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
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.minecraft.internal.message.data.commands;
16 * Object representing Minecraft server.
18 * @author Mattias Markehed - Initial contribution
20 public class PlayerCommandData {
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";
29 private String playerName;
32 public PlayerCommandData() {
35 public PlayerCommandData(String type, String playerName, String value) {
37 this.playerName = playerName;
42 * Get the type of command.
44 * @return the type of command.
46 public String getType() {
51 * The name of the player that the command targets.
53 * @return name of player
55 public String getPlayerName() {
60 * The command value sent.
62 * @return command value.
64 public String getValue() {