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;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingTypeUID;
19 * The {@link MinecraftBindingConstants} class defines common constants, which are
20 * used across the whole binding.
22 * @author Mattias Markehed - Initial contribution
25 public class MinecraftBindingConstants {
27 public static final String BINDING_ID = "minecraft";
29 public static final int SERVER_RECONNECT = 30; // Seconds to wait before reconnect
31 public static final String PARAMETER_HOSTNAME = "hostname";
32 public static final String PARAMETER_PORT = "port";
34 public static final String TYPE_ID_SERVER = "server";
35 public static final String TYPE_ID_PLAYER = "player";
36 public static final String TYPE_ID_SIGN = "redstoneSign";
38 public static final String CHANNEL_PLAYERS = "players";
39 public static final String CHANNEL_MAX_PLAYERS = "maxPlayers";
40 public static final String CHANNEL_ONLINE = "online";
42 public static final String CHANNEL_PLAYER_ONLINE = "playerOnline";
43 public static final String CHANNEL_PLAYER_LEVEL = "playerLevel";
44 public static final String CHANNEL_PLAYER_LEVEL_PERCENTAGE = "playerExperiencePercentage";
45 public static final String CHANNEL_PLAYER_TOTAL_EXPERIENCE = "playerTotalExperience";
46 public static final String CHANNEL_PLAYER_HEALTH = "playerHealth";
47 public static final String CHANNEL_PLAYER_WALK_SPEED = "playerWalkSpeed";
48 public static final String CHANNEL_PLAYER_LOCATION = "playerLocation";
49 public static final String CHANNEL_PLAYER_GAME_MODE = "playerGameMode";
51 public static final String CHANNEL_SIGN_ACTIVE = "signActive";
53 public static final String PARAMETER_PLAYER_NAME = "playerName";
55 public static final String PARAMETER_SIGN_NAME = "signName";
57 public static final ThingTypeUID THING_TYPE_SERVER = new ThingTypeUID(BINDING_ID, TYPE_ID_SERVER);
58 public static final ThingTypeUID THING_TYPE_PLAYER = new ThingTypeUID(BINDING_ID, TYPE_ID_PLAYER);
59 public static final ThingTypeUID THING_TYPE_SIGN = new ThingTypeUID(BINDING_ID, TYPE_ID_SIGN);