diff options
| author | void_17 <heroerror3@gmail.com> | 2026-03-02 17:37:16 +0700 |
|---|---|---|
| committer | void_17 <heroerror3@gmail.com> | 2026-03-02 17:37:16 +0700 |
| commit | 119bff351450ea16ffda550b6e0f67379b29f708 (patch) | |
| tree | d9f28714afd516bc2450f33b0a77c5e05ff4de90 /Minecraft.World/Sheep.h | |
| parent | 8a2a62ea1d47364f802cf9aae97668bc4a7007b5 (diff) | |
Revert "shared_ptr -> std::shared_ptr"
This reverts commit 7074f35e4ba831e358117842b99ee35b87f85ae5.
Diffstat (limited to 'Minecraft.World/Sheep.h')
| -rw-r--r-- | Minecraft.World/Sheep.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Minecraft.World/Sheep.h b/Minecraft.World/Sheep.h index 098183e8..666e1d57 100644 --- a/Minecraft.World/Sheep.h +++ b/Minecraft.World/Sheep.h @@ -15,10 +15,10 @@ class Sheep : public Animal private: class SheepContainer : public AbstractContainerMenu { - bool stillValid(std::shared_ptr<Player> player) { return false; } + bool stillValid(shared_ptr<Player> player) { return false; } }; - std::shared_ptr<CraftingContainer> container; + shared_ptr<CraftingContainer> container; public: eINSTANCEOF GetType() { return eTYPE_SHEEP; } static Entity *create(Level *level) { return new Sheep(level); } @@ -58,7 +58,7 @@ public: float getHeadEatPositionScale(float a); float getHeadEatAngleScale(float a); - virtual bool interact(std::shared_ptr<Player> player); + virtual bool interact(shared_ptr<Player> player); virtual void addAdditonalSaveData(CompoundTag *tag); virtual void readAdditionalSaveData(CompoundTag *tag); @@ -74,13 +74,13 @@ public: void setSheared(bool value); static int getSheepColor(Random *random); - virtual std::shared_ptr<AgableMob> getBreedOffspring(std::shared_ptr<AgableMob> target); + virtual shared_ptr<AgableMob> getBreedOffspring(shared_ptr<AgableMob> target); virtual void ate(); void finalizeMobSpawn(); private: - int getOffspringColor(std::shared_ptr<Animal> animal, std::shared_ptr<Animal> partner); - int getDyeColor(std::shared_ptr<Animal> animal); + int getOffspringColor(shared_ptr<Animal> animal, shared_ptr<Animal> partner); + int getDyeColor(shared_ptr<Animal> animal); }; |
