mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-11-23 20:25:51 +01:00
Elytra
mfeat: added early access elytra in creative for bug testing/accuracy comparison TODO: replace temporary atlas, Properly implement 3d skulls
This commit is contained in:
1 parent
7db8860ea4
commit
4b6e9f8eb2
31 files changed
+889
-97
No files matched your search
@@ -11,6 +11,8 @@
|
||||
#include "MultiPlayerLocalPlayer.h"
|
||||
#include "Minimap.h"
|
||||
#include "MultiPlayerLevel.h"
|
||||
#include "SkullTileRenderer.h"
|
||||
#include "../Minecraft.World/Facing.h"
|
||||
#include "../Minecraft.World/net.minecraft.world.item.h"
|
||||
#include "../Minecraft.World/net.minecraft.world.level.tile.h"
|
||||
#include "../Minecraft.World/net.minecraft.world.entity.h"
|
||||
@@ -237,6 +239,17 @@ void ItemInHandRenderer::renderItem(shared_ptr<LivingEntity> mob, shared_ptr<Ite
|
||||
}
|
||||
|
||||
glPushMatrix();
|
||||
|
||||
/*if (item->id == Item::skull_Id && SkullTileRenderer::instance != nullptr)
|
||||
{
|
||||
wstring extra = L"";
|
||||
if (item->hasTag() && item->getTag()->contains(L"SkullOwner"))
|
||||
extra = item->getTag()->getString(L"SkullOwner");
|
||||
SkullTileRenderer::instance->renderSkull(-0.5f, 0.0f, -0.5f, Facing::UP, 0.0f, item->getAuxValue(), extra);
|
||||
glPopMatrix();
|
||||
return;
|
||||
}*/
|
||||
|
||||
Tile *tile = Tile::tiles[item->id];
|
||||
if (item->getIconType() == Icon::TYPE_TERRAIN && tile != nullptr && TileRenderer::canRender(tile->getRenderShape()))
|
||||
{
|
||||
@@ -680,6 +693,16 @@ void ItemInHandRenderer::render(float a)
|
||||
|
||||
renderItem(player, item, 1, false);
|
||||
}
|
||||
//else if (item->id == Item::skull_Id && SkullTileRenderer::instance != nullptr)
|
||||
//{
|
||||
// wstring extra = L"";
|
||||
// if (item->hasTag() && item->getTag()->contains(L"SkullOwner"))
|
||||
// extra = item->getTag()->getString(L"SkullOwner");
|
||||
// glEnable(GL_RESCALE_NORMAL);
|
||||
// glScalef(2.0f, 2.0f, 2.0f);
|
||||
// SkullTileRenderer::instance->renderSkull(-0.5f, 0.0f, -0.5f, Facing::UP, 0.0f, item->getAuxValue(), extra);
|
||||
// glDisable(GL_RESCALE_NORMAL);
|
||||
//}
|
||||
else
|
||||
{
|
||||
renderItem(player, item, 0, false);
|
||||
|
||||
Reference in new issue
Block a user