mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-04-23 07:27:20 +00:00
* Working New portal checks fixed x axis portal with obsidian on z axis * Removed Debug code * Remove unnecessary code removed PortalTile:: from PortalTile::validPortalFrame * Remove more debug code
27 lines
1.3 KiB
C++
27 lines
1.3 KiB
C++
#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, shared_ptr<TileEntity> forceEntity = shared_ptr<TileEntity>()); // 4J added forceData, forceEntity param
|
|
virtual bool isSolidRender(bool isServerLevel = false);
|
|
virtual bool isCubeShaped();
|
|
virtual bool validPortalFrame(Level* level, int x, int y, int z, int xd, int zd, bool actuallySpawn);
|
|
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, 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
|
|
};
|