#include "stdafx.h" #include "net.minecraft.world.level.h" #include "net.minecraft.world.entity.h" #include "GlazedTerracottaTile.h" GlazedTerracottaTile::GlazedTerracottaTile(int id) : Tile(id, Material::stone) { } int GlazedTerracottaTile::getRenderShape() { return SHAPE_GLAZED_TERRACOTTA; } void GlazedTerracottaTile::setPlacedBy(Level *level, int x, int y, int z, shared_ptr by, shared_ptr itemInstance) { int dir = (Mth::floor(by->yRot * 4 / 360.0f + 0.5)) & 3; level->setData(x, y, z, (dir + 2) & 3, Tile::UPDATE_CLIENTS); } int GlazedTerracottaTile::getSpawnResourcesAuxValue(int data) { return 0; } int GlazedTerracottaTile::getPistonPushReaction() { return Material::PUSH_ONLY; }