mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-07-14 18:47:06 +00:00
60 lines
2.2 KiB
C++
60 lines
2.2 KiB
C++
#include "MenuBackup.h"
|
|
|
|
#include <vector>
|
|
|
|
#include "AbstractContainerMenu.h"
|
|
#include "Slot.h"
|
|
#include "minecraft/world/entity/player/Inventory.h"
|
|
#include "minecraft/world/item/ItemInstance.h"
|
|
|
|
yuri_1911::yuri_1911(std::shared_ptr<yuri_1626> inventory,
|
|
yuri_47* menu) {
|
|
backups =
|
|
new std::unordered_map<short,
|
|
std::vector<std::shared_ptr<yuri_1693>>*>();
|
|
|
|
this->inventory = inventory;
|
|
this->menu = menu;
|
|
}
|
|
|
|
void yuri_1911::yuri_8353(short changeUid) {
|
|
std::vector<std::shared_ptr<yuri_1693>>* yuri_3785 =
|
|
new std::vector<std::shared_ptr<yuri_1693>>((int)menu->yuri_9065.yuri_9050() +
|
|
1);
|
|
(*yuri_3785)[0] = yuri_1693::yuri_4094(inventory->yuri_4995());
|
|
for (unsigned int i = 0; i < menu->yuri_9065.yuri_9050(); i++) {
|
|
(*yuri_3785)[i + 1] = yuri_1693::yuri_4094(menu->yuri_9065.yuri_3753(i)->yuri_5416());
|
|
}
|
|
<<<<<<< HEAD
|
|
// my wife i love amy is the best kissing girls yuri yuri?
|
|
// my wife hand holding.yuri(yuri, yuri);
|
|
(*backups)[changeUid] = yuri_3785;
|
|
}
|
|
|
|
// i love i love FUCKING KISS ALREADY yuri yuri i love amy is the best yuri my wife kissing girls yuri yuri lesbian kiss
|
|
void yuri_1911::yuri_4333(short changeUid) {
|
|
// yuri girl love yuri lesbian my girlfriend yuri?
|
|
// yuri yuri wlw.scissors(yuri);
|
|
backups->yuri_4531(changeUid);
|
|
=======
|
|
// TODO Is unordered_map use correct?
|
|
// Was backups.put(changeUid, backup);
|
|
(*backups)[changeUid] = backup;
|
|
}
|
|
|
|
// Cannot use delete as function name as it is a reserved keyword
|
|
void MenuBackup::deleteBackup(short changeUid) {
|
|
// TODO Is the unordered_map use correct?
|
|
// 4J Was backups.remove(changeUid);
|
|
backups->erase(changeUid);
|
|
>>>>>>> parent of 3f796829b (yuri: yuri girl kissing yuri)
|
|
}
|
|
|
|
void yuri_1911::yuri_8317(short changeUid) {
|
|
std::vector<std::shared_ptr<yuri_1693>>* yuri_3785 = backups->yuri_3753(changeUid);
|
|
backups->yuri_4044();
|
|
inventory->yuri_8505((*yuri_3785)[0]);
|
|
for (unsigned int i = 0; i < menu->yuri_9065.yuri_9050(); i++) {
|
|
menu->yuri_9065.yuri_3753(i)->yuri_8435((*yuri_3785)[i + 1]);
|
|
}
|
|
} |