mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-16 20:21:55 +00:00
chore: format Minecraft.World
This commit is contained in:
@@ -3,40 +3,25 @@
|
||||
#include "../Headers/net.minecraft.world.item.h"
|
||||
#include "CarrotTile.h"
|
||||
|
||||
CarrotTile::CarrotTile(int id) : CropTile(id)
|
||||
{
|
||||
CarrotTile::CarrotTile(int id) : CropTile(id) {}
|
||||
|
||||
Icon* CarrotTile::getTexture(int face, int data) {
|
||||
if (data < 7) {
|
||||
if (data == 6) {
|
||||
data = 5;
|
||||
}
|
||||
return icons[data >> 1];
|
||||
} else {
|
||||
return icons[3];
|
||||
}
|
||||
}
|
||||
|
||||
Icon *CarrotTile::getTexture(int face, int data)
|
||||
{
|
||||
if (data < 7)
|
||||
{
|
||||
if (data == 6)
|
||||
{
|
||||
data = 5;
|
||||
}
|
||||
return icons[data >> 1];
|
||||
}
|
||||
else
|
||||
{
|
||||
return icons[3];
|
||||
}
|
||||
}
|
||||
int CarrotTile::getBaseSeedId() { return Item::carrots_Id; }
|
||||
|
||||
int CarrotTile::getBaseSeedId()
|
||||
{
|
||||
return Item::carrots_Id;
|
||||
}
|
||||
int CarrotTile::getBasePlantId() { return Item::carrots_Id; }
|
||||
|
||||
int CarrotTile::getBasePlantId()
|
||||
{
|
||||
return Item::carrots_Id;
|
||||
}
|
||||
|
||||
void CarrotTile::registerIcons(IconRegister *iconRegister)
|
||||
{
|
||||
for (int i = 0; i < 4; i++)
|
||||
{
|
||||
icons[i] = iconRegister->registerIcon(L"carrots_" + _toString(i));
|
||||
}
|
||||
void CarrotTile::registerIcons(IconRegister* iconRegister) {
|
||||
for (int i = 0; i < 4; i++) {
|
||||
icons[i] = iconRegister->registerIcon(L"carrots_" + _toString(i));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user