summaryrefslogtreecommitdiffstats
path: root/src/Entities/Entity.h
diff options
context:
space:
mode:
authorDrButcher <JoBad@online.de>2020-05-03 22:05:32 +0200
committerGitHub <noreply@github.com>2020-05-03 22:05:32 +0200
commit258318ab98771f03d0109d7dfba81daaed26a2a0 (patch)
tree87f4d9cc16e0a18711afdd4070bdf3874bc358df /src/Entities/Entity.h
parentAdd cEntity::GetBoundingBox, and use where appropriate. (#4711) (diff)
downloadcuberite-258318ab98771f03d0109d7dfba81daaed26a2a0.tar
cuberite-258318ab98771f03d0109d7dfba81daaed26a2a0.tar.gz
cuberite-258318ab98771f03d0109d7dfba81daaed26a2a0.tar.bz2
cuberite-258318ab98771f03d0109d7dfba81daaed26a2a0.tar.lz
cuberite-258318ab98771f03d0109d7dfba81daaed26a2a0.tar.xz
cuberite-258318ab98771f03d0109d7dfba81daaed26a2a0.tar.zst
cuberite-258318ab98771f03d0109d7dfba81daaed26a2a0.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/Entity.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Entities/Entity.h b/src/Entities/Entity.h
index 9cb0f970a..15a9cc824 100644
--- a/src/Entities/Entity.h
+++ b/src/Entities/Entity.h
@@ -189,6 +189,7 @@ public:
eEntityType GetEntityType(void) const { return m_EntityType; }
+ bool IsArrow (void) const { return IsA("cArrowEntity"); }
bool IsEnderCrystal(void) const { return (m_EntityType == etEnderCrystal); }
bool IsPlayer (void) const { return (m_EntityType == etPlayer); }
bool IsPickup (void) const { return (m_EntityType == etPickup); }