chore: format Minecraft.World

This commit is contained in:
Tropical
2026-03-13 17:06:56 -05:00
parent bd6284025d
commit 33d0737d1d
1511 changed files with 108661 additions and 115521 deletions
@@ -3,30 +3,28 @@
#include "../../Headers/net.minecraft.world.level.tile.h"
#include "SmoothStoneBrickTileItem.h"
SmoothStoneBrickTileItem::SmoothStoneBrickTileItem(int id, Tile *parentTile) : TileItem(id)
{
this->parentTile = parentTile;
SmoothStoneBrickTileItem::SmoothStoneBrickTileItem(int id, Tile* parentTile)
: TileItem(id) {
this->parentTile = parentTile;
setMaxDamage(0);
setStackedByData(true);
setMaxDamage(0);
setStackedByData(true);
}
Icon *SmoothStoneBrickTileItem::getIcon(int itemAuxValue)
{
return parentTile->getTexture(2, itemAuxValue);
Icon* SmoothStoneBrickTileItem::getIcon(int itemAuxValue) {
return parentTile->getTexture(2, itemAuxValue);
}
int SmoothStoneBrickTileItem::getLevelDataForAuxValue(int auxValue)
{
return auxValue;
int SmoothStoneBrickTileItem::getLevelDataForAuxValue(int auxValue) {
return auxValue;
}
unsigned int SmoothStoneBrickTileItem::getDescriptionId(std::shared_ptr<ItemInstance> instance)
{
int auxValue = instance->getAuxValue();
if (auxValue < 0 || auxValue >= SmoothStoneBrickTile::SMOOTH_STONE_BRICK_NAMES_LENGTH)
{
auxValue = 0;
}
return SmoothStoneBrickTile::SMOOTH_STONE_BRICK_NAMES[auxValue];
unsigned int SmoothStoneBrickTileItem::getDescriptionId(
std::shared_ptr<ItemInstance> instance) {
int auxValue = instance->getAuxValue();
if (auxValue < 0 ||
auxValue >= SmoothStoneBrickTile::SMOOTH_STONE_BRICK_NAMES_LENGTH) {
auxValue = 0;
}
return SmoothStoneBrickTile::SMOOTH_STONE_BRICK_NAMES[auxValue];
}