]> git.basschouten.com Git - openhab-addons.git/blob
159a3221655a4d9193c95f45ac4a539cb3276ffd
[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  * Holds location data for Minecraft objects.
17  *
18  * @author Mattias Markehed - Initial contribution
19  */
20 public class LocationData {
21     private double x;
22     private double y;
23     private double z;
24     private float pitch;
25     private float yaw;
26
27     /**
28      * Get x position.
29      *
30      * @return x position
31      */
32     public double getX() {
33         return x;
34     }
35
36     /**
37      * Get y position.
38      *
39      * @return y position
40      */
41     public double getY() {
42         return y;
43     }
44
45     /**
46      * Get z position.
47      *
48      * @return z position
49      */
50     public double getZ() {
51         return z;
52     }
53
54     /**
55      * Get pitch of object
56      *
57      * @return pitch of object.
58      */
59     public float getPitch() {
60         return pitch;
61     }
62
63     /**
64      * Get yaw of object
65      *
66      * @return yaw of object
67      */
68     public float getYaw() {
69         return yaw;
70     }
71 }