mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-23 01:43:52 +00:00
Initial commit
This commit is contained in:
parent
def8cb4153
commit
b691c43c44
19437 changed files with 4363922 additions and 0 deletions
53
Minecraft.World/WebTile.cpp
Normal file
53
Minecraft.World/WebTile.cpp
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
#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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue