aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/PortalTile.h
blob: df6e4dee9c1d76f08232d4b496ff16784c09f2cb (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
#pragma once
#include "HalfTransparentTile.h"
#include "Definitions.h"

class Random;

class PortalTile : public HalfTransparentTile
{
public:
	PortalTile(int id);
	virtual void tick(Level *level, int x, int y, int z, Random *random);
    virtual AABB *getAABB(Level *level, int x, int y, int z);
    virtual void updateShape(LevelSource *level, int x, int y, int z, int forceData = -1, std::shared_ptr<TileEntity> forceEntity = std::shared_ptr<TileEntity>());	// 4J added forceData, forceEntity param
    virtual bool isSolidRender(bool isServerLevel = false);
    virtual bool isCubeShaped();
    virtual bool trySpawnPortal(Level *level, int x, int y, int z, bool actuallySpawn);
    virtual void neighborChanged(Level *level, int x, int y, int z, int type);
    virtual bool shouldRenderFace(LevelSource *level, int x, int y, int z, int face);
    virtual int getResourceCount(Random *random);
    virtual int getRenderLayer();
    virtual void entityInside(Level *level, int x, int y, int z, std::shared_ptr<Entity> entity);
    virtual void animateTick(Level *level, int xt, int yt, int zt, Random *random);
	virtual int cloneTileId(Level *level, int x, int y, int z);
	virtual bool mayPick(); // 4J Added override
};