mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-04 15:15:11 +00:00
TU19: merge Minecraft.World/Blocks
This commit is contained in:
14
Minecraft.World/Blocks/HayBlockTile.cpp
Normal file
14
Minecraft.World/Blocks/HayBlockTile.cpp
Normal file
@@ -0,0 +1,14 @@
|
||||
#include "../Platform/stdafx.h"
|
||||
#include "../Headers/net.minecraft.world.h"
|
||||
#include "HayBlockTile.h"
|
||||
|
||||
HayBlockTile::HayBlockTile(int id) : RotatedPillarTile(id, Material::grass) {}
|
||||
|
||||
int HayBlockTile::getRenderShape() { return SHAPE_TREE; }
|
||||
|
||||
Icon* HayBlockTile::getTypeTexture(int type) { return icon; }
|
||||
|
||||
void HayBlockTile::registerIcons(IconRegister* iconRegister) {
|
||||
iconTop = iconRegister->registerIcon(getIconName() + L"_top");
|
||||
icon = iconRegister->registerIcon(getIconName() + L"_side");
|
||||
}
|
||||
Reference in New Issue
Block a user