Location is gone.

This commit is contained in:
dfsek
2021-06-25 13:47:56 -07:00
parent 966e1eb2a6
commit d880d95637
13 changed files with 31 additions and 386 deletions

View File

@@ -1,53 +0,0 @@
package com.dfsek.terra.api.vector;
import com.dfsek.terra.api.world.World;
public interface Location extends Cloneable {
void setWorld(World world);
Vector3 getVector();
void setVector(Vector3 vector);
Location clone();
int getBlockX();
int getBlockY();
int getBlockZ();
double getY();
Location setY(double y);
double getX();
Location setX(double x);
double getZ();
Location setZ(double z);
World getWorld();
Location add(double x, double y, double z);
Location subtract(int x, int y, int z);
Location add(Vector3 add);
Location add(Location add);
double getPitch();
void setPitch(double pitch);
double getYaw();
void setYaw(double yaw);
Vector3 toVector();
Location multiply(double v);
}

View File

@@ -155,8 +155,6 @@ public interface Vector3 extends Cloneable {
*/
double dot(@NotNull Vector3 other);
Location toLocation(World world);
Vector3 normalize();
Vector3 subtract(int x, int y, int z);

View File

@@ -2,7 +2,6 @@ package com.dfsek.terra.api.world;
import com.dfsek.terra.api.block.BlockData;
import com.dfsek.terra.api.config.WorldConfig;
import com.dfsek.terra.api.vector.Location;
import com.dfsek.terra.api.vector.Vector3;
import com.dfsek.terra.api.world.biome.generation.BiomeProvider;
@@ -25,7 +24,5 @@ public interface TerraWorld {
*/
BlockData getUngeneratedBlock(int x, int y, int z);
BlockData getUngeneratedBlock(Location l);
BlockData getUngeneratedBlock(Vector3 v);
}