4jcraft/targets/minecraft/client/player/RemotePlayer.h

53 lines
1.4 KiB
C++

#pragma once
#include <string>
#include "java/Class.h"
#include "minecraft/Pos.h"
#include "minecraft/commands/CommandsEnum.h"
#include "minecraft/util/SmoothFloat.h"
#include "minecraft/world/entity/player/Player.h"
class Input;
class Level;
class RemotePlayer : public Player {
public:
eINSTANCEOF GetType() { return eTYPE_REMOTEPLAYER; }
private:
bool hasStartedUsingItem;
public:
Input* input;
RemotePlayer(Level* level, const std::string& name);
protected:
virtual void setDefaultHeadHeight();
public:
virtual bool hurt(DamageSource* source, float 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; }
virtual Pos getCommandSenderWorldPosition();
};