From b691c43c44ff180d10e7d4a9afc83b98551ff586 Mon Sep 17 00:00:00 2001 From: daoge_cmd <3523206925@qq.com> Date: Sun, 1 Mar 2026 12:16:08 +0800 Subject: Initial commit --- .../PS3/SPU_Tasks/ChunkUpdate/FireTile_SPU.h | 44 ++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 Minecraft.Client/PS3/SPU_Tasks/ChunkUpdate/FireTile_SPU.h (limited to 'Minecraft.Client/PS3/SPU_Tasks/ChunkUpdate/FireTile_SPU.h') diff --git a/Minecraft.Client/PS3/SPU_Tasks/ChunkUpdate/FireTile_SPU.h b/Minecraft.Client/PS3/SPU_Tasks/ChunkUpdate/FireTile_SPU.h new file mode 100644 index 00000000..1be5377e --- /dev/null +++ b/Minecraft.Client/PS3/SPU_Tasks/ChunkUpdate/FireTile_SPU.h @@ -0,0 +1,44 @@ +#pragma once +#include "Tile_SPU.h" + + +class FireTile_SPU : public Tile_SPU +{ +public: + FireTile_SPU(int id) : Tile_SPU(id) {} + + virtual bool blocksLight() { return false; } + virtual bool isSolidRender(bool isServerLevel = false) { return false; } + virtual bool isCubeShaped() { return false; } + virtual int getRenderShape() {return Tile_SPU::SHAPE_FIRE; } + + Icon_SPU *getTextureLayer(int layer) { return &ms_pTileData->fireTile_icons[layer];} + Icon_SPU *getTexture(int face, int data) { return &ms_pTileData->fireTile_icons[0];} + + static bool canBurn(ChunkRebuildData *level, int x, int y, int z) + { + int id = level->getTile(x, y, z); + switch (id) + { + case Tile_SPU::wood_Id: + case Tile_SPU::woodSlab_Id: + case Tile_SPU::woodSlabHalf_Id: + case Tile_SPU::fence_Id: + case Tile_SPU::stairs_wood_Id: + case Tile_SPU::stairs_birchwood_Id: + case Tile_SPU::stairs_sprucewood_Id: + case Tile_SPU::stairs_junglewood_Id: + case Tile_SPU::treeTrunk_Id: + case Tile_SPU::leaves_Id: + case Tile_SPU::bookshelf_Id: + case Tile_SPU::tnt_Id: + case Tile_SPU::tallgrass_Id: + case Tile_SPU::cloth_Id: + case Tile_SPU::vine_Id: + return true; + default: + return false; + } + return false; + } +}; \ No newline at end of file -- cgit v1.2.3