#include "blocks.h" static enum block_material getMaterial(struct block_info* this) { return MATERIAL_STONE; } static bool getBoundingBox(struct block_info* this, bool entity, struct AABB* x) { aabb_setsize(x, 1.0F, 1.0F, 1.0F); return true; } static struct face_occlusion* getSideMask(struct block_info* this, enum side side, struct block_info* it) { return (it->block->type == this->block->type) ? face_occlusion_full() : face_occlusion_empty(); } static enum block_render_type getRenderType(struct block_info* this) { return RENDERTYPE_FULL; } static uint8_t getTextureIndex(struct block_info* this, enum side side) { return TEXTURE_INDEX(4, 0); } static uint32_t getBaseColor(struct block_info* this, enum side side) { return 0xFFFFFF; } struct block block_ice = { .name = "Ice", .getRenderType = getRenderType, .getSideMask = getSideMask, .getBoundingBox = getBoundingBox, .getMaterial = getMaterial, .getTextureIndex = getTextureIndex, .transparent = true, .getBaseColor = getBaseColor, .renderBlock = render_block_full, .renderBlockAlways = NULL, .luminance = 0, .double_sided = false, .can_see_through = true, .ignore_lighting = false, .flammable = false, };