aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/LockedChestTile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.World/LockedChestTile.cpp')
-rw-r--r--Minecraft.World/LockedChestTile.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/Minecraft.World/LockedChestTile.cpp b/Minecraft.World/LockedChestTile.cpp
new file mode 100644
index 00000000..774fb929
--- /dev/null
+++ b/Minecraft.World/LockedChestTile.cpp
@@ -0,0 +1,22 @@
+#include "stdafx.h"
+#include "net.minecraft.world.level.h"
+#include "LockedChestTile.h"
+
+LockedChestTile::LockedChestTile(int id) : Tile(id, Material::wood)
+{
+}
+
+bool LockedChestTile::mayPlace(Level *level, int x, int y, int z)
+{
+ return true;
+}
+
+void LockedChestTile::tick(Level *level, int x, int y, int z, Random *random)
+{
+ level->setTile(x,y,z,0);
+}
+
+void LockedChestTile::registerIcons(IconRegister *iconRegister)
+{
+ // None
+} \ No newline at end of file