@Override
protected void drawItem(TexturePallette item, Minecraft mc, RenderItem itemRender, double left, double top, float partialTicks, boolean isHighlighted)
{
int size = this.actualItemPixels();
// if texture is translucent provide a background
if(this.renderAlpha) GuiUtil.drawRect(left, top, left + size, top + size, this.baseColor);
Rotation rotation = item.rotation.rotationType() == TextureRotationType.RANDOM
? Rotation.values()[(int) ((CommonProxy.currentTimeMillis() >> 11) & 3)]
: item.rotation.rotation;
TextureAtlasSprite tex = mc.getTextureMapBlocks().getAtlasSprite(item.getSampleTextureName());
GuiUtil.drawTexturedRectWithColor(left, top, this.zLevel, tex, size, size, this.borderColor, item.textureScale, rotation, renderAlpha);
}
TexturePicker.java 文件源码
java
阅读 19
收藏 0
点赞 0
评论 0
项目:Hard-Science
作者:
评论列表
文章目录