mirror of
https://github.com/Minecraft-Community-Edition/client.git
synced 2026-05-23 09:34:42 +00:00
reimplement aether stuff from personal repo
This commit is contained in:
25
Minecraft.World/AetherMultiFaceTile.cpp
Normal file
25
Minecraft.World/AetherMultiFaceTile.cpp
Normal file
@@ -0,0 +1,25 @@
|
||||
#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);
|
||||
}
|
||||
Reference in New Issue
Block a user