aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/ItemFrame.h
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.World/ItemFrame.h')
-rw-r--r--Minecraft.World/ItemFrame.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/Minecraft.World/ItemFrame.h b/Minecraft.World/ItemFrame.h
index 1af5c2e9..06c1f111 100644
--- a/Minecraft.World/ItemFrame.h
+++ b/Minecraft.World/ItemFrame.h
@@ -14,6 +14,8 @@ private:
static const int DATA_ITEM = 2;
static const int DATA_ROTATION = 3;
+ float dropChance;
+
private:
void _init();
@@ -24,12 +26,17 @@ public:
protected:
virtual void defineSynchedData();
+
+public:
virtual int getWidth() {return 9;}
virtual int getHeight() {return 9;}
- virtual void dropItem();
+ virtual bool shouldRenderAtSqrDistance(double distance);
+ virtual void dropItem(shared_ptr<Entity> causedBy);
-public:
+private:
+ void removeFramedMap(shared_ptr<ItemInstance> item);
+public:
shared_ptr<ItemInstance> getItem();
void setItem(shared_ptr<ItemInstance> item);
int getRotation();