mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-24 10:23:35 +00:00
28 lines
890 B
C++
28 lines
890 B
C++
#include "../Platform/stdafx.h"
|
|
#include "../Headers/net.minecraft.world.entity.h"
|
|
#include "../Headers/net.minecraft.world.item.h"
|
|
#include "WebTile.h"
|
|
|
|
WebTile::WebTile(int id) : Tile(id, Material::web) {}
|
|
|
|
void WebTile::entityInside(Level* level, int x, int y, int z,
|
|
std::shared_ptr<Entity> entity) {
|
|
entity->makeStuckInWeb();
|
|
}
|
|
|
|
bool WebTile::isSolidRender(bool isServerLevel) { return false; }
|
|
|
|
AABB* WebTile::getAABB(Level* level, int x, int y, int z) { return NULL; }
|
|
|
|
int WebTile::getRenderShape() { return Tile::SHAPE_CROSS_TEXTURE; }
|
|
|
|
bool WebTile::blocksLight() { return false; }
|
|
|
|
bool WebTile::isCubeShaped() { return false; }
|
|
|
|
int WebTile::getResource(int data, Random* random, int playerBonusLevel) {
|
|
// @TODO: Explosives currently also give string back. Fix?
|
|
return Item::string->id;
|
|
}
|
|
|
|
bool WebTile::isSilkTouchable() { return true; } |