the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 34 lines 1.9 kB view raw
1#pragma once 2#include "..\Minecraft.World\LevelListener.h" 3class Player; 4class TileEntity; 5class Entity; 6class MinecraftServer; 7class ServerLevel; 8 9// 4J - renamed class to ServerLevelListener to avoid clash with LevelListener 10class ServerLevelListener : public LevelListener 11{ 12private: 13 MinecraftServer *server; 14 ServerLevel *level; 15 16public: 17 ServerLevelListener(MinecraftServer *server, ServerLevel *level); 18 // 4J removed - virtual void addParticle(const wstring& name, double x, double y, double z, double xa, double ya, double za); 19 virtual void addParticle(ePARTICLE_TYPE name, double x, double y, double z, double xa, double ya, double za); // 4J added 20 virtual void allChanged(); 21 virtual void entityAdded(shared_ptr<Entity> entity); 22 virtual void entityRemoved(shared_ptr<Entity> entity); 23 virtual void playerRemoved(shared_ptr<Entity> entity); // 4J added - for when a player is removed from the level's player array, not just the entity storage 24 virtual void playSound(int iSound, double x, double y, double z, float volume, float pitch, float fClipSoundDist); 25 virtual void playSoundExceptPlayer(shared_ptr<Player> player, int iSound, double x, double y, double z, float volume, float pitch, float fSoundClipDist); 26 virtual void setTilesDirty(int x0, int y0, int z0, int x1, int y1, int z1, Level *level); // 4J - added level param 27 virtual void skyColorChanged(); 28 virtual void tileChanged(int x, int y, int z); 29 virtual void tileLightChanged(int x, int y, int z); 30 virtual void playStreamingMusic(const wstring& name, int x, int y, int z); 31 virtual void levelEvent(shared_ptr<Player> source, int type, int x, int y, int z, int data); 32 virtual void globalLevelEvent(int type, int sourceX, int sourceY, int sourceZ, int data); 33 virtual void destroyTileProgress(int id, int x, int y, int z, int progress); 34};