2021-03-23 11:51:40 +01:00
|
|
|
/*
|
|
|
|
* This file is part of ViaVersion - https://github.com/ViaVersion/ViaVersion
|
2023-01-12 12:45:53 +01:00
|
|
|
* Copyright (C) 2016-2023 ViaVersion and contributors
|
2021-03-23 11:51:40 +01:00
|
|
|
*
|
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
* of this software and associated documentation files (the "Software"), to deal
|
|
|
|
* in the Software without restriction, including without limitation the rights
|
|
|
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
* copies of the Software, and to permit persons to whom the Software is
|
|
|
|
* furnished to do so, subject to the following conditions:
|
|
|
|
*
|
|
|
|
* The above copyright notice and this permission notice shall be included in all
|
|
|
|
* copies or substantial portions of the Software.
|
|
|
|
*
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
|
* SOFTWARE.
|
|
|
|
*/
|
2021-04-26 20:52:34 +02:00
|
|
|
package com.viaversion.viaversion.api.minecraft;
|
2016-09-25 16:40:30 +02:00
|
|
|
|
|
|
|
public class Vector {
|
|
|
|
private int blockX;
|
|
|
|
private int blockY;
|
|
|
|
private int blockZ;
|
2020-02-09 13:06:23 +01:00
|
|
|
|
|
|
|
public Vector(int blockX, int blockY, int blockZ) {
|
|
|
|
this.blockX = blockX;
|
|
|
|
this.blockY = blockY;
|
|
|
|
this.blockZ = blockZ;
|
|
|
|
}
|
|
|
|
|
2021-08-28 22:15:28 +02:00
|
|
|
public int blockX() {
|
2020-02-09 13:06:23 +01:00
|
|
|
return blockX;
|
|
|
|
}
|
|
|
|
|
2021-08-28 22:15:28 +02:00
|
|
|
public int blockY() {
|
|
|
|
return blockY;
|
2020-02-09 13:06:23 +01:00
|
|
|
}
|
|
|
|
|
2021-08-28 22:15:28 +02:00
|
|
|
public int blockZ() {
|
|
|
|
return blockZ;
|
2020-02-09 13:06:23 +01:00
|
|
|
}
|
|
|
|
|
2021-08-28 22:15:28 +02:00
|
|
|
@Deprecated/*(forRemoval=true)*/
|
|
|
|
public int getBlockX() {
|
|
|
|
return blockX;
|
2020-02-09 13:06:23 +01:00
|
|
|
}
|
|
|
|
|
2021-08-28 22:15:28 +02:00
|
|
|
@Deprecated/*(forRemoval=true)*/
|
|
|
|
public int getBlockY() {
|
|
|
|
return blockY;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Deprecated/*(forRemoval=true)*/
|
2020-02-09 13:06:23 +01:00
|
|
|
public int getBlockZ() {
|
|
|
|
return blockZ;
|
|
|
|
}
|
|
|
|
|
2021-08-28 22:15:28 +02:00
|
|
|
@Deprecated/*(forRemoval=true)*/
|
|
|
|
public void setBlockX(int blockX) {
|
|
|
|
this.blockX = blockX;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Deprecated/*(forRemoval=true)*/
|
|
|
|
public void setBlockY(int blockY) {
|
|
|
|
this.blockY = blockY;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Deprecated/*(forRemoval=true)*/
|
2020-02-09 13:06:23 +01:00
|
|
|
public void setBlockZ(int blockZ) {
|
|
|
|
this.blockZ = blockZ;
|
|
|
|
}
|
2016-09-25 16:40:30 +02:00
|
|
|
}
|