mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-08-20 09:57:09 +00:00
42 lines
923 B
C++
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; // ìîáû ïðîõîäÿò ñêâîçü áëîê
|
|
}
|