aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/LavaSlime.h
blob: b16a7e6f987f62a0012cd5b88d7935a7d02be528 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#pragma once

#include "Slime.h"

class LavaSlime : public Slime
{
public:
	eINSTANCEOF GetType() { return eTYPE_LAVASLIME; }
	static Entity *create(Level *level) { return new LavaSlime(level); }

public:
	LavaSlime(Level *level);

protected:
	virtual void registerAttributes();

public:
	virtual bool canSpawn();
	virtual int getArmorValue();

public:
	virtual int getLightColor(float a);
	virtual float getBrightness(float a);

protected:
	virtual ePARTICLE_TYPE getParticleName();
	virtual shared_ptr<Slime> createChild();
	virtual int getDeathLoot();
	virtual void dropDeathLoot(bool wasKilledByPlayer, int playerBonusLevel);

public:
	bool isOnFire();

protected:
	int getJumpDelay();
	virtual void decreaseSquish();
	virtual void jumpFromGround();
	virtual void causeFallDamage(float distance);
	virtual bool isDealsDamage();
	virtual int getAttackDamage();
	virtual int getHurtSound();
	virtual int getDeathSound();
	virtual int getSquishSound();

public:
	virtual bool isInLava();

protected:
	virtual bool doPlayLandSound();
};