the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 33 lines 895 B view raw
1#include "stdafx.h" 2#include "net.minecraft.world.level.h" 3#include "net.minecraft.world.entity.h" 4#include "TileEntity.h" 5#include "BaseEntityTile.h" 6 7BaseEntityTile::BaseEntityTile(int id, Material *material, bool isSolidRender /*= true*/) : Tile(id, material, isSolidRender) 8{ 9 _isEntityTile = true; 10} 11 12void BaseEntityTile::onPlace(Level *level, int x, int y, int z) 13{ 14 Tile::onPlace(level, x, y, z); 15 //level->setTileEntity(x, y, z, newTileEntity(level)); 16} 17 18void BaseEntityTile::onRemove(Level *level, int x, int y, int z, int id, int data) 19{ 20 Tile::onRemove(level, x, y, z, id, data); 21 level->removeTileEntity(x, y, z); 22} 23 24bool BaseEntityTile::triggerEvent(Level *level, int x, int y, int z, int b0, int b1) 25{ 26 Tile::triggerEvent(level, x, y, z, b0, b1); 27 shared_ptr<TileEntity> te = level->getTileEntity(x, y, z); 28 if (te != NULL) 29 { 30 return te->triggerEvent(b0, b1); 31 } 32 return false; 33}