mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-30 09:51:25 +00:00
chore: format Minecraft.Client
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
#include "HeartParticle.h"
|
||||
|
||||
// 4J - added
|
||||
void HeartParticle::init(Level *level, double x, double y, double z, double xa, double ya, double za, float scale)
|
||||
{
|
||||
void HeartParticle::init(Level* level, double x, double y, double z, double xa,
|
||||
double ya, double za, float scale) {
|
||||
xd *= 0.01f;
|
||||
yd *= 0.01f;
|
||||
zd *= 0.01f;
|
||||
@@ -16,22 +16,23 @@ void HeartParticle::init(Level *level, double x, double y, double z, double xa,
|
||||
lifetime = 16;
|
||||
noPhysics = false;
|
||||
|
||||
|
||||
setMiscTex(16 * 5);
|
||||
}
|
||||
|
||||
HeartParticle::HeartParticle(Level *level, double x, double y, double z, double xa, double ya, double za) : Particle(level, x, y, z, 0, 0, 0)
|
||||
{
|
||||
init(level, x, y, z, xa, ya, za, 2);
|
||||
HeartParticle::HeartParticle(Level* level, double x, double y, double z,
|
||||
double xa, double ya, double za)
|
||||
: Particle(level, x, y, z, 0, 0, 0) {
|
||||
init(level, x, y, z, xa, ya, za, 2);
|
||||
}
|
||||
|
||||
HeartParticle::HeartParticle(Level *level, double x, double y, double z, double xa, double ya, double za, float scale) : Particle(level, x, y, z, 0, 0, 0)
|
||||
{
|
||||
init(level,x,y,z,xa,ya,za,scale);
|
||||
HeartParticle::HeartParticle(Level* level, double x, double y, double z,
|
||||
double xa, double ya, double za, float scale)
|
||||
: Particle(level, x, y, z, 0, 0, 0) {
|
||||
init(level, x, y, z, xa, ya, za, scale);
|
||||
}
|
||||
|
||||
void HeartParticle::render(Tesselator *t, float a, float xa, float ya, float za, float xa2, float za2)
|
||||
{
|
||||
void HeartParticle::render(Tesselator* t, float a, float xa, float ya, float za,
|
||||
float xa2, float za2) {
|
||||
float l = ((age + a) / lifetime) * 32;
|
||||
if (l < 0) l = 0;
|
||||
if (l > 1) l = 1;
|
||||
@@ -40,8 +41,7 @@ void HeartParticle::render(Tesselator *t, float a, float xa, float ya, float za,
|
||||
Particle::render(t, a, xa, ya, za, xa2, za2);
|
||||
}
|
||||
|
||||
void HeartParticle::tick()
|
||||
{
|
||||
void HeartParticle::tick() {
|
||||
xo = x;
|
||||
yo = y;
|
||||
zo = z;
|
||||
@@ -49,8 +49,7 @@ void HeartParticle::tick()
|
||||
if (age++ >= lifetime) remove();
|
||||
|
||||
move(xd, yd, zd);
|
||||
if (y == yo)
|
||||
{
|
||||
if (y == yo) {
|
||||
xd *= 1.1;
|
||||
zd *= 1.1;
|
||||
}
|
||||
@@ -58,8 +57,7 @@ void HeartParticle::tick()
|
||||
yd *= 0.86f;
|
||||
zd *= 0.86f;
|
||||
|
||||
if (onGround)
|
||||
{
|
||||
if (onGround) {
|
||||
xd *= 0.7f;
|
||||
zd *= 0.7f;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user