mirror of
https://github.com/celisej567/mcpe.git
synced 2026-01-04 14:09:47 +03:00
39 lines
894 B
C++
39 lines
894 B
C++
/********************************************************************
|
|
Minecraft: Pocket Edition - Decompilation Project
|
|
Copyright (C) 2023 iProgramInCpp
|
|
|
|
The following code is licensed under the BSD 1 clause license.
|
|
SPDX-License-Identifier: BSD-1-Clause
|
|
********************************************************************/
|
|
|
|
#pragma once
|
|
|
|
#include "world/item/ItemInstance.hpp"
|
|
#include "TileRenderer.hpp"
|
|
|
|
class Minecraft;
|
|
|
|
class ItemInHandRenderer
|
|
{
|
|
public:
|
|
ItemInHandRenderer(Minecraft* pMC);
|
|
void itemPlaced();
|
|
void itemUsed();
|
|
void render(float f);
|
|
void renderItem(ItemInstance*);
|
|
void renderScreenEffect(float f);
|
|
void renderFire(float f);
|
|
void renderTex(float f, int tex);
|
|
void tick();
|
|
|
|
public:
|
|
int field_0 = -1;
|
|
ItemInstance m_ItemInstance;
|
|
Minecraft* m_pMinecraft;
|
|
int field_18 = 0;
|
|
float field_1C = 0.0f;
|
|
float field_20 = 0.0f;
|
|
TileRenderer m_tileRenderer;
|
|
};
|
|
|