#include "stdafx.h" #include "Item.h" #include "Player.h" #include "ItemInstance.h" #include "WritingBookItem.h" #include "../Minecraft.Client/Minecraft.h" #include "../Minecraft.Client/MultiPlayerLocalPlayer.h" WritingBookItem::WritingBookItem(int id) : Item(id) { setMaxStackSize(1); } shared_ptr WritingBookItem::use(shared_ptr instance, Level *level, shared_ptr player) { //shared_ptr player1 = Minecraft::GetInstance()->player; //player1->openItemInstanceGui(instance, player1); player->openItemInstanceGui(instance, player); return instance; } bool WritingBookItem::TestUse(shared_ptr itemInstance, Level* level, shared_ptr player) { return true; }