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

View File

@@ -5,37 +5,33 @@
#include "../Headers/net.minecraft.world.h"
#ifdef __PSVITA__
const std::wstring ClockItem::TEXTURE_PLAYER_ICON[XUSER_MAX_COUNT] = {L"clockP0"};
const std::wstring ClockItem::TEXTURE_PLAYER_ICON[XUSER_MAX_COUNT] = {
L"clockP0"};
#else
const std::wstring ClockItem::TEXTURE_PLAYER_ICON[XUSER_MAX_COUNT] = {L"clockP0",L"clockP1",L"clockP2",L"clockP3"};
const std::wstring ClockItem::TEXTURE_PLAYER_ICON[XUSER_MAX_COUNT] = {
L"clockP0", L"clockP1", L"clockP2", L"clockP3"};
#endif
ClockItem::ClockItem(int id) : Item(id)
{
icons = NULL;
ClockItem::ClockItem(int id) : Item(id) { icons = NULL; }
// 4J Added so that we can override the icon id used to calculate the texture
// UV's for each player
Icon* ClockItem::getIcon(int auxValue) {
Icon* icon = Item::getIcon(auxValue);
Minecraft* pMinecraft = Minecraft::GetInstance();
if (pMinecraft->player != NULL && auxValue == 0) {
icon = icons[pMinecraft->player->GetXboxPad()];
}
return icon;
}
// 4J Added so that we can override the icon id used to calculate the texture UV's for each player
Icon *ClockItem::getIcon(int auxValue)
{
Icon *icon = Item::getIcon(auxValue);
Minecraft *pMinecraft = Minecraft::GetInstance();
void ClockItem::registerIcons(IconRegister* iconRegister) {
Item::registerIcons(iconRegister);
if( pMinecraft->player != NULL && auxValue == 0 )
{
icon = icons[pMinecraft->player->GetXboxPad()];
}
return icon;
}
void ClockItem::registerIcons(IconRegister *iconRegister)
{
Item::registerIcons(iconRegister);
icons = new Icon *[XUSER_MAX_COUNT];
for (int i = 0; i < XUSER_MAX_COUNT; i++)
{
icons[i] = iconRegister->registerIcon(TEXTURE_PLAYER_ICON[i]);
}
icons = new Icon*[XUSER_MAX_COUNT];
for (int i = 0; i < XUSER_MAX_COUNT; i++) {
icons[i] = iconRegister->registerIcon(TEXTURE_PLAYER_ICON[i]);
}
}