use of crazypants.enderio.base.render.util.ItemQuadCollector in project EnderIO by SleepyTrousers.
the class KillerJoeRenderMapper method mapItemDynamicOverlayRender.
@Override
@SideOnly(Side.CLIENT)
public ItemQuadCollector mapItemDynamicOverlayRender(@Nonnull Block block, @Nonnull ItemStack stack) {
if (stack.hasTagCompound()) {
ItemQuadCollector result = new ItemQuadCollector();
result.addQuads(null, renderFuel(stack));
result.addBlockState(block.getStateFromMeta(stack.getMetadata()).withProperty(EnumRenderMode.RENDER, EnumRenderMode.FRONT_ON), stack);
// TODO: render sword here if it's a killer joe
return result;
} else {
return null;
}
}
Aggregations