Files
minecraft-pe-0.6.1/src/client/renderer/entity/ItemRenderer.h
Shredder 055f00be49 A bit big of a commit but
Added 3 Fog Choices (Pocket) (Java) (Unknown that was unused)

Restored Java Beta Sky Color code that was unused that depends on biome temperature (choosable using Java fog)

Tile Shadows and Entity Shadows that appear beneath them have been restored and fixed from the unused code, toggleable by turning fancy graphics on or off

Entities will now render flames on themselves when on fire, including the player

Added option to use Java Style Item Count text and position in tweaks

- fileshredder
2026-04-06 01:52:27 +05:00

39 lines
1.4 KiB
C++
Executable File

#ifndef NET_MINECRAFT_CLIENT_RENDERER_ENTITY__ItemRenderer_H__
#define NET_MINECRAFT_CLIENT_RENDERER_ENTITY__ItemRenderer_H__
//package net.minecraft.client.renderer.entity;
#include "EntityRenderer.h"
#include "../../../util/Random.h"
class Font;
class Entity;
class ItemInstance;
class Textures;
class Tesselator;
class TileRenderer;
class ItemRenderer: public EntityRenderer
{
public:
ItemRenderer();
void render(Entity* itemEntity_, float x, float y, float z, float rot, float a);
static void renderGuiItem(Font* font, Textures* textures, const ItemInstance* item, float x, float y, bool fancy);
static void renderGuiItem(Font* font, Textures* textures, const ItemInstance* item, float x, float y, float w, float h, bool fancy);
static void renderGuiItemCorrect(Font* font, Textures* textures, const ItemInstance* item, int x, int y);
static void renderGuiItemDecorations(Font* font, Textures* textures, ItemInstance* item, int x, int y);
static void renderGuiItemDecorations(const ItemInstance* item, float x, float y);
static void blit(float x, float y, float sx, float sy, float w, float h);
static int getAtlasPos(const ItemInstance* item);
static void teardown_static();
private:
static void fillRect(Tesselator& t, float x, float y, float w, float h, int c);
static TileRenderer* tileRenderer;
Random random;
};
#endif /*NET_MINECRAFT_CLIENT_RENDERER_ENTITY__ItemRenderer_H__*/