mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-18 02:44:23 +01:00
33 lines
573 B
Java
33 lines
573 B
Java
package com.minelittlepony.unicopia.ability;
|
|
|
|
import com.google.gson.annotations.Expose;
|
|
|
|
import net.minecraft.util.math.BlockPos;
|
|
|
|
public class Location implements IPower.IData {
|
|
|
|
@Expose
|
|
public int x;
|
|
|
|
@Expose
|
|
public int y;
|
|
|
|
@Expose
|
|
public int z;
|
|
|
|
public Location(int x, int y, int z) {
|
|
this.x = x;
|
|
this.y = y;
|
|
this.z = z;
|
|
}
|
|
|
|
public Location(BlockPos pos) {
|
|
x = pos.getX();
|
|
y = pos.getY();
|
|
z = pos.getZ();
|
|
}
|
|
|
|
public BlockPos pos() {
|
|
return new BlockPos(x, y, z);
|
|
}
|
|
}
|