24 std::shared_ptr<Entity>
GetEntity(
const int id)
const;
25 void AddEntity(
const std::shared_ptr<Entity>& entity);
36#if PROTOCOL_VERSION < 759
37 virtual void Handle(ProtocolCraft::ClientboundAddMobPacket& msg)
override;
40#if PROTOCOL_VERSION < 721
41 virtual void Handle(ProtocolCraft::ClientboundAddGlobalEntityPacket& msg)
override;
43#if PROTOCOL_VERSION < 764
44 virtual void Handle(ProtocolCraft::ClientboundAddPlayerPacket& msg)
override;
49#if PROTOCOL_VERSION < 755
50 virtual void Handle(ProtocolCraft::ClientboundMoveEntityPacket& msg)
override;
55#if PROTOCOL_VERSION == 755
56 virtual void Handle(ProtocolCraft::ClientboundRemoveEntityPacket& msg)
override;
68#if PROTOCOL_VERSION > 767
75 std::unordered_map<int, std::shared_ptr<Entity> >
entities;
Utilities::ScopeLockedWrapper< const std::unordered_map< int, std::shared_ptr< Entity > >, std::shared_mutex, std::shared_lock > GetEntities() const
Get a read-only locked version of all the loaded entities (including local player)