Files
minecraft-pe-0.6.1/src/client/particle/SplashParticle.h
2026-03-02 22:04:18 +03:00

27 lines
703 B
C++
Executable File

#ifndef NET_MINECRAFT_CLIENT_PARTICLE__SplashParticle_H__
#define NET_MINECRAFT_CLIENT_PARTICLE__SplashParticle_H__
//package net.minecraft.client.particle;
#include "WaterDropParticle.h"
#include "../../world/level/Level.h"
class SplashParticle: public WaterDropParticle
{
typedef WaterDropParticle super;
public:
SplashParticle(Level* level, float x, float y, float z, float xa, float ya, float za)
: super(level, x, y, z)
{
gravity = 0.04f;
tex += 1;
if (ya == 0 && (xa != 0 || za != 0)) {
xd = xa;
yd = ya + 0.1;
zd = za;
}
}
};
#endif /*NET_MINECRAFT_CLIENT_PARTICLE__SplashParticle_H__*/