]> git.basschouten.com Git - openhab-addons.git/blob
0e456cdbf414fe3db22b605b83681a61947ce199
[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;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingTypeUID;
17
18 /**
19  * The {@link MinecraftBinding} class defines common constants, which are
20  * used across the whole binding.
21  *
22  * @author Mattias Markehed - Initial contribution
23  */
24 @NonNullByDefault
25 public class MinecraftBindingConstants {
26
27     public static final String BINDING_ID = "minecraft";
28
29     public static final int SERVER_RECONNECT = 30; // Seconds to wait before reconnect
30
31     public static final String PARAMETER_HOSTNAME = "hostname";
32     public static final String PARAMETER_PORT = "port";
33
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";
37
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";
41
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";
50
51     public static final String CHANNEL_SIGN_ACTIVE = "signActive";
52
53     public static final String PARAMETER_PLAYER_NAME = "playerName";
54
55     public static final String PARAMETER_SIGN_NAME = "signName";
56
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);
60 }