Files
MinecraftConsoles/Minecraft.Client/RemotePlayer.h
void_17 7074f35e4b shared_ptr -> std::shared_ptr
This is one of the first commits in a plan to remove all `using namespace std;` lines in the entire codebase as it is considered anti-pattern today.
2026-03-02 15:58:20 +07:00

33 lines
1.0 KiB
C++

#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, std::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; }
};