the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#include "stdafx.h"
2#include "net.minecraft.world.entity.h"
3#include "net.minecraft.world.item.h"
4#include "WebTile.h"
5
6WebTile::WebTile(int id) : Tile(id, Material::web)
7{
8}
9
10
11void WebTile::entityInside(Level *level, int x, int y, int z, shared_ptr<Entity> entity)
12{
13 entity->makeStuckInWeb();
14}
15
16
17bool WebTile::isSolidRender(bool isServerLevel)
18{
19 return false;
20}
21
22
23AABB *WebTile::getAABB(Level *level, int x, int y, int z)
24{
25 return NULL;
26}
27
28
29int WebTile::getRenderShape()
30{
31 return Tile::SHAPE_CROSS_TEXTURE;
32}
33
34bool WebTile::blocksLight()
35{
36 return false;
37}
38
39bool WebTile::isCubeShaped()
40{
41 return false;
42}
43
44int WebTile::getResource(int data, Random *random, int playerBonusLevel)
45{
46 // @TODO: Explosives currently also give string back. Fix?
47 return Item::string->id;
48}
49
50bool WebTile::isSilkTouchable()
51{
52 return true;
53}