aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/RemotePlayer.h
diff options
context:
space:
mode:
authordaoge_cmd <3523206925@qq.com>2026-03-01 12:16:08 +0800
committerdaoge_cmd <3523206925@qq.com>2026-03-01 12:16:08 +0800
commitb691c43c44ff180d10e7d4a9afc83b98551ff586 (patch)
tree3e9849222cbc6ba49f2f1fc6e5fe7179632c7390 /Minecraft.Client/RemotePlayer.h
parentdef8cb415354ac390b7e89052a50605285f1aca9 (diff)
Initial commit
Diffstat (limited to 'Minecraft.Client/RemotePlayer.h')
-rw-r--r--Minecraft.Client/RemotePlayer.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/Minecraft.Client/RemotePlayer.h b/Minecraft.Client/RemotePlayer.h
new file mode 100644
index 00000000..b55fab16
--- /dev/null
+++ b/Minecraft.Client/RemotePlayer.h
@@ -0,0 +1,33 @@
+#pragma once
+#include "..\Minecraft.World\SmoothFloat.h"
+#include "..\Minecraft.World\net.minecraft.world.entity.player.h"
+
+class Input;
+
+class RemotePlayer : public Player
+{
+private:
+ bool hasStartedUsingItem;
+public:
+ Input *input;
+ RemotePlayer(Level *level, const wstring& name);
+protected:
+ virtual void setDefaultHeadHeight();
+public:
+ virtual bool hurt(DamageSource *source, int dmg);
+private:
+ int lSteps;
+ double lx, ly, lz, lyr, lxr;
+
+public:
+ virtual void lerpTo(double x, double y, double z, float yRot, float xRot, int steps);
+ float fallTime;
+
+ virtual void tick();
+ virtual float getShadowHeightOffs();
+ virtual void aiStep();
+ virtual void setEquippedSlot(int slot, shared_ptr<ItemInstance> item);// 4J Stu - Brought forward change from 1.3 to fix #64688 - Customer Encountered: TU7: Content: Art: Aura of enchanted item is not displayed for other players in online game
+ virtual void animateRespawn();
+ virtual float getHeadHeight();
+ bool hasPermission(EGameCommand command) { return false; }
+}; \ No newline at end of file