diff options
| author | void_17 <heroerror3@gmail.com> | 2026-03-02 15:58:20 +0700 |
|---|---|---|
| committer | void_17 <heroerror3@gmail.com> | 2026-03-02 15:58:20 +0700 |
| commit | 7074f35e4ba831e358117842b99ee35b87f85ae5 (patch) | |
| tree | 7d440d23473196af3056bf2ff4c59d9e740a06f5 /Minecraft.World/BrewingStandMenu.h | |
| parent | d63f79325f85e014361eb8cf1e41eaebedb1ae71 (diff) | |
shared_ptr -> std::shared_ptr
This is one of the first commits in a plan to remove all `using namespace std;` lines in the entire codebase as it is considered anti-pattern today.
Diffstat (limited to 'Minecraft.World/BrewingStandMenu.h')
| -rw-r--r-- | Minecraft.World/BrewingStandMenu.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/Minecraft.World/BrewingStandMenu.h b/Minecraft.World/BrewingStandMenu.h index 1f8d705d..7a981acb 100644 --- a/Minecraft.World/BrewingStandMenu.h +++ b/Minecraft.World/BrewingStandMenu.h @@ -21,11 +21,11 @@ public: static const int USE_ROW_SLOT_END = USE_ROW_SLOT_START + 9; private: - shared_ptr<BrewingStandTileEntity> brewingStand; + std::shared_ptr<BrewingStandTileEntity> brewingStand; Slot *ingredientSlot; public: - BrewingStandMenu(shared_ptr<Inventory> inventory, shared_ptr<BrewingStandTileEntity> brewingStand); + BrewingStandMenu(std::shared_ptr<Inventory> inventory, std::shared_ptr<BrewingStandTileEntity> brewingStand); private: int tc; @@ -34,32 +34,32 @@ public: virtual void addSlotListener(ContainerListener *listener); virtual void broadcastChanges(); virtual void setData(int id, int value); - virtual bool stillValid(shared_ptr<Player> player); - virtual shared_ptr<ItemInstance> quickMoveStack(shared_ptr<Player> player, int slotIndex); + virtual bool stillValid(std::shared_ptr<Player> player); + virtual std::shared_ptr<ItemInstance> quickMoveStack(std::shared_ptr<Player> player, int slotIndex); private: class PotionSlot : public Slot { private: - shared_ptr<Player> player; + std::shared_ptr<Player> player; public: - PotionSlot(shared_ptr<Player> player, shared_ptr<Container> container, int slot, int x, int y); + PotionSlot(std::shared_ptr<Player> player, std::shared_ptr<Container> container, int slot, int x, int y); - virtual bool mayPlace(shared_ptr<ItemInstance> item); + virtual bool mayPlace(std::shared_ptr<ItemInstance> item); virtual int getMaxStackSize(); - virtual void onTake(shared_ptr<Player> player, shared_ptr<ItemInstance> carried); - static bool mayPlaceItem(shared_ptr<ItemInstance> item); - virtual bool mayCombine(shared_ptr<ItemInstance> item); // 4J Added + virtual void onTake(std::shared_ptr<Player> player, std::shared_ptr<ItemInstance> carried); + static bool mayPlaceItem(std::shared_ptr<ItemInstance> item); + virtual bool mayCombine(std::shared_ptr<ItemInstance> item); // 4J Added }; class IngredientsSlot : public Slot { public: - IngredientsSlot(shared_ptr<Container> container, int slot, int x, int y); + IngredientsSlot(std::shared_ptr<Container> container, int slot, int x, int y); - virtual bool mayPlace(shared_ptr<ItemInstance> item); + virtual bool mayPlace(std::shared_ptr<ItemInstance> item); virtual int getMaxStackSize(); - virtual bool mayCombine(shared_ptr<ItemInstance> item); // 4J Added + virtual bool mayCombine(std::shared_ptr<ItemInstance> item); // 4J Added }; };
\ No newline at end of file |
