mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-27 18:54:21 +00:00
16 lines
506 B
C++
16 lines
506 B
C++
#pragma once
|
|
#include "../Tile.h"
|
|
|
|
class TileEntity;
|
|
|
|
class EntityTile : public Tile {
|
|
protected:
|
|
EntityTile(int id, Material* material, bool isSolidRender = true);
|
|
|
|
public:
|
|
virtual void onPlace(Level* level, int x, int y, int z);
|
|
virtual void onRemove(Level* level, int x, int y, int z, int id, int data);
|
|
virtual std::shared_ptr<TileEntity> newTileEntity(Level* level) = 0;
|
|
virtual void triggerEvent(Level* level, int x, int y, int z, int b0,
|
|
int b1);
|
|
}; |