forked from Kolyah35/minecraft-pe-0.6.1
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
39 lines
1.4 KiB
C++
Executable File
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__*/
|