From f1b3ae120b3605688b210442b64fb3d3fdf8cf8f Mon Sep 17 00:00:00 2001 From: s809 <11816467-s809@users.noreply.gitlab.com> Date: Mon, 24 Jul 2023 19:16:05 +0500 Subject: [PATCH] something --- .../common/wrappers/misc/ServerPlayerWrapper.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/common/src/main/java/com/seibel/distanthorizons/common/wrappers/misc/ServerPlayerWrapper.java b/common/src/main/java/com/seibel/distanthorizons/common/wrappers/misc/ServerPlayerWrapper.java index 395aaacdd..2f44584f8 100644 --- a/common/src/main/java/com/seibel/distanthorizons/common/wrappers/misc/ServerPlayerWrapper.java +++ b/common/src/main/java/com/seibel/distanthorizons/common/wrappers/misc/ServerPlayerWrapper.java @@ -4,6 +4,7 @@ import com.google.common.collect.MapMaker; import com.seibel.distanthorizons.common.wrappers.world.ServerLevelWrapper; import com.seibel.distanthorizons.core.wrapperInterfaces.misc.IServerPlayerWrapper; import com.seibel.distanthorizons.core.wrapperInterfaces.world.IServerLevelWrapper; +import com.seibel.distanthorizons.coreapi.util.math.Vec3d; import net.minecraft.server.level.ServerPlayer; import java.util.UUID; @@ -36,6 +37,11 @@ public class ServerPlayerWrapper implements IServerPlayerWrapper { return ServerLevelWrapper.getWrapper(this.serverPlayer.serverLevel()); #endif } + + public Vec3d getPosition() { + var position = serverPlayer.position(); + return new Vec3d(position.x, position.y, position.z); + } public Object getWrappedMcObject() { return serverPlayer;