mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-06-17 22:31:52 +00:00
fix EntityMixin
This commit is contained in:
+6
-4
@@ -1,9 +1,11 @@
|
|||||||
package com.dfsek.terra.fabric.mixin.implementations.entity;
|
package com.dfsek.terra.fabric.mixin.implementations.entity;
|
||||||
|
|
||||||
import com.dfsek.terra.api.vector.Location;
|
import com.dfsek.terra.api.vector.Location;
|
||||||
|
import com.dfsek.terra.api.vector.Vector3;
|
||||||
import com.dfsek.terra.vector.LocationImpl;
|
import com.dfsek.terra.vector.LocationImpl;
|
||||||
import com.dfsek.terra.api.world.World;
|
import com.dfsek.terra.api.world.World;
|
||||||
import com.dfsek.terra.fabric.util.FabricAdapter;
|
import com.dfsek.terra.fabric.util.FabricAdapter;
|
||||||
|
import com.dfsek.terra.vector.Vector3Impl;
|
||||||
import net.minecraft.entity.Entity;
|
import net.minecraft.entity.Entity;
|
||||||
import net.minecraft.text.LiteralText;
|
import net.minecraft.text.LiteralText;
|
||||||
import net.minecraft.text.Text;
|
import net.minecraft.text.Text;
|
||||||
@@ -36,15 +38,15 @@ public abstract class EntityMixin {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Location terra$getLocation() {
|
public Vector3 terra$position() {
|
||||||
return new LocationImpl((World) world, FabricAdapter.adapt(blockPos));
|
return FabricAdapter.adapt(blockPos);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void terra$setLocation(Location location) {
|
public void terra$position(Vector3 location) {
|
||||||
teleport(location.getX(), location.getY(), location.getZ());
|
teleport(location.getX(), location.getY(), location.getZ());
|
||||||
}
|
}
|
||||||
|
|
||||||
public World terra$getWorld() {
|
public World terra$world() {
|
||||||
return (World) world;
|
return (World) world;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user