aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/EggTile.h
blob: c8929cbe5dc87d7954f3f8b883d2260b7b153eee (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
#pragma once
#include "Tile.h"

class EggTile : public Tile
{
public:
	EggTile(int id);
    virtual void onPlace(Level *level, int x, int y, int z);
    virtual void neighborChanged(Level *level, int x, int y, int z, int type);
    virtual void tick(Level *level, int x, int y, int z, Random *random);
private:
	void checkSlide(Level *level, int x, int y, int z);
public:
	virtual bool use(Level *level, int x, int y, int z, shared_ptr<Player> player, int clickedFace, float clickX, float clickY, float clickZ, bool soundOnly = false); // 4J added soundOnly param
    virtual void attack(Level *level, int x, int y, int z, shared_ptr<Player> player);
private:
	void teleport(Level *level, int x, int y, int z);
public:
	virtual int getTickDelay();
    virtual bool blocksLight();
    virtual bool isSolidRender(bool isServerLevel = false);
    virtual bool isCubeShaped();
	virtual bool shouldRenderFace(LevelSource *level, int x, int y, int z, int face);
    virtual int getRenderShape();
	virtual int cloneTileId(Level *level, int x, int y, int z);

	// 4J Added
	static void generateTeleportParticles(Level *level,int xt,int yt, int zt,int deltas);
};