chore: format Minecraft.Client

This commit is contained in:
Tropical
2026-03-13 17:10:10 -05:00
parent 33d0737d1d
commit e8424f2000
531 changed files with 67709 additions and 62690 deletions

View File

@@ -3,45 +3,36 @@
#include "../../Network/ClientConnection.h"
#include "../../../Minecraft.World/Headers/net.minecraft.locale.h"
ReceivingLevelScreen::ReceivingLevelScreen(ClientConnection *connection)
{
tickCount = 0;
this->connection = connection;
ReceivingLevelScreen::ReceivingLevelScreen(ClientConnection* connection) {
tickCount = 0;
this->connection = connection;
}
void ReceivingLevelScreen::keyPressed(char eventCharacter, int eventKey)
{
}
void ReceivingLevelScreen::keyPressed(char eventCharacter, int eventKey) {}
void ReceivingLevelScreen::init()
{
buttons.clear();
}
void ReceivingLevelScreen::init() { buttons.clear(); }
void ReceivingLevelScreen::tick()
{
void ReceivingLevelScreen::tick() {
tickCount++;
if (tickCount % 20 == 0)
{
connection->send( std::shared_ptr<KeepAlivePacket>( new KeepAlivePacket() ) );
if (tickCount % 20 == 0) {
connection->send(
std::shared_ptr<KeepAlivePacket>(new KeepAlivePacket()));
}
if (connection != NULL)
{
if (connection != NULL) {
connection->tick();
}
}
void ReceivingLevelScreen::buttonClicked(Button *button)
{
}
void ReceivingLevelScreen::buttonClicked(Button* button) {}
void ReceivingLevelScreen::render(int xm, int ym, float a)
{
void ReceivingLevelScreen::render(int xm, int ym, float a) {
renderDirtBackground(0);
Language *language = Language::getInstance();
Language* language = Language::getInstance();
drawCenteredString(font, language->getElement(L"multiplayer.downloadingTerrain"), width / 2, height / 2 - 50, 0xffffff);
drawCenteredString(font,
language->getElement(L"multiplayer.downloadingTerrain"),
width / 2, height / 2 - 50, 0xffffff);
Screen::render(xm, ym, a);
}