4jcraft/targets/minecraft/world/phys/HitResult.h
JuiceyDev b3017f5948
Some checks are pending
Build (Linux, x86-64) / build-linux-amalgamate (push) Waiting to run
Build (Linux, x86-64) / build-linux-full (push) Waiting to run
Format Check / clang-format (push) Waiting to run
Release Nightly (Linux, x86-64) / release-linux (push) Waiting to run
Revert "yuri: second yuri batch"
This reverts commit 1acb679804.
2026-04-07 13:06:37 +02:00

24 lines
412 B
C++

#pragma once
#include <memory>
#include "Vec3.h"
#include "minecraft/world/phys/Vec3.h"
class Entity;
class HitResult {
public:
enum Type { TILE, ENTITY };
Type type;
int x, y, z, f;
Vec3 pos;
std::shared_ptr<Entity> entity;
HitResult(int x, int y, int z, int f, const Vec3& pos);
HitResult(std::shared_ptr<Entity> entity);
double distanceTo(std::shared_ptr<Entity> e);
};