mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-03 18:45:01 +00:00
chore: format Minecraft.Client
This commit is contained in:
@@ -2,28 +2,28 @@
|
||||
#include "LargeChestModel.h"
|
||||
#include "ModelPart.h"
|
||||
|
||||
LargeChestModel::LargeChestModel()
|
||||
{
|
||||
lid = ((new ModelPart(this, 0, 0)))->setTexSize(128, 64);
|
||||
lid->addBox(0.0f, -5.0f, -14.0f, 14+16, 5, 14, 0.0f);
|
||||
lid->x = 1;
|
||||
lid->y = 7;
|
||||
lid->z = 15;
|
||||
LargeChestModel::LargeChestModel() {
|
||||
lid = ((new ModelPart(this, 0, 0)))->setTexSize(128, 64);
|
||||
lid->addBox(0.0f, -5.0f, -14.0f, 14 + 16, 5, 14, 0.0f);
|
||||
lid->x = 1;
|
||||
lid->y = 7;
|
||||
lid->z = 15;
|
||||
|
||||
lock = ((new ModelPart(this, 0, 0)))->setTexSize(128, 64);
|
||||
lock->addBox(-1.0f, -2.0f, -15.0f, 2, 4, 1, 0.0f);
|
||||
lock->x = 8+8;
|
||||
lock->y = 7;
|
||||
lock->z = 15;
|
||||
lock = ((new ModelPart(this, 0, 0)))->setTexSize(128, 64);
|
||||
lock->addBox(-1.0f, -2.0f, -15.0f, 2, 4, 1, 0.0f);
|
||||
lock->x = 8 + 8;
|
||||
lock->y = 7;
|
||||
lock->z = 15;
|
||||
|
||||
bottom = ((new ModelPart(this, 0, 19)))->setTexSize(128, 64);
|
||||
bottom->addBox(0.0f, 0.0f, 0.0f, 14+16, 10, 14, 0.0f);
|
||||
bottom->x = 1;
|
||||
bottom->y = 6;
|
||||
bottom->z = 1;
|
||||
bottom = ((new ModelPart(this, 0, 19)))->setTexSize(128, 64);
|
||||
bottom->addBox(0.0f, 0.0f, 0.0f, 14 + 16, 10, 14, 0.0f);
|
||||
bottom->x = 1;
|
||||
bottom->y = 6;
|
||||
bottom->z = 1;
|
||||
|
||||
// 4J added - compile now to avoid random performance hit first time cubes are rendered
|
||||
lid->compile(1.0f/16.0f);
|
||||
lock->compile(1.0f/16.0f);
|
||||
bottom->compile(1.0f/16.0f);
|
||||
// 4J added - compile now to avoid random performance hit first time cubes
|
||||
// are rendered
|
||||
lid->compile(1.0f / 16.0f);
|
||||
lock->compile(1.0f / 16.0f);
|
||||
bottom->compile(1.0f / 16.0f);
|
||||
}
|
||||
Reference in New Issue
Block a user