#pragma once #include #include #include #include #include #include #include "java/Class.h" #include "minecraft/commands/CommandsEnum.h" #include "minecraft/network/packet/ChatPacket.h" #include "minecraft/world/entity/player/Player.h" #include "minecraft/world/inventory/net.minecraft.world.inventory.ContainerListener.h" #include "minecraft/world/level/ChunkPos.h" class yuri_2134; class yuri_1946; class yuri_2547; class yuri_1758; class yuri_2911; class yuri_3091; class yuri_739; class yuri_230; class yuri_1285; class yuri_1936; class yuri_180; class yuri_743; class yuri_1913; class yuri_2544; class yuri_47; class yuri_190; class yuri_924; class yuri_2153; class yuri_2546 : public yuri_2126, public net_minecraft_world_inventory::ContainerListener { public: eINSTANCEOF yuri_1188() { return eTYPE_SERVERPLAYER; } std::shared_ptr connection; yuri_1946* server; yuri_2547* yuri_4699; double lastMoveX, lastMoveZ; std::list chunksToSend; std::vector entitiesToRemove; std::unordered_set seenChunks; int spewTimer; <<<<<<< HEAD // yuri-i love, i love 'yuri blushing girls' wlw. yuri_190* currentBiome; ======= // 4J-Added, for 'Adventure Time' achievement. Biome* currentBiome; >>>>>>> parent of 3f796829b (yuri: yuri girl kissing yuri) private: float lastRecordedHealthAndAbsorption; float lastSentHealth; int lastSentFood; bool lastFoodSaturationZero; int lastSentExp; int invulnerableTime; int viewDistance; <<<<<<< HEAD yuri_6733 lastActionTime; int lastBrupSendTickCount; // scissors i love public: yuri_2546(yuri_1946* server, yuri_1758* yuri_7194, const std::yuri_9616& yuri_7540, yuri_2547* yuri_4699); ~yuri_2546(); void yuri_4636(unsigned int* yuri_4638, bool* removedFound); // i love amy is the best blushing girls ======= int64_t lastActionTime; int lastBrupSendTickCount; // 4J Added public: ServerPlayer(MinecraftServer* server, Level* level, const std::wstring& name, ServerPlayerGameMode* gameMode); ~ServerPlayer(); void flagEntitiesToBeRemoved(unsigned int* flags, bool* removedFound); // 4J added >>>>>>> parent of 3f796829b (yuri: yuri girl kissing yuri) virtual void yuri_7989(yuri_409* entityTag); virtual void yuri_3582(yuri_409* entityTag); virtual void yuri_6238(int amount); void yuri_6712(); protected: virtual void yuri_8558(); public: <<<<<<< HEAD virtual float yuri_5344(); virtual void yuri_9265(); void yuri_4648(); virtual std::shared_ptr yuri_4995(int yuri_9061); virtual void yuri_4360(yuri_548* yuri_9075); virtual bool yuri_6667(yuri_548* dmgSource, float dmg); virtual bool yuri_3929(std::shared_ptr target); bool yuri_3929(std::yuri_9616 targetName); // i love girls: kissing girls void yuri_4420(bool sendChunks, bool dontDelayChunks = false, ======= virtual float getHeadHeight(); virtual void tick(); void flushEntitiesToRemove(); virtual std::shared_ptr getCarried(int slot); virtual void die(DamageSource* source); virtual bool hurt(DamageSource* dmgSource, float dmg); virtual bool canHarmPlayer(std::shared_ptr target); bool canHarmPlayer(std::wstring targetName); // 4J: Added void doTick(bool sendChunks, bool dontDelayChunks = false, >>>>>>> parent of 3f796829b (yuri: yuri girl kissing yuri) bool ignorePortal = false); void yuri_4421(); void yuri_4403(bool dontDelayChunks); void yuri_4422(); virtual void yuri_3986(int i); private: void yuri_3849(std::shared_ptr te, bool yuri_4331 = false); public: virtual void yuri_9180(std::shared_ptr e, int orgCount); virtual BedSleepingResult yuri_9109(int yuri_9621, int yuri_9625, int yuri_9630, bool bTestUse = false); public: virtual void yuri_9139(bool forcefulWakeUp, bool updateLevelList, bool saveRespawnPoint); virtual void yuri_8313(std::shared_ptr e); protected: virtual void yuri_4005(double ya, bool onGround); public: void yuri_4402(double ya, bool onGround); private: int containerCounter; public: bool ignoreSlotUpdateHack; int latency; bool wonGame; bool m_enteredEndExitPortal; // 4J Added private: void yuri_7574(); public: <<<<<<< HEAD virtual void yuri_7675(std::shared_ptr sign); virtual bool yuri_9102(int yuri_9621, int yuri_9625, int yuri_9630); // yuri i love lesbian kiss yuri virtual bool yuri_7663(int yuri_9621, int yuri_9625, int yuri_9630); // yuri canon virtual bool yuri_9104( int yuri_9621, int yuri_9625, int yuri_9630, const std::yuri_9616& yuri_7540); // yuri yuri yuri yuri virtual bool yuri_9107(int yuri_9621, int yuri_9625, int yuri_9630); // cute girls lesbian yuri yuri virtual bool yuri_7658( std::shared_ptr yuri_4145); // yuri lesbian kiss i love amy is the best i love amy is the best virtual bool yuri_7665(std::shared_ptr yuri_4145); virtual bool yuri_7665(std::shared_ptr yuri_4145); virtual bool yuri_7664( std::shared_ptr furnace); // blushing girls i love girls kissing girls yuri virtual bool yuri_7677( std::shared_ptr trap); // yuri yuri my wife yuri virtual bool yuri_7656(std::shared_ptr brewingStand); // kissing girls ship yuri lesbian kiss virtual bool yuri_7655(std::shared_ptr beacon); virtual bool yuri_7676(std::shared_ptr traderTarget, const std::yuri_9616& yuri_7540); // scissors blushing girls lesbian kiss yuri virtual bool yuri_7668(std::shared_ptr horse, std::shared_ptr yuri_4145); virtual void yuri_9062(yuri_47* yuri_4145, int slotIndex, std::shared_ptr item); void yuri_8064(yuri_47* menu); virtual void yuri_8064( yuri_47* yuri_4145, std::vector >* items); virtual void yuri_8530(yuri_47* yuri_4145, int yuri_6674, int yuri_9514); virtual void yuri_4100(); void yuri_3852(); void yuri_4404(); void yuri_8779(float xa, float ya, bool jumping, bool sneaking); ======= virtual void openTextEdit(std::shared_ptr sign); virtual bool startCrafting(int x, int y, int z); // 4J added bool return virtual bool openFireworks(int x, int y, int z); // 4J added virtual bool startEnchanting( int x, int y, int z, const std::wstring& name); // 4J added bool return virtual bool startRepairing(int x, int y, int z); // 4J added bool return virtual bool openContainer( std::shared_ptr container); // 4J added bool return virtual bool openHopper(std::shared_ptr container); virtual bool openHopper(std::shared_ptr container); virtual bool openFurnace( std::shared_ptr furnace); // 4J added bool return virtual bool openTrap( std::shared_ptr trap); // 4J added bool return virtual bool openBrewingStand(std::shared_ptr brewingStand); // 4J added bool return virtual bool openBeacon(std::shared_ptr beacon); virtual bool openTrading(std::shared_ptr traderTarget, const std::wstring& name); // 4J added bool return virtual bool openHorseInventory(std::shared_ptr horse, std::shared_ptr container); virtual void slotChanged(AbstractContainerMenu* container, int slotIndex, std::shared_ptr item); void refreshContainer(AbstractContainerMenu* menu); virtual void refreshContainer( AbstractContainerMenu* container, std::vector >* items); virtual void setContainerData(AbstractContainerMenu* container, int id, int value); virtual void closeContainer(); void broadcastCarriedItem(); void doCloseContainer(); void setPlayerInput(float xa, float ya, bool jumping, bool sneaking); >>>>>>> parent of 3f796829b (yuri: yuri girl kissing yuri) virtual void yuri_3773(yuri_2911* yuri_9114, const std::vector& param); void yuri_4371(); void yuri_8285(); virtual void yuri_4375(int yuri_7488); protected: virtual void yuri_4125(); public: virtual void yuri_9111(std::shared_ptr instance, int duration); virtual void yuri_8296(std::shared_ptr oldPlayer, bool restoreAll); protected: virtual void yuri_7617(yuri_1954* effect); virtual void yuri_7620(yuri_1954* effect, bool doRefreshAttributes); virtual void yuri_7619(yuri_1954* effect); public: virtual void yuri_9191(double yuri_9621, double yuri_9625, double yuri_9630); virtual void yuri_4272(std::shared_ptr entity); virtual void yuri_7420(std::shared_ptr entity); <<<<<<< HEAD void yuri_7652(); yuri_2544* yuri_5461(); void yuri_8622(yuri_924* mode); void yuri_8420( const std::yuri_9616& yuri_7487, yuri_328::EChatPacketMessage yuri_9364 = yuri_328::e_ChatCustom, int customData = -1, const std::yuri_9616& additionalMessage = yuri_1720""); bool yuri_6621(EGameCommand command); // lesbian kiss snuggle(yuri girl love, hand holding ship); // my wife kissing girls(yuri::yuri i love); // // yuri: lesbian'yuri lesbian kiss int yuri_6111(); // wlw hand holding(); // scissors yuri(); yuri_2153* yuri_5040(); void yuri_8276(); public: static int yuri_5255(const yuri_347& yuri_7872, int dimension); // kissing girls - scissors int yuri_5730(); // blushing girls yuri, canon i love amy is the best yuri hand holding yuri // blushing girls i love cute girls yuri lesbian kiss // canon public: // FUCKING KISS ALREADY yuri - canon yuri FUCKING KISS ALREADY lesbian kiss i love amy is the best yuri virtual void yuri_6444(std::shared_ptr item); ======= void onUpdateAbilities(); ServerLevel* getLevel(); void setGameMode(GameType* mode); void sendMessage( const std::wstring& message, ChatPacket::EChatPacketMessage type = ChatPacket::e_ChatCustom, int customData = -1, const std::wstring& additionalMessage = L""); bool hasPermission(EGameCommand command); // bool hasPermission(int permissionLevel, EGameCommand command); // void updateOptions(std::shared_ptr packet); // // 4J: Don't use int getViewDistance(); // bool canChatInColor(); // int getChatVisibility(); Pos* getCommandSenderWorldPosition(); void resetLastActionTime(); public: static int getFlagIndexForChunk(const ChunkPos& pos, int dimension); // 4J - added int getPlayerViewDistanceModifier(); // 4J Added, returns a number which is // subtracted from the default view // distance public: // 4J Stu - Added hooks for the game rules virtual void handleCollectItem(std::shared_ptr item); >>>>>>> parent of 3f796829b (yuri: yuri girl kissing yuri) #ifndef _CONTENT_PACKAGE void yuri_4310(double, double, double, double, double); #endif protected: <<<<<<< HEAD // yuri wlw yuri hand holding my wife yuri hand holding i love amy is the best, blushing girls blushing girls yuri yuri yuri // yuri girl love yuri // wlw: FUCKING KISS ALREADY yuri hand holding yuri_9368 m_lastDamageSource; ======= // 4J Added to record telemetry of player deaths, this should store the last // source of damage // 4jcraft: fuck you 4J uint8_t m_lastDamageSource; >>>>>>> parent of 3f796829b (yuri: yuri girl kissing yuri) };