Files
Loki Rautio 087b7e7abf Revert "Project modernization (#630)"
This code was not tested and breaks in Release builds, reverting to restore
functionality of the nightly. All in-game menus do not work and generating
a world crashes.

This reverts commit a9be52c41a.
2026-03-07 21:12:22 -06:00

53 lines
832 B
C++

#include "stdafx.h"
#include "net.minecraft.world.entity.h"
#include "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, 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;
}