mirror of
https://github.com/Minecraft-Community-Edition/client.git
synced 2026-05-23 17:44:34 +00:00
26 lines
655 B
C++
26 lines
655 B
C++
#include "stdafx.h"
|
|
#include "AetherMultiFaceTile.h"
|
|
#include "net.minecraft.world.level.h"
|
|
#include "Facing.h"
|
|
#include "IconRegister.h"
|
|
|
|
AetherMultiFaceTile::AetherMultiFaceTile(int id, const wstring &topTex, const wstring &sideTex) : Tile(id, Material::stone)
|
|
{
|
|
iconTop = NULL;
|
|
iconSide = NULL;
|
|
texTop = topTex;
|
|
texSide = sideTex;
|
|
}
|
|
|
|
Icon *AetherMultiFaceTile::getTexture(int face, int data)
|
|
{
|
|
if (face == Facing::UP || face == Facing::DOWN) return iconTop;
|
|
return iconSide;
|
|
}
|
|
|
|
void AetherMultiFaceTile::registerIcons(IconRegister *iconRegister)
|
|
{
|
|
iconTop = iconRegister->registerIcon(texTop);
|
|
iconSide = iconRegister->registerIcon(texSide);
|
|
}
|