]> git.basschouten.com Git - openhab-addons.git/blob
ebeadc0e650e8786a44619327ca0171ab43bc540
[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;
14
15 /**
16  * Object representing Minecraft server.
17  *
18  * @author Mattias Markehed - Initial contribution
19  */
20 public class ServerData {
21
22     private int maxPlayers;
23     private int players;
24
25     /**
26      * Get max number of players.
27      *
28      * @return max number of players.
29      */
30     public int getMaxPlayers() {
31         return maxPlayers;
32     }
33
34     /**
35      * Get the number of players.
36      *
37      * @return number of players.
38      */
39     public int getPlayers() {
40         return players;
41     }
42 }