the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 46 lines 2.1 kB view raw
1#pragma once 2#include "LevelChunk.h" 3#include "Definitions.h" 4 5class Level; 6 7class WaterLevelChunk: public LevelChunk 8{ 9public: 10 using LevelChunk::getEntities; 11 using LevelChunk::getEntitiesOfClass; 12 13 WaterLevelChunk(Level *level, byteArray blocks, int x, int z); 14 bool isAt(int x, int z); 15 void recalcBlockLights(); 16 void recalcHeightmapOnly(); 17 void recalcHeightmap(); 18 void lightLava(); 19 bool setTileAndData(int x, int y, int z, int _tile, int _data); 20 bool setTile(int x, int y, int z, int _tile); 21 bool setData(int x, int y, int z, int val, int mask, bool *maskedBitsChanged); // 4J added mask 22 void setBrightness(LightLayer::variety layer, int x, int y, int z, int brightness); 23 void setLevelChunkBrightness(LightLayer::variety layer, int x, int y, int z, int brightness); // 4J added - calls the setBrightness method of the parent class 24 void addEntity(shared_ptr<Entity> e); 25 void removeEntity(shared_ptr<Entity> e); 26 void removeEntity(shared_ptr<Entity> e, int yc); 27 void skyBrightnessChanged(); 28 shared_ptr<TileEntity> getTileEntity(int x, int y, int z); 29 void addTileEntity(shared_ptr<TileEntity> te); 30 void setTileEntity(int x, int y, int z, shared_ptr<TileEntity> tileEntity); 31 void removeTileEntity(int x, int y, int z); 32 void load(); 33 void unload(bool unloadTileEntities) ; // 4J - added parameter 34 bool containsPlayer(); // 4J added 35 void markUnsaved(); 36 void getEntities(shared_ptr<Entity> except, AABB bb, vector<shared_ptr<Entity> > &es); 37 void getEntitiesOfClass(const type_info& ec, AABB bb, vector<shared_ptr<Entity> > &es); 38 int countEntities(); 39 bool shouldSave(bool force); 40 void setBlocks(byteArray newBlocks, int sub); 41 int setBlocksAndData(byteArray data, int x0, int y0, int z0, int x1, int y1, int z1, int p, bool includeLighting = true); // 4J - added includeLighting parameter; 42 bool testSetBlocksAndData(byteArray data, int x0, int y0, int z0, int x1, int y1, int z1, int p); 43 Random *getRandom(__int64 l); 44 virtual Biome *getBiome(int x, int z, BiomeSource *biomeSource); 45 virtual void reSyncLighting() {}; // 4J added 46};