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.config;
16 * Configuration settings for a {@link org.openhab.binding.minecraft.internal.handler.MinecraftServerHandler}.
18 * @author Mattias Markehed - Initial contribution
20 public class ServerConfig {
21 private int port = 10692;
22 private String hostname = "127.0.0.1";
25 * Get port used to connect to server.
29 public int getPort() {
34 * Set the port used to connect to server.
36 * @param port server port
38 public void setPort(int port) {
43 * Get host used to connect to server.
47 public String getHostname() {
52 * Set the host used to connect to server.
54 * @param port host port
56 public void setHostname(String hostname) {
57 this.hostname = hostname;