mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-25 04:03:37 +00:00
19 lines
524 B
C++
19 lines
524 B
C++
#include "LockedChestTile.h"
|
|
|
|
#include "minecraft/world/level/Level.h"
|
|
#include "minecraft/world/level/material/Material.h"
|
|
#include "minecraft/world/level/tile/Tile.h"
|
|
|
|
LockedChestTile::LockedChestTile(int id) : Tile(id, Material::wood) {}
|
|
|
|
bool LockedChestTile::mayPlace(Level* level, int x, int y, int z) {
|
|
return true;
|
|
}
|
|
|
|
void LockedChestTile::tick(Level* level, int x, int y, int z, Random* random) {
|
|
level->removeTile(x, y, z);
|
|
}
|
|
|
|
void LockedChestTile::registerIcons(IconRegister* iconRegister) {
|
|
// None
|
|
} |