2026-03-01 12:16:08 +08:00
|
|
|
#include "stdafx.h"
|
|
|
|
|
#include "net.minecraft.world.level.h"
|
|
|
|
|
#include "LockedChestTile.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)
|
|
|
|
|
{
|
2026-03-03 03:04:10 +08:00
|
|
|
level->removeTile(x, y, z);
|
2026-03-01 12:16:08 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void LockedChestTile::registerIcons(IconRegister *iconRegister)
|
|
|
|
|
{
|
|
|
|
|
// None
|
|
|
|
|
}
|