MinecraftConsoles/Minecraft.World/LightSourceTile.cpp
2026-03-12 15:12:25 +03:00

42 lines
923 B
C++

#include "stdafx.h"
#include "net.minecraft.world.level.h"
#include "net.minecraft.world.phys.h"
#include "LightSourceTile.h"
LightSourceTile::LightSourceTile(int id)
: Tile(id, Material::air, /*isSolidRender=*/false)
{
setLightEmission(1.0f);
setDestroyTime(0.0f);
}
AABB* LightSourceTile::getAABB(Level* level, int x, int y, int z)
{
return nullptr; // íåò ôèçè÷åñêîé êîëëèçèè
}
AABB* LightSourceTile::getTileAABB(Level* level, int x, int y, int z)
{
return nullptr; // íåò êîëëèçèè äëÿ âûäåëåíèÿ
}
bool LightSourceTile::isSolidRender(bool isServerLevel)
{
return false; // íå çàêðûâàåò ñîñåäíèå ãðàíè
}
bool LightSourceTile::isCubeShaped()
{
return false;
}
int LightSourceTile::getRenderShape()
{
return Tile::SHAPE_INVISIBLE; // ðåíäåð ïðîïóñêàåòñÿ
}
bool LightSourceTile::isPathfindable(LevelSource* level, int x, int y, int z)
{
return true; // ìîáû ïðîõîäÿò ñêâîçü áëîê
}